Filter certificates other than CKC_X_509
This commit is contained in:
parent
89a8e0cb64
commit
335c242ce0
|
@ -156,6 +156,9 @@ int callback_certificates(test_certs_t *objects,
|
||||||
const u_char *cp;
|
const u_char *cp;
|
||||||
test_cert_t *o = NULL;
|
test_cert_t *o = NULL;
|
||||||
|
|
||||||
|
if (*(CK_CERTIFICATE_TYPE *)template[3].pValue != CKC_X_509)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if ((o = add_object(objects, template[0], template[2])) == NULL)
|
if ((o = add_object(objects, template[0], template[2])) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue