- we expect an RSA key, so better make sure it _is_ RSA
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@755 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
c83fa88ca8
commit
4f35b0a753
|
@ -276,7 +276,7 @@ int p15_eid_auth(scam_context * sctx, int argc, const char **argv,
|
|||
goto end;
|
||||
}
|
||||
pubkey = X509_get_pubkey(cert);
|
||||
if (!pubkey) {
|
||||
if (!pubkey || pubkey->type != EVP_PKEY_RSA) {
|
||||
scam_log_msg(sctx, "Invalid public key. (user %s)\n", user);
|
||||
goto end;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue