| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers); | 117 virtual bool SetSrtpCiphers(const std::vector<std::string>& ciphers); |
| 118 | 118 |
| 119 // Finds out which DTLS-SRTP cipher was negotiated. | 119 // Finds out which DTLS-SRTP cipher was negotiated. |
| 120 // TODO(guoweis): Remove this once all dependencies implement this. | 120 // TODO(guoweis): Remove this once all dependencies implement this. |
| 121 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; } | 121 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; } |
| 122 | 122 |
| 123 // Finds out which DTLS cipher was negotiated. | 123 // Finds out which DTLS cipher was negotiated. |
| 124 // TODO(guoweis): Remove this once all dependencies implement this. | 124 // TODO(guoweis): Remove this once all dependencies implement this. |
| 125 virtual bool GetSslCipherSuite(int* cipher) { return false; } | 125 virtual bool GetSslCipherSuite(int* cipher) { return false; } |
| 126 | 126 |
| 127 // May GCM ciphers be used? |
| 128 virtual bool IsEnableGcmCiphers() const { return false; } |
| 129 |
| 127 // Gets the local RTCCertificate used for DTLS. | 130 // Gets the local RTCCertificate used for DTLS. |
| 128 virtual rtc::scoped_refptr<rtc::RTCCertificate> | 131 virtual rtc::scoped_refptr<rtc::RTCCertificate> |
| 129 GetLocalCertificate() const = 0; | 132 GetLocalCertificate() const = 0; |
| 130 | 133 |
| 131 // Gets a copy of the remote side's SSL certificate, owned by the caller. | 134 // Gets a copy of the remote side's SSL certificate, owned by the caller. |
| 132 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; | 135 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; |
| 133 | 136 |
| 134 // Allows key material to be extracted for external encryption. | 137 // Allows key material to be extracted for external encryption. |
| 135 virtual bool ExportKeyingMaterial(const std::string& label, | 138 virtual bool ExportKeyingMaterial(const std::string& label, |
| 136 const uint8_t* context, | 139 const uint8_t* context, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 bool writable_; | 177 bool writable_; |
| 175 bool receiving_; | 178 bool receiving_; |
| 176 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 179 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
| 177 | 180 |
| 178 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 181 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
| 179 }; | 182 }; |
| 180 | 183 |
| 181 } // namespace cricket | 184 } // namespace cricket |
| 182 | 185 |
| 183 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 186 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
| OLD | NEW |