add check on AEAD only mode with enc-then-mac functions

This commit is contained in:
Jacob Barthelmeh
2019-09-26 12:30:17 +07:00
parent 8139fbd026
commit c6c7f67dfd

View File

@@ -3099,7 +3099,7 @@ void* wolfSSL_GetDecryptVerifyCtx(WOLFSSL* ssl)
return NULL; return NULL;
} }
#ifdef HAVE_ENCRYPT_THEN_MAC #if defined(HAVE_ENCRYPT_THEN_MAC) && !defined(WOLFSSL_AEAD_ONLY)
/** /**
* Set the callback, against the context, that encrypts then MACs. * Set the callback, against the context, that encrypts then MACs.
* *
@@ -3176,7 +3176,7 @@ void* wolfSSL_GetVerifyDecryptCtx(WOLFSSL* ssl)
return NULL; return NULL;
} }
#endif /* HAVE_ENCRYPT_THEN_MAC */ #endif /* HAVE_ENCRYPT_THEN_MAC !WOLFSSL_AEAD_ONLY */