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 committed May 25, 2024
1 parent 48e5007 commit 59c1639
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 59c1639

Please sign in to comment.