diff options
author | Adam Langley <alangley@gmail.com> | 2015-05-15 22:01:29 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-05-20 22:14:59 +0300 |
commit | 6f2e733bab69a5c853a929a96671736458b8d4c1 (patch) | |
tree | efbff366b0b384afc15bc85a6d52868ea8f43078 /util | |
parent | daaff93464f79b9f1f06cac39d56125892280ee9 (diff) |
Add infrastructure for reference counts.
OpenSSL has traditionally done reference counting with |int|s and the
|CRYPTO_add| function. Unless a special callback is installed (rare),
this is implemented by doing the reference count operations under a
lock.
This change adds infrastructure for handling reference counts and uses
atomic operations when C11 support is available.
Change-Id: Ia023ce432319efd00f77a7340da27d16ee4b63c3
Reviewed-on: https://boringssl-review.googlesource.com/4771
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/all_tests.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/all_tests.go b/util/all_tests.go index 91822d15..5b6dd885 100644 --- a/util/all_tests.go +++ b/util/all_tests.go @@ -83,6 +83,7 @@ var tests = []test{ {"crypto/lhash/lhash_test"}, {"crypto/modes/gcm_test"}, {"crypto/pkcs8/pkcs12_test"}, + {"crypto/refcount_test"}, {"crypto/rsa/rsa_test"}, {"crypto/thread_test"}, {"crypto/x509/pkcs7_test"}, |