summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-05 11:16:34 +0000
committerNils Larsch <nils@openssl.org>2005-04-05 11:16:34 +0000
commitafe01cd3f60098f164d8b35879a5987f29fda190 (patch)
tree1894b0710f76bd15025c49badb48eec24f8acbee
parent631bae47239d6b1e4a12a6a423f7b36bc4364bfd (diff)
downloadopenssl-new-afe01cd3f60098f164d8b35879a5987f29fda190.tar.gz
fix example in docu
PR: 800
-rw-r--r--doc/crypto/EVP_EncryptInit.pod2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/crypto/EVP_EncryptInit.pod b/doc/crypto/EVP_EncryptInit.pod
index daf57e5895..40e525dd56 100644
--- a/doc/crypto/EVP_EncryptInit.pod
+++ b/doc/crypto/EVP_EncryptInit.pod
@@ -479,6 +479,7 @@ General encryption, decryption function example using FILE I/O and RC2 with an
if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen))
{
/* Error */
+ EVP_CIPHER_CTX_cleanup(&ctx);
return 0;
}
fwrite(outbuf, 1, outlen, out);
@@ -486,6 +487,7 @@ General encryption, decryption function example using FILE I/O and RC2 with an
if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen))
{
/* Error */
+ EVP_CIPHER_CTX_cleanup(&ctx);
return 0;
}
fwrite(outbuf, 1, outlen, out);