diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-08-29 15:24:43 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-08-29 15:24:43 +0200 |
commit | 77c2a42a2843ec9a85473e23371f4b088008d39c (patch) | |
tree | 9504ae8d643ac88ef9ce8900c1a2e83b24d8f006 /ACE/protocols/ace | |
parent | 99897de90d645f4817b27333f81aba4108c2217d (diff) | |
download | ATCD-77c2a42a2843ec9a85473e23371f4b088008d39c.tar.gz |
Add support for OpenSSL 1.1.0 and newer
* ACE/protocols/ace/INet/SSL_X509Cert.inl:
Diffstat (limited to 'ACE/protocols/ace')
-rw-r--r-- | ACE/protocols/ace/INet/SSL_X509Cert.inl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ACE/protocols/ace/INet/SSL_X509Cert.inl b/ACE/protocols/ace/INet/SSL_X509Cert.inl index d0b7905b0c4..dd017526178 100644 --- a/ACE/protocols/ace/INet/SSL_X509Cert.inl +++ b/ACE/protocols/ace/INet/SSL_X509Cert.inl @@ -37,9 +37,14 @@ namespace ACE ::X509_free (this->ssl_cert_); if (ssl_cert != 0) - CRYPTO_add (&(ssl_cert->references), - 1, - CRYPTO_LOCK_X509); + { +#if OPENSSL_VERSION_NUMBER >= 0x10100000L + ::X509_up_ref(x509); +#else + CRYPTO_add (&(ssl_cert->references), + 1, + CRYPTO_LOCK_X509); + } this->ssl_cert_ = ssl_cert; return *this; } |