Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-02-23 10:15:50 +0300
committerAdam Langley <agl@google.com>2015-02-23 22:44:02 +0300
commit3f5917f3200df64bbbbb5081445c953122ad475f (patch)
treead93f01be7fda88eb42e72af8cda6158613650f1 /include/openssl/cipher.h
parent86058a256bea9af50adf12cb1b7cd35eccc40a52 (diff)
EVP_CIPHER_CTX_cleanup cannot fail.
There is exactly one implementation and it doesn't fail. Plus a cleanup function that can fail is very bad manners; the caller has no choice but to leak at that point. Change-Id: I5b524617ef37bc7d92273472fa742416ea7dfd43 Reviewed-on: https://boringssl-review.googlesource.com/3564 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/cipher.h')
-rw-r--r--include/openssl/cipher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/cipher.h b/include/openssl/cipher.h
index 25a0118c..97bf096e 100644
--- a/include/openssl/cipher.h
+++ b/include/openssl/cipher.h
@@ -117,8 +117,8 @@ OPENSSL_EXPORT void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx);
* |EVP_CIPHER_CTX_init| and returns it, or NULL on allocation failure. */
OPENSSL_EXPORT EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
-/* EVP_CIPHER_CTX_cleanup frees any memory referenced by |ctx|. It returns one
- * on success and zero otherwise. */
+/* EVP_CIPHER_CTX_cleanup frees any memory referenced by |ctx|. It returns
+ * one. */
OPENSSL_EXPORT int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx);
/* EVP_CIPHER_CTX_free calls |EVP_CIPHER_CTX_cleanup| on |ctx| and then frees