vici: Make attribute certificates untrusted again
Fixes: 334119b843 ("Share vici_cert_info.c with vici_cred.c")
This commit is contained in:
@@ -135,7 +135,6 @@ CALLBACK(load_cert, vici_message_t*,
|
|||||||
x509_flag_t ext_flag, flag = X509_NONE;
|
x509_flag_t ext_flag, flag = X509_NONE;
|
||||||
x509_t *x509;
|
x509_t *x509;
|
||||||
chunk_t data;
|
chunk_t data;
|
||||||
bool trusted = TRUE;
|
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
str = message->get_str(message, NULL, "type");
|
str = message->get_str(message, NULL, "type");
|
||||||
@@ -198,7 +197,7 @@ CALLBACK(load_cert, vici_message_t*,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->creds->add_cert(this->creds, trusted, cert);
|
this->creds->add_cert(this->creds, type != CERT_X509_AC, cert);
|
||||||
}
|
}
|
||||||
return create_reply(NULL);
|
return create_reply(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user