Skip to content

Commit

Permalink
scd: return better error if pubkey algo unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshtch authored and alonbl committed Nov 27, 2022
1 parent 4debdec commit 3b84225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Copyright (c) 2006-2022 Alon Bar-Lev <[email protected]>

????-??-?? - Version ?.?.?

* Return better error if pubkey algo unknown, thanks to Oleg Schelyklanov
* Fix several memory leaks and handling, thanks to Roy Keene.
* Remove support for <openssl-1.1

Expand Down
2 changes: 1 addition & 1 deletion gnupg-pkcs11-scd/keyutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ keyutil_get_cert_mpi (
}

if ((pubkey = X509_get_pubkey (x509)) == NULL) {
error = GPG_ERR_BAD_CERT;
error = GPG_ERR_WRONG_PUBKEY_ALGO;
goto cleanup;
}

Expand Down

0 comments on commit 3b84225

Please sign in to comment.