diff options
author | joerg <joerg@pkgsrc.org> | 2020-03-27 20:55:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-03-27 20:55:58 +0000 |
commit | d581f55b10a6e73005d1812a1ecdcb008147bde8 (patch) | |
tree | 4e94ca9df14f3cf8d0fc450862e77b93b6abd3ac /mail/perdition | |
parent | fe63f268252e8e1e46b7e644e658654cbd20eff4 (diff) | |
download | pkgsrc-d581f55b10a6e73005d1812a1ecdcb008147bde8.tar.gz |
Fix building with OpenSSL 1.1.
Diffstat (limited to 'mail/perdition')
-rw-r--r-- | mail/perdition/distinfo | 3 | ||||
-rw-r--r-- | mail/perdition/patches/patch-perdition_ssl.c | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/mail/perdition/distinfo b/mail/perdition/distinfo index 34a9b81810b..28315ed2fbe 100644 --- a/mail/perdition/distinfo +++ b/mail/perdition/distinfo @@ -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-ac) = 01934fb919cc8ac7699e07e407d6e26706e98fbd 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 --git a/mail/perdition/patches/patch-perdition_ssl.c b/mail/perdition/patches/patch-perdition_ssl.c new file mode 100644 index 00000000000..89e453560df --- /dev/null +++ b/mail/perdition/patches/patch-perdition_ssl.c @@ -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; + } + |