From 335c242ce0328c3c5480d299184cff5f0fc5420d Mon Sep 17 00:00:00 2001 From: asc Date: Thu, 7 Jun 2018 17:43:29 +0200 Subject: [PATCH] Filter certificates other than CKC_X_509 --- src/tests/p11test/p11test_case_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/p11test/p11test_case_common.c b/src/tests/p11test/p11test_case_common.c index 0f89cbb5..deb2a56f 100644 --- a/src/tests/p11test/p11test_case_common.c +++ b/src/tests/p11test/p11test_case_common.c @@ -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;