2017-03-20 14:11:20 +01:00
|
|
|
diff -ru -x '*~' openssl-1.0.2j-orig/crypto/x509/by_file.c openssl-1.0.2j/crypto/x509/by_file.c
|
|
|
|
--- openssl-1.0.2j-orig/crypto/x509/by_file.c 2016-09-26 11:49:07.000000000 +0200
|
|
|
|
+++ openssl-1.0.2j/crypto/x509/by_file.c 2016-10-13 16:54:31.400288302 +0200
|
|
|
|
@@ -97,7 +97,9 @@
|
|
|
|
switch (cmd) {
|
|
|
|
case X509_L_FILE_LOAD:
|
|
|
|
if (argl == X509_FILETYPE_DEFAULT) {
|
2017-11-02 20:13:10 +01:00
|
|
|
- file = getenv(X509_get_default_cert_file_env());
|
|
|
|
+ file = getenv("NIX_SSL_CERT_FILE");
|
2017-03-20 14:11:20 +01:00
|
|
|
+ if (!file)
|
2017-11-02 20:13:10 +01:00
|
|
|
+ file = getenv(X509_get_default_cert_file_env());
|
2017-03-20 14:11:20 +01:00
|
|
|
if (file)
|
|
|
|
ok = (X509_load_cert_crl_file(ctx, file,
|
|
|
|
X509_FILETYPE_PEM) != 0);
|