git.iko.soy/typeable/nixpkgs
on master help sign in
openssl: default to default profile CA on darwin
commitc86f05e7ce13e64238960ebf3ee9706142db961b authorGuillaume Maudoux <guillaume.maudoux@uclouvain.be> dateWed 22 Mar 2017, 12:09 (10 years ago) parent8ecb94b
2 files changed+15−1
pkgs/development/libraries/openssl/default.nix+2−1 pkgs/development/libraries/openssl/use-etc-ssl-certs-darwin.patch+13
pkgs/development/libraries/openssl/default.nix+2−1
@@ -20,7 +20,8 @@ let
2020 patches =
2121 (args.patches or [])
2222 ++ [ ./nix-ssl-cert-file.patch ]
23− ++ optional (versionOlder version "1.1.0") ./use-etc-ssl-certs.patch
23+ ++ optional (versionOlder version "1.1.0")
24+ (if stdenv.isDarwin then ./use-etc-ssl-certs-darwin.patch else ./use-etc-ssl-certs.patch)
2425 ++ optional stdenv.isCygwin ./1.0.1-cygwin64.patch
2526 ++ optional
2627 (versionOlder version "1.0.2" && (stdenv.isDarwin || (stdenv ? cross && stdenv.cross.libc == "libSystem")))
pkgs/development/libraries/openssl/use-etc-ssl-certs-darwin.patchnew file+13
@@ -0,0 +1,13 @@
1+diff -ru -x '*~' openssl-1.0.1r-orig/crypto/cryptlib.h openssl-1.0.1r/crypto/cryptlib.h
2+--- openssl-1.0.1r-orig/crypto/cryptlib.h 2016-01-28 14:38:30.000000000 +0100
3++++ openssl-1.0.1r/crypto/cryptlib.h 2016-02-03 12:54:29.193165176 +0100
4+@@ -81,8 +81,8 @@
5+
6+ # ifndef OPENSSL_SYS_VMS
7+ # define X509_CERT_AREA OPENSSLDIR
8+ # define X509_CERT_DIR OPENSSLDIR "/certs"
9+-# define X509_CERT_FILE OPENSSLDIR "/cert.pem"
10++# define X509_CERT_FILE "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"
11+ # define X509_PRIVATE_DIR OPENSSLDIR "/private"
12+ # else
13+ # define X509_CERT_AREA "SSLROOT:[000000]"