OpenSSL 1.1.1-pre2
This commit is contained in:
+2
-2
@@ -58,7 +58,7 @@ int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,
|
||||
ret = 1;
|
||||
err:
|
||||
OPENSSL_clear_free(key, size);
|
||||
return (ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
|
||||
@@ -68,6 +68,6 @@ int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
|
||||
i = EVP_DecryptFinal_ex(ctx, out, outl);
|
||||
if (i)
|
||||
i = EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, NULL);
|
||||
return (i);
|
||||
return i;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user