mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 04:34:41 +02:00
Fix compatibility, inl == 0, EVP_CipherUpdate
This commit is contained in:
committed by
Jacob Barthelmeh
parent
43ae3c9f59
commit
47bca28b1d
@@ -313,7 +313,8 @@ WOLFSSL_API int wolfSSL_EVP_CipherUpdate(WOLFSSL_EVP_CIPHER_CTX *ctx,
|
||||
int fill;
|
||||
|
||||
*outl = 0;
|
||||
if ((ctx == NULL) || (inl < 0))return BAD_FUNC_ARG;
|
||||
if ((ctx == NULL) || (inl < 0) ||
|
||||
(outl == NULL)|| (out == NULL) || (in == NULL))return BAD_FUNC_ARG;
|
||||
WOLFSSL_ENTER("wolfSSL_EVP_CipherUpdate");
|
||||
|
||||
if (inl == 0) return WOLFSSL_FAILURE;
|
||||
|
Reference in New Issue
Block a user