From: Richard Levitte Date: Thu, 5 Dec 2002 21:07:35 +0000 (+0000) Subject: SSL_CERT_FILE should be used in place of the system default file, not as X-Git-Tag: OpenSSL_0_9_7-beta5~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b3dd9f3bb5a9f80e38a361da0e71fdd79c5ffa29;p=oweals%2Fopenssl.git SSL_CERT_FILE should be used in place of the system default file, not as a first alternative to try --- 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);