From: Patrick Steuer Date: Wed, 27 May 2020 14:32:43 +0000 (+0200) Subject: EVP_EncryptInit.pod: fix example X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c09a5b0ba78a15311252ab8b7fb3ce16e7109ca;p=oweals%2Fopenssl.git EVP_EncryptInit.pod: fix example Signed-off-by: Patrick Steuer Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/11976) (cherry picked from commit d561b84143f5e7956454090e15de0c5e1425ceac) --- diff --git a/doc/man3/EVP_EncryptInit.pod b/doc/man3/EVP_EncryptInit.pod index aaf9975c4c..2828bca2f8 100644 --- a/doc/man3/EVP_EncryptInit.pod +++ b/doc/man3/EVP_EncryptInit.pod @@ -591,7 +591,7 @@ with a 128-bit key: /* Don't set key or IV right away; we want to check lengths */ ctx = EVP_CIPHER_CTX_new(); - EVP_CipherInit_ex(&ctx, EVP_aes_128_cbc(), NULL, NULL, NULL, + EVP_CipherInit_ex(ctx, EVP_aes_128_cbc(), NULL, NULL, NULL, do_encrypt); OPENSSL_assert(EVP_CIPHER_CTX_key_length(ctx) == 16); OPENSSL_assert(EVP_CIPHER_CTX_iv_length(ctx) == 16);