Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: webrtc/base/opensslidentity.cc

Issue 1808763002: Remove code interfacing legacy openssl. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Further simplifications with boringssl Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/openssladapter.cc ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/opensslidentity.cc
diff --git a/webrtc/base/opensslidentity.cc b/webrtc/base/opensslidentity.cc
index 3c421db07ce44cbcef69adf279a4fb460bd36f83..269bfced1706f612a8f82ab566eea28ce4b4bb53 100644
--- a/webrtc/base/opensslidentity.cc
+++ b/webrtc/base/opensslidentity.cc
@@ -174,11 +174,7 @@ OpenSSLKeyPair* OpenSSLKeyPair::GetReference() {
}
void OpenSSLKeyPair::AddReference() {
-#if defined(OPENSSL_IS_BORINGSSL)
EVP_PKEY_up_ref(pkey_);
-#else
- CRYPTO_add(&pkey_->references, 1, CRYPTO_LOCK_EVP_PKEY);
-#endif
}
#if !defined(NDEBUG)
@@ -361,11 +357,7 @@ void OpenSSLCertificate::ToDER(Buffer* der_buffer) const {
void OpenSSLCertificate::AddReference() const {
ASSERT(x509_ != NULL);
-#if defined(OPENSSL_IS_BORINGSSL)
X509_up_ref(x509_);
-#else
- CRYPTO_add(&x509_->references, 1, CRYPTO_LOCK_X509);
-#endif
}
// Documented in sslidentity.h.
« no previous file with comments | « webrtc/base/openssladapter.cc ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698