public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/pure-ftpd/, net-ftp/pure-ftpd/files/
Date: Wed,  5 Apr 2017 20:26:40 +0000 (UTC)	[thread overview]
Message-ID: <1491423993.23fb07df54a4817b6f9ead5676754576b07ceff3.polynomial-c@gentoo> (raw)

commit:     23fb07df54a4817b6f9ead5676754576b07ceff3
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  5 20:25:43 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Apr  5 20:26:33 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23fb07df

net-ftp/pure-ftpd: Added openssl-1.1 patch (bug #592500).

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 .../files/pure-ftpd-1.0.45-openssl-1.1.patch       | 41 ++++++++++++++++++++++
 net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild       |  1 +
 2 files changed, 42 insertions(+)

diff --git a/net-ftp/pure-ftpd/files/pure-ftpd-1.0.45-openssl-1.1.patch b/net-ftp/pure-ftpd/files/pure-ftpd-1.0.45-openssl-1.1.patch
new file mode 100644
index 00000000000..714809f37af
--- /dev/null
+++ b/net-ftp/pure-ftpd/files/pure-ftpd-1.0.45-openssl-1.1.patch
@@ -0,0 +1,41 @@
+From 54cc692f997c72eb530f38e62de38ed444eb152e Mon Sep 17 00:00:00 2001
+From: Frank Denis <github@pureftpd.org>
+Date: Wed, 5 Apr 2017 12:30:32 -0700
+Subject: [PATCH] Add strict support for the OpenSSL 1.1 API
+
+---
+ src/tls.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/tls.c b/src/tls.c
+index 3c87bbb..21c83b2 100644
+--- a/src/tls.c
++++ b/src/tls.c
+@@ -258,9 +258,17 @@ int tls_init_library(void)
+ 
+     tls_cnx_handshook = 0;
+     tls_data_cnx_handshook = 0;
++# if OPENSSL_VERSION_NUMBER < 0x10100000L
+     SSL_library_init();
+     SSL_load_error_strings();
+     OpenSSL_add_all_algorithms();
++# else
++    OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS |
++		     OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
++    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS |
++			OPENSSL_INIT_ADD_ALL_DIGESTS |
++			OPENSSL_INIT_LOAD_CONFIG, NULL);
++# endif
+     while (RAND_status() == 0) {
+         rnd = zrand();
+         RAND_seed(&rnd, (int) sizeof rnd);
+@@ -347,7 +355,9 @@ void tls_free_library(void)
+         SSL_CTX_free(tls_ctx);
+         tls_ctx = NULL;
+     }
++# if OPENSSL_API_COMPAT < 0x10100000L
+     EVP_cleanup();
++# endif
+ }
+ 
+ int tls_init_new_session(void)

diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild
index 2cd88cdca1b..7dcc0d9aee3 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild
@@ -38,6 +38,7 @@ RDEPEND="${DEPEND}
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.0.28-pam.patch
+	"${FILESDIR}"/${P}-openssl-1.1.patch
 )
 
 src_configure() {


             reply	other threads:[~2017-04-05 20:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05 20:26 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-12-07 15:29 [gentoo-commits] repo/gentoo:master commit in: net-ftp/pure-ftpd/, net-ftp/pure-ftpd/files/ Lars Wendler
2019-01-31 17:52 Thomas Deutschmann
2019-02-23 16:22 Thomas Deutschmann
2022-04-16 13:45 Lars Wendler
2023-05-07 12:34 Conrad Kostecki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491423993.23fb07df54a4817b6f9ead5676754576b07ceff3.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox