diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2016-02-26 11:51:31 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-08 11:10:34 -0500 |
commit | fb46be034816e5fe9f04fd39da960d34dbf2f52d (patch) | |
tree | 51984b1e45bcfd10f385cc380de679446bd6338c /include | |
parent | c9aad4ff4f9f37a2d8685db4b1ce310452f41e89 (diff) |
Convert CRYPTO_LOCK_BIO to new multi-threading API
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/bio.h | 2 | ||||
-rw-r--r-- | include/openssl/crypto.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h index a1b4ced571..ae59948389 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -326,6 +326,7 @@ struct bio_st { uint64_t num_read; uint64_t num_write; CRYPTO_EX_DATA ex_data; + CRYPTO_RWLOCK *lock; }; DEFINE_STACK_OF(BIO) @@ -635,6 +636,7 @@ BIO *BIO_new(BIO_METHOD *type); int BIO_set(BIO *a, BIO_METHOD *type); int BIO_free(BIO *a); void BIO_vfree(BIO *a); +int BIO_up_ref(BIO *a); int BIO_read(BIO *b, void *data, int len); int BIO_gets(BIO *bp, char *buf, int size); int BIO_write(BIO *b, const void *data, int len); diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index 53c26b9a7f..a36d7175e1 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -181,7 +181,6 @@ extern "C" { # define CRYPTO_LOCK_RAND 18 # define CRYPTO_LOCK_RAND2 19 # define CRYPTO_LOCK_MALLOC 20 -# define CRYPTO_LOCK_BIO 21 # define CRYPTO_LOCK_READDIR 24 # define CRYPTO_LOCK_RSA_BLINDING 25 # define CRYPTO_LOCK_MALLOC2 27 |