diff options
author | Pierre Pronchery <pierre@freebsdfoundation.org> | 2023-06-01 18:17:10 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-06-23 22:53:36 +0000 |
commit | e23d45187b287ee7a5c49c8b993daa9e6bb3ad97 (patch) | |
tree | a543c40dfaf4117c98d322814d123512d3bb4dab /contrib/libarchive | |
parent | 5abd4d378e3807f44686b8087f00cd438ec602ce (diff) | |
download | src-e23d45187b287ee7a5c49c8b993daa9e6bb3ad97.tar.gz src-e23d45187b287ee7a5c49c8b993daa9e6bb3ad97.zip |
libarchive: Avoid a build failure with OpenSSL 3.0
This is a minimal workaround; a proper fix will come via a future update
from upstream.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib/libarchive')
-rw-r--r-- | contrib/libarchive/libarchive/archive_hmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libarchive/libarchive/archive_hmac.c b/contrib/libarchive/libarchive/archive_hmac.c index 012fe1596211..0914f38e3670 100644 --- a/contrib/libarchive/libarchive/archive_hmac.c +++ b/contrib/libarchive/libarchive/archive_hmac.c @@ -238,7 +238,7 @@ __hmac_sha1_init(archive_hmac_sha1_ctx *ctx, const uint8_t *key, size_t key_len) if (*ctx == NULL) return -1; EVP_MAC_free(mac); - params[0] = OSSL_PARAM_construct_utf8_string("digest", "SHA1", 0); + params[0] = OSSL_PARAM_construct_utf8_string("digest", (char *)"SHA1", 0); params[1] = OSSL_PARAM_construct_end(); EVP_MAC_init(*ctx, key, key_len, params); #else |