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