From: Richard Levitte Date: Thu, 5 Dec 2002 21:07:26 +0000 (+0000) Subject: SSL_CERT_FILE should be used in place of the system default file, not as X-Git-Tag: STATE_before_zlib~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ba8cabf624772deec8728d871e7bafe732b8845;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);