mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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
This commit is contained in:
parent
5abd4d378e
commit
e23d45187b
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@ CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
|
|||
CFLAGS+= -DWITH_OPENSSL
|
||||
CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
|
||||
LIBADD+= crypto
|
||||
CFLAGS.archive_hmac.c+=-Wno-error=cast-qual
|
||||
.else
|
||||
LIBADD+= md
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue