From 8ccc39352ab14d1817e3250b517c42207a684efd Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 31 Oct 2018 15:35:25 +0100 Subject: [PATCH] p11test: Do not report incomplete key pairs --- src/tests/p11test/p11test_case_pss_oaep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/p11test/p11test_case_pss_oaep.c b/src/tests/p11test/p11test_case_pss_oaep.c index d0b8392f..01947119 100644 --- a/src/tests/p11test/p11test_case_pss_oaep.c +++ b/src/tests/p11test/p11test_case_pss_oaep.c @@ -815,6 +815,10 @@ void pss_oaep_test(void **state) { for (i = 0; i < objects.count; i++) { test_cert_t *o = &objects.data[i]; + /* Do not go through incomplete pairs */ + if (o->private_handle == CK_INVALID_HANDLE) + continue; + /* Do not list non-RSA keys here */ if (o->type != EVP_PK_RSA) continue;