Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-09-21 06:12:36 +0400
committerDr. Stephen Henson <steve@openssl.org>2003-09-21 06:12:36 +0400
commita26be0386e94a6e3f2322667643e5fd33f31d575 (patch)
tree7d9ad42c172751078a9443b73e4a35281396f5a1 /apps
parentd5adc4b475ee0817a8e79ec0b77980859d9a51ef (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')
-rw-r--r--apps/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c
index 66f0074f45..2020b51de0 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -1145,7 +1145,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
else if (!(bs = 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. */