Fix: Handle both WC_NULL_CIPHER_TYPE and NULL_CIPHER_TYPE for OpenSSL coexistence

Co-Authored-By: lealem@wolfssl.com <lealem@wolfssl.com>
This commit is contained in:
Devin AI
2025-02-28 16:17:55 +00:00
parent 3413bd8fa9
commit 1a7f870307

View File

@ -1059,7 +1059,11 @@ int wolfSSL_EVP_CipherUpdate(WOLFSSL_EVP_CIPHER_CTX *ctx,
}
switch (ctx->cipherType) {
#ifdef OPENSSL_COEXIST
case WC_NULL_CIPHER_TYPE:
#else
case NULL_CIPHER_TYPE:
#endif
XMEMCPY(out, in, inl);
*outl = inl;
return WOLFSSL_SUCCESS;