diff options
author | Nils Larsch <nils@openssl.org> | 2005-04-05 11:17:03 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-04-05 11:17:03 +0000 |
commit | 119d1a1dd4c6b7fbf793181d85a41dc3cfd6082e (patch) | |
tree | 34f97bba6a02a80f2f262abdd06bee35503e3ce2 /doc | |
parent | 70f34a58411014e76dd03ed6ac0b1bdb95b53b16 (diff) |
fix example in docu
PR: 800
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/EVP_EncryptInit.pod | 2 |
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); |