In order to get the expected self signed error when

calling X509_verify_cert() in x509.c the cert should
not be added to the trusted store.
This commit is contained in:
Dr. Stephen Henson 2003-09-21 02:11:31 +00:00
parent 19ed670b51
commit 94f5c934f6

View file

@ -1063,7 +1063,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
BIO_free(io);
io=NULL;
if (!X509_STORE_add_cert(ctx,x)) goto end;
/*if (!X509_STORE_add_cert(ctx,x)) goto end;*/
/* NOTE: this certificate can/should be self signed, unless it was
* a certificate request in which case it is not. */