diff options
Diffstat (limited to 'src/lib/libcrypto/doc/EVP_EncryptInit.pod')
| -rw-r--r-- | src/lib/libcrypto/doc/EVP_EncryptInit.pod | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/libcrypto/doc/EVP_EncryptInit.pod b/src/lib/libcrypto/doc/EVP_EncryptInit.pod index daf57e5895..40e525dd56 100644 --- a/src/lib/libcrypto/doc/EVP_EncryptInit.pod +++ b/src/lib/libcrypto/doc/EVP_EncryptInit.pod | |||
| @@ -479,6 +479,7 @@ General encryption, decryption function example using FILE I/O and RC2 with an | |||
| 479 | if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen)) | 479 | if(!EVP_CipherUpdate(&ctx, outbuf, &outlen, inbuf, inlen)) |
| 480 | { | 480 | { |
| 481 | /* Error */ | 481 | /* Error */ |
| 482 | EVP_CIPHER_CTX_cleanup(&ctx); | ||
| 482 | return 0; | 483 | return 0; |
| 483 | } | 484 | } |
| 484 | fwrite(outbuf, 1, outlen, out); | 485 | fwrite(outbuf, 1, outlen, out); |
| @@ -486,6 +487,7 @@ General encryption, decryption function example using FILE I/O and RC2 with an | |||
| 486 | if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen)) | 487 | if(!EVP_CipherFinal_ex(&ctx, outbuf, &outlen)) |
| 487 | { | 488 | { |
| 488 | /* Error */ | 489 | /* Error */ |
| 490 | EVP_CIPHER_CTX_cleanup(&ctx); | ||
| 489 | return 0; | 491 | return 0; |
| 490 | } | 492 | } |
| 491 | fwrite(outbuf, 1, outlen, out); | 493 | fwrite(outbuf, 1, outlen, out); |
