Skip to content

Commit

Permalink
pivy-tool: generate rsa broken after change to new openssh
Browse files Browse the repository at this point in the history
  • Loading branch information
arekinath committed Nov 5, 2024
1 parent d98bcbc commit 8c0c700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2547,6 +2547,10 @@ piv_generate_common(struct piv_token *pt, struct apdu *apdu,
EVP_PKEY_assign_RSA(pkey, rsa);
rsa = NULL;

EVP_PKEY_free(k->pkey);
k->pkey = pkey;
pkey = NULL;

tlv_skip(tlv);
continue;
} else if (alg == PIV_ALG_ECCP256 ||
Expand Down

0 comments on commit 8c0c700

Please sign in to comment.