From 0626338be25dc317d59688fb3790271255923c85 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Wed, 5 Sep 2018 14:41:57 -0600 Subject: [PATCH] Fix for HAVE_POLY1305 without one time auth --- src/internal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal.c b/src/internal.c index 5c5184fc1..572579d96 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1698,7 +1698,7 @@ void InitCiphers(WOLFSSL* ssl) ssl->encrypt.chacha = NULL; ssl->decrypt.chacha = NULL; #endif -#ifdef HAVE_POLY1305 +#if defined(HAVE_POLY1305) && defined(HAVE_ONE_TIME_AUTH) ssl->auth.poly1305 = NULL; #endif ssl->encrypt.setup = 0; @@ -1757,7 +1757,7 @@ void FreeCiphers(WOLFSSL* ssl) XFREE(ssl->encrypt.chacha, ssl->heap, DYNAMIC_TYPE_CIPHER); XFREE(ssl->decrypt.chacha, ssl->heap, DYNAMIC_TYPE_CIPHER); #endif -#ifdef HAVE_POLY1305 +#if defined(HAVE_POLY1305) && defined(HAVE_ONE_TIME_AUTH) XFREE(ssl->auth.poly1305, ssl->heap, DYNAMIC_TYPE_CIPHER); #endif #ifdef HAVE_IDEA