diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-09 18:30:52 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-10 12:04:50 +0000 |
| commit | 508506f65257395f44bc2cb20e6bbad06cc09c78 (patch) | |
| tree | 3a2d548e360f51ad8289937440de34abbcb6e685 /testing/mongodb-tools/libressl.patch | |
| parent | ac4e11149e4c542daabb4447a27b96d264142eb4 (diff) | |
| download | aports-508506f65257395f44bc2cb20e6bbad06cc09c78.tar.bz2 aports-508506f65257395f44bc2cb20e6bbad06cc09c78.tar.xz | |
testing/mongodb-tools: rebuild against libressl
Diffstat (limited to 'testing/mongodb-tools/libressl.patch')
| -rw-r--r-- | testing/mongodb-tools/libressl.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/mongodb-tools/libressl.patch b/testing/mongodb-tools/libressl.patch new file mode 100644 index 0000000000..9cbcf2ee04 --- /dev/null +++ b/testing/mongodb-tools/libressl.patch @@ -0,0 +1,28 @@ +diff --git a/vendor/src/github.com/spacemonkeygo/openssl/ctx.go b/vendor/src/github.com/spacemonkeygo/openssl/ctx.go +index 22d6dd1..894fecd 100644 +--- a/vendor/src/github.com/spacemonkeygo/openssl/ctx.go ++++ b/vendor/src/github.com/spacemonkeygo/openssl/ctx.go +@@ -140,8 +140,8 @@ const ( + func NewCtxWithVersion(version SSLVersion) (*Ctx, error) { + var method *C.SSL_METHOD + switch version { +- case SSLv3: +- method = C.SSLv3_method() ++// case SSLv3: ++// method = C.SSLv3_method() + case TLSv1: + method = C.TLSv1_method() + case TLSv1_1: +diff --git a/vendor/src/github.com/spacemonkeygo/openssl/hostname.c b/vendor/src/github.com/spacemonkeygo/openssl/hostname.c +index 7ebea17..41c5951 100644 +--- a/vendor/src/github.com/spacemonkeygo/openssl/hostname.c ++++ b/vendor/src/github.com/spacemonkeygo/openssl/hostname.c +@@ -346,7 +346,7 @@ static int do_x509_check(X509 *x, const unsigned char *chk, size_t chklen, + return 0; + } + +-#if OPENSSL_VERSION_NUMBER < 0x1000200fL ++#if OPENSSL_VERSION_NUMBER < 0x1000200fL || defined(LIBRESSL_VERSION_NUMBER) + + int X509_check_host(X509 *x, const unsigned char *chk, size_t chklen, + unsigned int flags) |
