mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
fix example in docu
PR: 800
This commit is contained in:
parent
70f34a5841
commit
119d1a1dd4
@ -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 New Issue
Block a user