diff options
| author | Cody P Schafer <[email protected]> | 2016-01-19 21:48:44 -0500 |
|---|---|---|
| committer | Cody P Schafer <[email protected]> | 2016-01-19 22:04:51 -0500 |
| commit | 3c51f159a7f16c95061f51355536a66f77c6c63c (patch) | |
| tree | 6f35b4465f3cc241ee550aef8399223f4e126d1d /openssl/src/c_helpers.c | |
| parent | Fix should_panic check (diff) | |
| download | rust-openssl-3c51f159a7f16c95061f51355536a66f77c6c63c.tar.xz rust-openssl-3c51f159a7f16c95061f51355536a66f77c6c63c.zip | |
crypto/pkey: impl Clone for PKey using openssl's ref counting
Diffstat (limited to 'openssl/src/c_helpers.c')
| -rw-r--r-- | openssl/src/c_helpers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/src/c_helpers.c b/openssl/src/c_helpers.c index 402c36ec..dfbfbf81 100644 --- a/openssl/src/c_helpers.c +++ b/openssl/src/c_helpers.c @@ -7,3 +7,7 @@ void rust_SSL_clone(SSL *ssl) { void rust_SSL_CTX_clone(SSL_CTX *ctx) { CRYPTO_add(&ctx->references,1,CRYPTO_LOCK_SSL_CTX); } + +void rust_EVP_PKEY_clone(EVP_PKEY *pkey) { + CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY); +} |