Correctly serve certificates if CERT_ANY requested
This commit is contained in:
1 parent
c6a8990bc5
commit
fde7f5abf8
1 file changed
+1
-1
@@ -151,7 +151,7 @@ static bool certs_filter(id_data_t *data, certificate_t **in, certificate_t **ou
|
|||||||
certificate_t *cert = *in;
|
certificate_t *cert = *in;
|
||||||
chunk_t keyid;
|
chunk_t keyid;
|
||||||
|
|
||||||
if (cert->get_type(cert) != data->type)
|
if (data->type != CERT_ANY && data->type != cert->get_type(cert))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user