Skip to content

Commit

Permalink
piv-tool: Fix RSA key generation
Browse files Browse the repository at this point in the history
`params = OSSL_PARAM_BLD_to_param(bld)` was called twice, once inside `if` condition and once after the `if`. 
Removed the second one to resolve issue generating RSA keys with OpenSSL 3.0.
  • Loading branch information
invis-z authored and Jakuje committed Jun 13, 2024
1 parent 19b0e98 commit 1685f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/piv-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static int gen_key(const char * key_info)
BN_free(newkey_e);
return -1;
}
params = OSSL_PARAM_BLD_to_param(bld);

BN_free(newkey_n);
BN_free(newkey_e);

Expand Down

0 comments on commit 1685f37

Please sign in to comment.