p11test: Do not report incomplete key pairs

This commit is contained in:
Jakub Jelen 2018-10-31 15:35:25 +01:00 committed by Frank Morgner
parent d2671ee05b
commit 8ccc39352a
1 changed files with 4 additions and 0 deletions

View File

@ -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;