net-misc/openssh: Forward port libressl patch to 7.6_p1-r3
authorPatrick McLean <chutzpah@gentoo.org>
Wed, 31 Jan 2018 18:48:42 +0000 (10:48 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Wed, 31 Jan 2018 18:48:42 +0000 (10:48 -0800)
Package-Manager: Portage-2.3.20, Repoman-2.3.6

net-misc/openssh/files/openssh-7.6_p1-x509-11.1-libressl.patch [new file with mode: 0644]
net-misc/openssh/openssh-7.6_p1-r3.ebuild

diff --git a/net-misc/openssh/files/openssh-7.6_p1-x509-11.1-libressl.patch b/net-misc/openssh/files/openssh-7.6_p1-x509-11.1-libressl.patch
new file mode 100644 (file)
index 0000000..c3b6b4d
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/openssh-7.6p1+x509-11.1.diff     2017-11-06 17:16:28.334140140 -0800
++++ b/openssh-7.6p1+x509-11.1.diff     2017-11-06 17:16:55.338223563 -0800
+@@ -54732,7 +54732,7 @@
+ +int/*bool*/ ssh_x509store_addlocations(const X509StoreOptions *locations);
+ +
+ +typedef char SSHXSTOREPATH;
+-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ +DECLARE_STACK_OF(SSHXSTOREPATH)
+ +# define sk_SSHXSTOREPATH_new_null() SKM_sk_new_null(SSHXSTOREPATH)
+ +# define sk_SSHXSTOREPATH_num(st)    SKM_sk_num(SSHXSTOREPATH, (st))
index 0fb4aa2b639f77aa2366a1c8b476f582ff8038de..131e6e1da0d815d03e6c669ceaec25c2ca2e37a0 100644 (file)
@@ -118,6 +118,7 @@ src_prepare() {
                if use hpn ; then
                        pushd "${WORKDIR}" >/dev/null
                        eapply "${FILESDIR}"/${P}-hpn-x509-${X509_VER}-glue.patch
+                       eapply "${FILESDIR}"/${P}-x509-${X509_VER}-libressl.patch
                        popd >/dev/null
                        save_version X509
                fi