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

pull/2483/head
Jacob Barthelmeh 2019-09-26 12:30:17 +07:00
parent 8139fbd026
commit c6c7f67dfd
1 changed files with 2 additions and 2 deletions

View File

@ -3099,7 +3099,7 @@ void* wolfSSL_GetDecryptVerifyCtx(WOLFSSL* ssl)
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.
*
@ -3176,7 +3176,7 @@ void* wolfSSL_GetVerifyDecryptCtx(WOLFSSL* ssl)
return NULL;
}
#endif /* HAVE_ENCRYPT_THEN_MAC */
#endif /* HAVE_ENCRYPT_THEN_MAC !WOLFSSL_AEAD_ONLY */