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
This commit is contained in:
Jakub Jelen 2021-05-21 11:13:20 +02:00 committed by Jakub Jelen
parent 465375bda2
commit ffd6e2a576
1 changed files with 2 additions and 2 deletions

View File

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