fix example in docu
PR: 800
This commit is contained in:
parent
70f34a5841
commit
119d1a1dd4
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))
|
||||
{
|
||||
/* 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);
|
||||
|
|
Loading…
Reference in a new issue