- 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:
okir 2002-12-05 08:58:54 +00:00
parent c83fa88ca8
commit 4f35b0a753
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}