summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-01-01 18:00:08 +0100
committerFabian Groffen <grobian@gentoo.org>2019-01-01 18:00:26 +0100
commit92ae9ac4cbb9cb0dbf8b54c14b1404b18dbe13f9 (patch)
tree38b304a158ac4b685ea83e0a154fcf2e53ee1d50 /app-arch/xar/files
parentdev-libs/cyrus-sasl: Dropped most keywords (diff)
downloadgentoo-92ae9ac4cbb9cb0dbf8b54c14b1404b18dbe13f9.tar.gz
gentoo-92ae9ac4cbb9cb0dbf8b54c14b1404b18dbe13f9.tar.bz2
gentoo-92ae9ac4cbb9cb0dbf8b54c14b1404b18dbe13f9.zip
app-arch/xar: fix compatibility with openssl-1.0
create/destroy in 1.0 were renamed to new/free in 1.1, but defines for backwards compatibility are in 1.1 so use the old names to ensure we can still compile on 1.0. Closes: https://bugs.gentoo.org/674268 Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-arch/xar/files')
-rw-r--r--app-arch/xar/files/xar-1.8-openssl-1.1.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-arch/xar/files/xar-1.8-openssl-1.1.patch b/app-arch/xar/files/xar-1.8-openssl-1.1.patch
index bd0b1daab00b..f811d99d07e5 100644
--- a/app-arch/xar/files/xar-1.8-openssl-1.1.patch
+++ b/app-arch/xar/files/xar-1.8-openssl-1.1.patch
@@ -19,7 +19,7 @@ for it anymore.
OpenSSL_add_all_digests();
HASH_CTX(hash)->type = EVP_get_digestbyname(digest_name);
- EVP_DigestInit(&HASH_CTX(hash)->digest, HASH_CTX(hash)->type);
-+ HASH_CTX(hash)->digest = EVP_MD_CTX_new();
++ HASH_CTX(hash)->digest = EVP_MD_CTX_create();
+ EVP_DigestInit(HASH_CTX(hash)->digest, HASH_CTX(hash)->type);
#endif
@@ -39,7 +39,7 @@ for it anymore.
#else
- EVP_DigestFinal(&HASH_CTX(hash)->digest, buffer, &HASH_CTX(hash)->length);
+ EVP_DigestFinal(HASH_CTX(hash)->digest, buffer, &HASH_CTX(hash)->length);
-+ EVP_MD_CTX_free(HASH_CTX(hash)->digest);
++ EVP_MD_CTX_destroy(HASH_CTX(hash)->digest);
#endif
*nbyte = HASH_CTX(hash)->length;