SSL_CERT_FILE should be used in place of the system default file, not as
authorRichard Levitte <levitte@openssl.org>
Thu, 5 Dec 2002 21:07:26 +0000 (21:07 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 5 Dec 2002 21:07:26 +0000 (21:07 +0000)
a first alternative to try

crypto/x509/by_file.c

index d8731d4e514015be36541552eabc90e0a33e3694..22be90cdcd91f4253ecc67fa81455dc22544f92c 100644 (file)
@@ -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);