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 <agl@google.com>2015-05-05 20:27:54 +0300
committerAdam Langley <agl@google.com>2015-05-05 21:30:03 +0300
commit517da2f1efc91b179dfb1898f826b18a6a38f547 (patch)
treeb8c69fd3f4c035570b0307e357e0d87084522871 /include/openssl/bio.h
parente60e2a483b3153f2de462371713cbf16e2764541 (diff)
Add |BIO_up_ref| and |EVP_PKEY_up_ref|.
This avoids callers having to worry about |CRYPTO_add| and what the correct lock to use it with is. (Esp since we'll probably change the way that reference counts work in the future.) Change-Id: I972bf0cc3be6099e0255e64a0fd50249062d1eb4 Reviewed-on: https://boringssl-review.googlesource.com/4623 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/bio.h')
-rw-r--r--include/openssl/bio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h
index 84996e97..b70b42f8 100644
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h
@@ -96,6 +96,9 @@ OPENSSL_EXPORT int BIO_free(BIO *bio);
* TODO(fork): remove. */
OPENSSL_EXPORT void BIO_vfree(BIO *bio);
+/* BIO_up_ref increments the reference count of |bio| and returns it. */
+OPENSSL_EXPORT BIO *BIO_up_ref(BIO *bio);
+
/* Basic I/O. */