From ffd6e2a57673785716164e25787efcd7275b9e0b Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 21 May 2021 11:13:20 +0200 Subject: [PATCH] p11test: Expect DERIVE to be set on both private and public key Basically reverts part of 485b6cf, which turned out to be wrong. Alternative to #2292 --- src/tests/p11test/p11test_case_usage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/p11test/p11test_case_usage.c b/src/tests/p11test/p11test_case_usage.c index b7df79aa..44410279 100644 --- a/src/tests/p11test/p11test_case_usage.c +++ b/src/tests/p11test/p11test_case_usage.c @@ -54,9 +54,9 @@ void usage_test(void **state) { fprintf(stderr, " [ ERROR %s ] If Unwrap is set, Wrap should be set too.\n", objects.data[i].id_str); } - if (objects.data[i].derive_pub) { + if (objects.data[i].derive_pub != objects.data[i].derive_priv) { errors++; - fprintf(stderr, " [ ERROR %s ] Derive should not be set on public key\n", + fprintf(stderr, " [ ERROR %s ] Derive should be set on both private and public part.\n", objects.data[i].id_str); }