diff options
author | Adam Langley <alangley@gmail.com> | 2015-05-15 22:49:30 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-05-20 22:15:26 +0300 |
commit | 0da323a8b8a4402f1c5d264cdc43c6b622118b67 (patch) | |
tree | f8d6f8775ff6253002ad18b60e52302fd391cdbd /include/openssl/bio.h | |
parent | 6f2e733bab69a5c853a929a96671736458b8d4c1 (diff) |
Convert reference counts in crypto/
This change converts the reference counts in crypto/ to use
|CRYPTO_refcount_t|. The reference counts in |X509_PKEY| and |X509_INFO|
were never actually used and so were dropped.
Change-Id: I75d572cdac1f8c1083c482e29c9519282d7fd16c
Reviewed-on: https://boringssl-review.googlesource.com/4772
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/bio.h')
-rw-r--r-- | include/openssl/bio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h index b70b42f8..c0c430a0 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -64,6 +64,7 @@ #include <openssl/err.h> /* for ERR_print_errors_fp */ #include <openssl/ex_data.h> #include <openssl/stack.h> +#include <openssl/thread.h> #if defined(__cplusplus) extern "C" { @@ -784,7 +785,7 @@ struct bio_st { /* num is a BIO-specific value. For example, in fd BIOs it's used to store a * file descriptor. */ int num; - int references; + CRYPTO_refcount_t references; void *ptr; /* next_bio points to the next |BIO| in a chain. This |BIO| owns a reference * to |next_bio|. */ |