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
This change adds infrastructure for handling reference counts and uses
atomic operations when C11 support is available.
Reviewed-by: Adam Langley <email@example.com>
8 files changed