Filter certificates other than CKC_X_509

This commit is contained in:
asc 2018-06-07 17:43:29 +02:00 committed by Frank Morgner
parent 89a8e0cb64
commit 335c242ce0
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ int callback_certificates(test_certs_t *objects,
const u_char *cp;
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)
return -1;