pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/lhs Fix build with OpenSSL 1.1. Drop SSL2 logic.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d33bc0a33932
branches:  trunk
changeset: 347516:d33bc0a33932
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Jan 12 23:01:38 2020 +0000

description:
Fix build with OpenSSL 1.1. Drop SSL2 logic.

diffstat:

 www/lhs/distinfo         |  4 ++--
 www/lhs/patches/patch-ac |  8 +++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 4eec0bc78518 -r d33bc0a33932 www/lhs/distinfo
--- a/www/lhs/distinfo  Sun Jan 12 23:01:05 2020 +0000
+++ b/www/lhs/distinfo  Sun Jan 12 23:01:38 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2016/03/26 23:05:10 joerg Exp $
+$NetBSD: distinfo,v 1.6 2020/01/12 23:01:38 joerg Exp $
 
 SHA1 (lhs-0.1.tar.gz) = 74fbb0a982cd00c668c9f07b7c3c583759f14fd6
 RMD160 (lhs-0.1.tar.gz) = 176d8149d11383fc4d82e4a13991f156f3ab42ca
@@ -6,5 +6,5 @@
 Size (lhs-0.1.tar.gz) = 10665 bytes
 SHA1 (patch-aa) = 682df4329c32b01438221ba78055761468ede8fa
 SHA1 (patch-ab) = a066f92aa5f47e85863b23e92247c2fad8f3c5bf
-SHA1 (patch-ac) = 5359e9a017dc3e9ca4199b52691eb8727bdfa1f5
+SHA1 (patch-ac) = 1ed366392bd2f189d7c3091c23b681712dbbc611
 SHA1 (patch-configure) = 21e675f56bd36f6bb880cb0179db952fa18a25a3
diff -r 4eec0bc78518 -r d33bc0a33932 www/lhs/patches/patch-ac
--- a/www/lhs/patches/patch-ac  Sun Jan 12 23:01:05 2020 +0000
+++ b/www/lhs/patches/patch-ac  Sun Jan 12 23:01:38 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.3 2016/03/26 23:05:10 joerg Exp $
+$NetBSD: patch-ac,v 1.4 2020/01/12 23:01:38 joerg Exp $
 
 * Include sys/filio.h for FIONBIO etc.
 * Drop SSLv2 support
@@ -33,13 +33,15 @@
        if (!ctx) {
                fprintf(stderr, "SSL_CTX_new failed.\n");
                return 0;
-@@ -512,12 +513,12 @@ SSL *init_ssl_socket(int sock)
+@@ -511,13 +512,13 @@ SSL *init_ssl_socket(int sock)
+               return NULL;
        }
  //    SSL_set_session_id_context(ssl,AppContext,sizeof(AppContext));
-       switch(ssl->session->ssl_version) {
+-      switch(ssl->session->ssl_version) {
 -              case SSL2_VERSION:
 -                      debug("ssl2\n");
 -                      break;  
++      switch(SSL_SESSION_get_protocol_version(SSL_get_session(ssl))) {
                case SSL3_VERSION:
                        debug("ssl3\n");
                        break;



Home | Main Index | Thread Index | Old Index