Skip to content

Commit

Permalink
Apply keycmp workaroud only for non-private keys
Browse files Browse the repository at this point in the history
This allow to use private URIs w/o interference.

Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Apr 15, 2024
1 parent a3c6ca1 commit 4717802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tcmpkeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static EVP_PKEY *load_key(const char *uri)
exit(EXIT_FAILURE);
}

if (strncmp(uri, "pkcs11:", 7)) {
if (strncmp(uri, "pkcs11:", 7) && strstr(uri, "type=private") == NULL) {
/* 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 */
Expand Down

0 comments on commit 4717802

Please sign in to comment.