From 4ba8cabf624772deec8728d871e7bafe732b8845 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 5 Dec 2002 21:07:26 +0000 Subject: [PATCH] SSL_CERT_FILE should be used in place of the system default file, not as a first alternative to try --- crypto/x509/by_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c index d8731d4e51..22be90cdcd 100644 --- a/crypto/x509/by_file.c +++ b/crypto/x509/by_file.c @@ -105,7 +105,7 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl, ok = (X509_load_cert_crl_file(ctx,file, X509_FILETYPE_PEM) != 0); - if (!ok) + else ok = (X509_load_cert_crl_file(ctx,X509_get_default_cert_file(), X509_FILETYPE_PEM) != 0); -- 2.34.1