@@ -52,7 +52,7 @@ int main(int argc, char **argv)
rsa = pkey->pkey.rsa;
printf("%-10s: %s\n", SITE, site);
- run_question(&MetadataQuestion, crt, rsa);
+ run_question(&MetadataQuestion, crt, NULL);
X509_free(crt);
}
@@ -71,7 +71,7 @@ int run_question(qa_question_t *q, X509 *crt, RSA *pub)
if (crt && q->ask_crt)
q->ask_crt(crt);
/* Attempt to attack the RSA public key */
- if (q->ask_rsa &&
+ if (pub && q->ask_rsa &&
(priv = q->ask_rsa(pub))) {
#ifdef DEBUG
PEM_write_RSAPrivateKey(stdout, priv, NULL, NULL, 0, NULL, NULL);