fix example in docu
PR: 800
This commit is contained in:
parent
631bae4723
commit
afe01cd3f6
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue