pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/perdition Fix building with OpenSSL 1.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d888a8190fa7
branches:  trunk
changeset: 414463:d888a8190fa7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Mar 27 20:55:58 2020 +0000

description:
Fix building with OpenSSL 1.1.

diffstat:

 mail/perdition/distinfo                      |   3 ++-
 mail/perdition/patches/patch-perdition_ssl.c |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r d2d0d8f54296 -r d888a8190fa7 mail/perdition/distinfo
--- a/mail/perdition/distinfo   Fri Mar 27 20:55:39 2020 +0000
+++ b/mail/perdition/distinfo   Fri Mar 27 20:55:58 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 23:27:16 agc Exp $
+$NetBSD: distinfo,v 1.11 2020/03/27 20:55:58 joerg Exp $
 
 SHA1 (perdition-1.18.tar.gz) = 60d76e2fca810fa1a12bebe369fc3e7d3452ebbb
 RMD160 (perdition-1.18.tar.gz) = 82065dcfb7f05d7bebcf98b72334f676d4fd5dad
@@ -8,3 +8,4 @@
 SHA1 (patch-ag) = 3840c9b4ed6e6d286c1cbeebad7184f9ccdaac2a
 SHA1 (patch-makegdbm_options_h) = f412c826e78bc80b64cf2311b1f815c5a950a773
 SHA1 (patch-perdition_db_gdbm_perditiondb_gdbm_h) = 7cdbc04771f00c13133766d39851df03ad959b9b
+SHA1 (patch-perdition_ssl.c) = 73b95ddeaf5ac223ab5d1fa5b90dd3d1fc35b405
diff -r d2d0d8f54296 -r d888a8190fa7 mail/perdition/patches/patch-perdition_ssl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/perdition/patches/patch-perdition_ssl.c      Fri Mar 27 20:55:58 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-perdition_ssl.c,v 1.1 2020/03/27 20:55:58 joerg Exp $
+
+--- perdition/ssl.c.orig       2020-03-27 14:29:57.846281348 +0000
++++ perdition/ssl.c
+@@ -218,7 +218,7 @@ __perdition_verify_callback(int ok, X509
+               return 0;
+       }
+ 
+-      if (__perdition_verify_result(ctx->error, cert) 
++      if (__perdition_verify_result(X509_STORE_CTX_get_error(ctx), cert) 
+                       == X509_V_OK) {
+               return 1;
+       }
+@@ -656,8 +656,8 @@ __perdition_ssl_check_common_name(X509 *
+                       return -1;
+               }
+ 
+-              if (!__perdition_ssl_compare_key(key, e->value->data,
+-                                               e->value->length))
++              if (!__perdition_ssl_compare_key(key, X509_NAME_ENTRY_get_data(e)->data,
++                                               X509_NAME_ENTRY_get_data(e)->length))
+                       return 0;
+       }
+ 



Home | Main Index | Thread Index | Old Index