| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 size_t digest_len, | 69 size_t digest_len, |
| 70 SSLPeerCertificateDigestError* error = nullptr) override; | 70 SSLPeerCertificateDigestError* error = nullptr) override; |
| 71 | 71 |
| 72 std::unique_ptr<SSLCertificate> GetPeerCertificate() const override; | 72 std::unique_ptr<SSLCertificate> GetPeerCertificate() const override; |
| 73 | 73 |
| 74 // Goes from state SSL_NONE to either SSL_CONNECTING or SSL_WAIT, depending | 74 // Goes from state SSL_NONE to either SSL_CONNECTING or SSL_WAIT, depending |
| 75 // on whether the underlying stream is already open or not. | 75 // on whether the underlying stream is already open or not. |
| 76 int StartSSL() override; | 76 int StartSSL() override; |
| 77 void SetMode(SSLMode mode) override; | 77 void SetMode(SSLMode mode) override; |
| 78 void SetMaxProtocolVersion(SSLProtocolVersion version) override; | 78 void SetMaxProtocolVersion(SSLProtocolVersion version) override; |
| 79 void SetInitialRetransmissionTimeout(int timeout_ms) override; | |
| 80 | 79 |
| 81 StreamResult Read(void* data, | 80 StreamResult Read(void* data, |
| 82 size_t data_len, | 81 size_t data_len, |
| 83 size_t* read, | 82 size_t* read, |
| 84 int* error) override; | 83 int* error) override; |
| 85 StreamResult Write(const void* data, | 84 StreamResult Write(const void* data, |
| 86 size_t data_len, | 85 size_t data_len, |
| 87 size_t* written, | 86 size_t* written, |
| 88 int* error) override; | 87 int* error) override; |
| 89 void Close() override; | 88 void Close() override; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 std::string peer_certificate_digest_algorithm_; | 205 std::string peer_certificate_digest_algorithm_; |
| 207 | 206 |
| 208 // The DtlsSrtp ciphers | 207 // The DtlsSrtp ciphers |
| 209 std::string srtp_ciphers_; | 208 std::string srtp_ciphers_; |
| 210 | 209 |
| 211 // Do DTLS or not | 210 // Do DTLS or not |
| 212 SSLMode ssl_mode_; | 211 SSLMode ssl_mode_; |
| 213 | 212 |
| 214 // Max. allowed protocol version | 213 // Max. allowed protocol version |
| 215 SSLProtocolVersion ssl_max_version_; | 214 SSLProtocolVersion ssl_max_version_; |
| 216 | |
| 217 // A 50-ms initial timeout ensures rapid setup on fast connections, but may | |
| 218 // be too aggressive for low bandwidth links. | |
| 219 int dtls_handshake_timeout_ms_ = 50; | |
| 220 }; | 215 }; |
| 221 | 216 |
| 222 ///////////////////////////////////////////////////////////////////////////// | 217 ///////////////////////////////////////////////////////////////////////////// |
| 223 | 218 |
| 224 } // namespace rtc | 219 } // namespace rtc |
| 225 | 220 |
| 226 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 221 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
| OLD | NEW |