Skip to content

Commit

Permalink
fixup! Add some more tests around EdDSA
Browse files Browse the repository at this point in the history
  • Loading branch information
simo5 committed Apr 15, 2024
1 parent d2c4440 commit 5c676f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/tcmpkeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ static EVP_PKEY *load_key(const char *uri)
}

if (strncmp(uri, "pkcs11:", 7)) {
/* public file */
/* This is a workaround for OpenSSL < 3.2.0 where the code fails
* to correctly source public keys unless explicitly requested
* via an expect hint */
if (OSSL_STORE_expect(store, OSSL_STORE_INFO_PUBKEY) != 1) {
fprintf(stderr, "Failed to expect Public Key File\n");
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 5c676f1

Please sign in to comment.