summaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-09-21 02:18:15 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-09-21 02:18:15 +0000
commit7068c8b1a6b9f88fc96f9de78147a08c16b3639a (patch)
treeae46a5e939d59a05f5496913e88e5471bf55dbed /apps/x509.c
parent82384690e2ac49d6604d66bf5ac04c93f3e64a71 (diff)
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.
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index f0ef5596fa..036e255054 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -1103,7 +1103,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
else if (!(bs = x509_load_serial(CAfile, serialfile, create)))
goto end;
- 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. */