fix example in docu

PR: 800
This commit is contained in:
Nils Larsch 2005-04-05 11:16:34 +00:00
parent 631bae4723
commit afe01cd3f6

View file

@ -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)) if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen))
{ {
/* Error */ /* Error */
EVP_CIPHER_CTX_cleanup(&ctx);
return 0; return 0;
} }
fwrite(outbuf, 1, outlen, out); 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)) if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen))
{ {
/* Error */ /* Error */
EVP_CIPHER_CTX_cleanup(&ctx);
return 0; return 0;
} }
fwrite(outbuf, 1, outlen, out); fwrite(outbuf, 1, outlen, out);