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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Default implementation. | 97 // Default implementation. |
98 virtual bool GetSslRole(rtc::SSLRole* role) const = 0; | 98 virtual bool GetSslRole(rtc::SSLRole* role) const = 0; |
99 | 99 |
100 // Sets up the ciphers to use for DTLS-SRTP. | 100 // Sets up the ciphers to use for DTLS-SRTP. |
101 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0; | 101 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers) = 0; |
102 | 102 |
103 // Finds out which DTLS-SRTP cipher was negotiated. | 103 // Finds out which DTLS-SRTP cipher was negotiated. |
104 virtual bool GetSrtpCipher(std::string* cipher) = 0; | 104 virtual bool GetSrtpCipher(std::string* cipher) = 0; |
105 | 105 |
106 // Finds out which DTLS cipher was negotiated. | 106 // Finds out which DTLS cipher was negotiated. |
107 virtual bool GetSslCipher(std::string* cipher) = 0; | 107 virtual bool GetSslCipher(rtc::SslCipher* cipher) = 0; |
108 | 108 |
109 // Gets the local RTCCertificate used for DTLS. | 109 // Gets the local RTCCertificate used for DTLS. |
110 virtual rtc::scoped_refptr<rtc::RTCCertificate> | 110 virtual rtc::scoped_refptr<rtc::RTCCertificate> |
111 GetLocalCertificate() const = 0; | 111 GetLocalCertificate() const = 0; |
112 | 112 |
113 // Gets a copy of the remote side's SSL certificate, owned by the caller. | 113 // Gets a copy of the remote side's SSL certificate, owned by the caller. |
114 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; | 114 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; |
115 | 115 |
116 // Allows key material to be extracted for external encryption. | 116 // Allows key material to be extracted for external encryption. |
117 virtual bool ExportKeyingMaterial(const std::string& label, | 117 virtual bool ExportKeyingMaterial(const std::string& label, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 int component_; | 153 int component_; |
154 bool writable_; | 154 bool writable_; |
155 bool receiving_; | 155 bool receiving_; |
156 | 156 |
157 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 157 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace cricket | 160 } // namespace cricket |
161 | 161 |
162 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 162 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
OLD | NEW |