| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 std::for_each(certs_.begin(), certs_.end(), DeleteCert); | 103 std::for_each(certs_.begin(), certs_.end(), DeleteCert); |
| 104 } | 104 } |
| 105 | 105 |
| 106 #if SSL_USE_SCHANNEL | 106 #if SSL_USE_SCHANNEL |
| 107 | 107 |
| 108 SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) { | 108 SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) { |
| 109 return NULL; | 109 return NULL; |
| 110 } | 110 } |
| 111 | 111 |
| 112 SSLIdentity* SSLIdentity::Generate(const std::string& common_name, | 112 SSLIdentity* SSLIdentity::Generate(const std::string& common_name, |
| 113 KeyType key_type) { | 113 KeyTypeFull key_type) { |
| 114 return NULL; | 114 return NULL; |
| 115 } | 115 } |
| 116 | 116 |
| 117 SSLIdentity* GenerateForTest(const SSLIdentityParams& params) { | 117 SSLIdentity* GenerateForTest(const SSLIdentityParams& params) { |
| 118 return NULL; | 118 return NULL; |
| 119 } | 119 } |
| 120 | 120 |
| 121 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, | 121 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, |
| 122 const std::string& certificate) { | 122 const std::string& certificate) { |
| 123 return NULL; | 123 return NULL; |
| 124 } | 124 } |
| 125 | 125 |
| 126 #elif SSL_USE_OPENSSL // !SSL_USE_SCHANNEL | 126 #elif SSL_USE_OPENSSL // !SSL_USE_SCHANNEL |
| 127 | 127 |
| 128 SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) { | 128 SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) { |
| 129 return OpenSSLCertificate::FromPEMString(pem_string); | 129 return OpenSSLCertificate::FromPEMString(pem_string); |
| 130 } | 130 } |
| 131 | 131 |
| 132 SSLIdentity* SSLIdentity::Generate(const std::string& common_name, | 132 SSLIdentity* SSLIdentity::Generate(const std::string& common_name, |
| 133 KeyType key_type) { | 133 KeyTypeFull key_type) { |
| 134 return OpenSSLIdentity::Generate(common_name, key_type); | 134 return OpenSSLIdentity::Generate(common_name, key_type); |
| 135 } | 135 } |
| 136 | 136 |
| 137 SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) { | 137 SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) { |
| 138 return OpenSSLIdentity::GenerateForTest(params); | 138 return OpenSSLIdentity::GenerateForTest(params); |
| 139 } | 139 } |
| 140 | 140 |
| 141 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, | 141 SSLIdentity* SSLIdentity::FromPEMStrings(const std::string& private_key, |
| 142 const std::string& certificate) { | 142 const std::string& certificate) { |
| 143 return OpenSSLIdentity::FromPEMStrings(private_key, certificate); | 143 return OpenSSLIdentity::FromPEMStrings(private_key, certificate); |
| 144 } | 144 } |
| 145 | 145 |
| 146 #else // !SSL_USE_OPENSSL && !SSL_USE_SCHANNEL | 146 #else // !SSL_USE_OPENSSL && !SSL_USE_SCHANNEL |
| 147 | 147 |
| 148 #error "No SSL implementation" | 148 #error "No SSL implementation" |
| 149 | 149 |
| 150 #endif // SSL_USE_SCHANNEL | 150 #endif // SSL_USE_SCHANNEL |
| 151 | 151 |
| 152 } // namespace rtc | 152 } // namespace rtc |
| OLD | NEW |