OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // This method should be called before SetupDtls. | 137 // This method should be called before SetupDtls. |
138 bool SetSrtpCiphers(const std::vector<std::string>& ciphers) override; | 138 bool SetSrtpCiphers(const std::vector<std::string>& ciphers) override; |
139 | 139 |
140 // Find out which DTLS-SRTP cipher was negotiated | 140 // Find out which DTLS-SRTP cipher was negotiated |
141 bool GetSrtpCipher(std::string* cipher) override; | 141 bool GetSrtpCipher(std::string* cipher) override; |
142 | 142 |
143 bool GetSslRole(rtc::SSLRole* role) const override; | 143 bool GetSslRole(rtc::SSLRole* role) const override; |
144 bool SetSslRole(rtc::SSLRole role) override; | 144 bool SetSslRole(rtc::SSLRole role) override; |
145 | 145 |
146 // Find out which DTLS cipher was negotiated | 146 // Find out which DTLS cipher was negotiated |
147 bool GetSslCipher(std::string* cipher) override; | 147 bool GetSslCipher(rtc::SslCipher* cipher) override; |
148 | 148 |
149 // Once DTLS has been established, this method retrieves the certificate in | 149 // Once DTLS has been established, this method retrieves the certificate in |
150 // use by the remote peer, for use in external identity verification. | 150 // use by the remote peer, for use in external identity verification. |
151 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override; | 151 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override; |
152 | 152 |
153 // Once DTLS has established (i.e., this channel is writable), this method | 153 // Once DTLS has established (i.e., this channel is writable), this method |
154 // extracts the keys negotiated during the DTLS handshake, for use in external | 154 // extracts the keys negotiated during the DTLS handshake, for use in external |
155 // encryption. DTLS-SRTP uses this to extract the needed SRTP keys. | 155 // encryption. DTLS-SRTP uses this to extract the needed SRTP keys. |
156 // See the SSLStreamAdapter documentation for info on the specific parameters. | 156 // See the SSLStreamAdapter documentation for info on the specific parameters. |
157 bool ExportKeyingMaterial(const std::string& label, | 157 bool ExportKeyingMaterial(const std::string& label, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 rtc::SSLProtocolVersion ssl_max_version_; | 236 rtc::SSLProtocolVersion ssl_max_version_; |
237 rtc::Buffer remote_fingerprint_value_; | 237 rtc::Buffer remote_fingerprint_value_; |
238 std::string remote_fingerprint_algorithm_; | 238 std::string remote_fingerprint_algorithm_; |
239 | 239 |
240 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); | 240 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); |
241 }; | 241 }; |
242 | 242 |
243 } // namespace cricket | 243 } // namespace cricket |
244 | 244 |
245 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ | 245 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ |
OLD | NEW |