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

Unified Diff: webrtc/base/sslidentity.cc

Issue 2648003003: Revert of Removing #defines previously used for building without BoringSSL/OpenSSL. (Closed)
Patch Set: Created 3 years, 11 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/sslconfig.h ('k') | webrtc/base/sslstreamadapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/sslidentity.cc
diff --git a/webrtc/base/sslidentity.cc b/webrtc/base/sslidentity.cc
index a5dd7b9ce686b63256fe417836c936e6e2116e59..645050a7e4b9deccc0b045d4539c6a2cc5f35b93 100644
--- a/webrtc/base/sslidentity.cc
+++ b/webrtc/base/sslidentity.cc
@@ -17,8 +17,14 @@
#include "webrtc/base/base64.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
+#include "webrtc/base/sslconfig.h"
+#include "webrtc/base/sslfingerprint.h"
+
+#if SSL_USE_OPENSSL
+
#include "webrtc/base/opensslidentity.h"
-#include "webrtc/base/sslfingerprint.h"
+
+#endif // SSL_USE_OPENSSL
namespace rtc {
@@ -207,6 +213,8 @@
std::for_each(certs_.begin(), certs_.end(), DeleteCert);
}
+#if SSL_USE_OPENSSL
+
// static
SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) {
return OpenSSLCertificate::FromPEMString(pem_string);
@@ -251,6 +259,12 @@
bool operator!=(const SSLIdentity& a, const SSLIdentity& b) {
return !(a == b);
}
+
+#else // !SSL_USE_OPENSSL
+
+#error "No SSL implementation"
+
+#endif // SSL_USE_OPENSSL
// Read |n| bytes from ASN1 number string at *|pp| and return the numeric value.
// Update *|pp| and *|np| to reflect number of read bytes.
« no previous file with comments | « webrtc/base/sslconfig.h ('k') | webrtc/base/sslstreamadapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698