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:
authorAdam Langley <alangley@gmail.com>2016-07-01 04:29:44 +0300
committerAdam Langley <alangley@gmail.com>2016-07-02 00:46:53 +0300
commit84cd159badd399847703da2c0c68cee8e405b3e1 (patch)
tree98921ace316e8d330ae5496d824dc99a9e516fae /include/openssl/ssl.h
parentb72f66f59cc5c8db51f6b60f2f5b97b56dc372f3 (diff)
Add SSL_CTX_up_ref.
Upstream added this in a18a31e49d266. The various *_up_ref functions return a variety of types, but this one returns int because upstream appears to be trying to unify around that. (See upstream's c5ebfcab713.) Change-Id: I7e1cfe78c3a32f5a85b1b3c14428bd91548aba6d Reviewed-on: https://boringssl-review.googlesource.com/8581 Reviewed-by: Adam Langley <alangley@gmail.com>
Diffstat (limited to 'include/openssl/ssl.h')
-rw-r--r--include/openssl/ssl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 627c288f..3bbdb175 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -194,6 +194,9 @@ OPENSSL_EXPORT const SSL_METHOD *DTLS_method(void);
* on error. */
OPENSSL_EXPORT SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
+/* SSL_CTX_up_ref increments the reference count of |ctx|. It returns one. */
+OPENSSL_EXPORT int SSL_CTX_up_ref(SSL_CTX *ctx);
+
/* SSL_CTX_free releases memory associated with |ctx|. */
OPENSSL_EXPORT void SSL_CTX_free(SSL_CTX *ctx);