| Index: webrtc/base/sslidentity.cc
|
| diff --git a/webrtc/base/sslidentity.cc b/webrtc/base/sslidentity.cc
|
| index 0da254fcaa15666607ab9a9deb11d5fdab221de7..33b7387588633e8106817396e9b6e1f583397390 100644
|
| --- a/webrtc/base/sslidentity.cc
|
| +++ b/webrtc/base/sslidentity.cc
|
| @@ -26,6 +26,10 @@
|
| #elif SSL_USE_OPENSSL // !SSL_USE_SCHANNEL
|
|
|
| #include "webrtc/base/opensslidentity.h"
|
| +
|
| +#elif SSL_USE_NSS // !SSL_USE_SCHANNEL && !SSL_USE_OPENSSL
|
| +
|
| +#include "webrtc/base/nssidentity.h"
|
|
|
| #endif // SSL_USE_SCHANNEL
|
|
|
| @@ -139,7 +143,27 @@
|
| return OpenSSLIdentity::FromPEMStrings(private_key, certificate);
|
| }
|
|
|
| -#else // !SSL_USE_OPENSSL && !SSL_USE_SCHANNEL
|
| +#elif SSL_USE_NSS // !SSL_USE_OPENSSL && !SSL_USE_SCHANNEL
|
| +
|
| +SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) {
|
| + return NSSCertificate::FromPEMString(pem_string);
|
| +}
|
| +
|
| +SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
|
| + KeyType key_type) {
|
| + return NSSIdentity::Generate(common_name, key_type);
|
| +}
|
| +
|
| +SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) {
|
| + return NSSIdentity::GenerateForTest(params);
|
| +}
|
| +
|
| +SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key,
|
| + const std::string& certificate) {
|
| + return NSSIdentity::FromPEMStrings(private_key, certificate);
|
| +}
|
| +
|
| +#else // !SSL_USE_OPENSSL && !SSL_USE_SCHANNEL && !SSL_USE_NSS
|
|
|
| #error "No SSL implementation"
|
|
|
|
|