Skip to content

Commit

Permalink
libressl 2.7.0 and above provides HMAC_CTX_{new,free,reset}
Browse files Browse the repository at this point in the history
  • Loading branch information
Ørjan authored and nmoinvaz committed Nov 25, 2020
1 parent 72459e9 commit af49f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mz_crypt_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ typedef struct mz_crypt_hmac_s {

/***************************************************************************/

#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x2070000fL))
static HMAC_CTX *HMAC_CTX_new(void) {
HMAC_CTX *ctx = OPENSSL_malloc(sizeof(HMAC_CTX));
if (ctx != NULL)
Expand Down

0 comments on commit af49f46

Please sign in to comment.