pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/cyrus-sasl Build with OpenSSL < 1.1.0 that wa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/87d4602876f2
branches:  trunk
changeset: 383197:87d4602876f2
user:      manu <manu%pkgsrc.org@localhost>
date:      Wed Jul 25 01:16:04 2018 +0000

description:
Build with OpenSSL < 1.1.0 that was patched to include EVP_CIPHER_CTX_iv

diffstat:

 security/cyrus-sasl/distinfo                           |   3 +-
 security/cyrus-sasl/patches/patch-common_crypto-compat |  41 ++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletions(-)

diffs (62 lines):

diff -r 45452e8a73cb -r 87d4602876f2 security/cyrus-sasl/distinfo
--- a/security/cyrus-sasl/distinfo      Wed Jul 25 00:27:51 2018 +0000
+++ b/security/cyrus-sasl/distinfo      Wed Jul 25 01:16:04 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.35 2018/04/17 01:57:17 christos Exp $
+$NetBSD: distinfo,v 1.36 2018/07/25 01:16:04 manu Exp $
 
 SHA1 (cyrus-sasl-2.1.27-rc7.tar.gz) = d4b72782975be980cc46ac9ccf176b8307bfcf67
 RMD160 (cyrus-sasl-2.1.27-rc7.tar.gz) = 6679c7b887f73da50a314dba97f676848d067684
@@ -8,6 +8,7 @@
 RMD160 (cyrus-sasl-dedad73e5e7a75d01a5f3d5a6702ab8ccd2ff40d.patch.v2) = c42b1b5c0b6c7322001fd506c44320a7f6eeee80
 SHA512 (cyrus-sasl-dedad73e5e7a75d01a5f3d5a6702ab8ccd2ff40d.patch.v2) = 
08964bc3ad713e137b8f05f9bac345d79676d14784bc37525f195e8e2a3e6740428237b64f7eeeacc0c71ed6cf1664c6e9c2267ac6df327761d92174a1853744
 Size (cyrus-sasl-dedad73e5e7a75d01a5f3d5a6702ab8ccd2ff40d.patch.v2) = 3836 bytes
+SHA1 (patch-common_crypto-compat) = ad8575c62648aba83983172ec8fef08d2c9f537e
 SHA1 (patch-configure) = 1afa4777f2cc2a24bb526fab9fb6d9265677fb9f
 SHA1 (patch-plugins_otp.c) = 1dd8763d5b14c2f2462349ce5f73353ae70313fa
 SHA1 (patch-saslauthd_Makefile.in) = 397bc893975ff4d8b0067dae571381f06486493d
diff -r 45452e8a73cb -r 87d4602876f2 security/cyrus-sasl/patches/patch-common_crypto-compat
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/cyrus-sasl/patches/patch-common_crypto-compat    Wed Jul 25 01:16:04 2018 +0000
@@ -0,0 +1,41 @@
+$NetBSD: patch-common_crypto-compat,v 1.1 2018/07/25 01:16:04 manu Exp $
+
+Build with OpenSSL < 1.1.0 that was patched to include EVP_CIPHER_CTX_iv
+
+--- common/crypto-compat.h.orig        2018-07-25 01:04:30.167508411 +0000
++++ common/crypto-compat.h     2018-07-25 01:05:02.861593517 +0000
+@@ -39,10 +39,12 @@
+ void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key);
+ int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
+ int DH_set_length(DH *dh, long length);
+ 
++#ifndef EVP_CIPHER_CTX_iv
+ const unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx);
+ unsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx);
++#endif /* EVP_CIPHER_CTX_iv */
+ EVP_MD_CTX *EVP_MD_CTX_new(void);
+ void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
+ EVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void);
+ void EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx);
+--- common/crypto-compat.c.orig        2018-07-25 01:04:22.770573257 +0000
++++ common/crypto-compat.c     2018-07-25 01:04:51.178733049 +0000
+@@ -306,8 +306,9 @@
+     dh->length = length;
+     return 1;
+ }
+ 
++#ifndef EVP_CIPHER_CTX_iv
+ const unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx)
+ {
+     return ctx->iv;
+ }
+@@ -315,8 +316,9 @@
+ unsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx)
+ {
+     return ctx->iv;
+ }
++#endif /* EVP_CIPHER_CTX_iv */
+ 
+ EVP_MD_CTX *EVP_MD_CTX_new(void)
+ {
+     return OPENSSL_zalloc(sizeof(EVP_MD_CTX));



Home | Main Index | Thread Index | Old Index