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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ~OpenSSLStreamAdapter() override; | 62 ~OpenSSLStreamAdapter() override; |
63 | 63 |
64 void SetIdentity(SSLIdentity* identity) override; | 64 void SetIdentity(SSLIdentity* identity) override; |
65 | 65 |
66 // Default argument is for compatibility | 66 // Default argument is for compatibility |
67 void SetServerRole(SSLRole role = SSL_SERVER) override; | 67 void SetServerRole(SSLRole role = SSL_SERVER) override; |
68 bool SetPeerCertificateDigest(const std::string& digest_alg, | 68 bool SetPeerCertificateDigest(const std::string& digest_alg, |
69 const unsigned char* digest_val, | 69 const unsigned char* digest_val, |
70 size_t digest_len) override; | 70 size_t digest_len) override; |
71 | 71 |
72 bool GetPeerCertificate(SSLCertificate** cert) const override; | 72 rtc::scoped_ptr<SSLCertificate> GetPeerCertificate() const override; |
73 | 73 |
74 int StartSSLWithServer(const char* server_name) override; | 74 int StartSSLWithServer(const char* server_name) override; |
75 int StartSSLWithPeer() override; | 75 int StartSSLWithPeer() override; |
76 void SetMode(SSLMode mode) override; | 76 void SetMode(SSLMode mode) override; |
77 void SetMaxProtocolVersion(SSLProtocolVersion version) override; | 77 void SetMaxProtocolVersion(SSLProtocolVersion version) override; |
78 | 78 |
79 StreamResult Read(void* data, | 79 StreamResult Read(void* data, |
80 size_t data_len, | 80 size_t data_len, |
81 size_t* read, | 81 size_t* read, |
82 int* error) override; | 82 int* error) override; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 // Max. allowed protocol version | 208 // Max. allowed protocol version |
209 SSLProtocolVersion ssl_max_version_; | 209 SSLProtocolVersion ssl_max_version_; |
210 }; | 210 }; |
211 | 211 |
212 ///////////////////////////////////////////////////////////////////////////// | 212 ///////////////////////////////////////////////////////////////////////////// |
213 | 213 |
214 } // namespace rtc | 214 } // namespace rtc |
215 | 215 |
216 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 216 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
OLD | NEW |