| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; } | 122 virtual bool GetSrtpCryptoSuite(int* cipher) { return false; } |
| 123 | 123 |
| 124 // Finds out which DTLS cipher was negotiated. | 124 // Finds out which DTLS cipher was negotiated. |
| 125 // TODO(guoweis): Remove this once all dependencies implement this. | 125 // TODO(guoweis): Remove this once all dependencies implement this. |
| 126 virtual bool GetSslCipherSuite(int* cipher) { return false; } | 126 virtual bool GetSslCipherSuite(int* cipher) { return false; } |
| 127 | 127 |
| 128 // Gets the local RTCCertificate used for DTLS. | 128 // Gets the local RTCCertificate used for DTLS. |
| 129 virtual rtc::scoped_refptr<rtc::RTCCertificate> | 129 virtual rtc::scoped_refptr<rtc::RTCCertificate> |
| 130 GetLocalCertificate() const = 0; | 130 GetLocalCertificate() const = 0; |
| 131 | 131 |
| 132 // Gets a copy of the remote side's SSL certificate, owned by the caller. | 132 // Gets a copy of the remote side's SSL certificate. |
| 133 virtual bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const = 0; | 133 virtual rtc::scoped_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate() |
| 134 const = 0; |
| 134 | 135 |
| 135 // Allows key material to be extracted for external encryption. | 136 // Allows key material to be extracted for external encryption. |
| 136 virtual bool ExportKeyingMaterial(const std::string& label, | 137 virtual bool ExportKeyingMaterial(const std::string& label, |
| 137 const uint8_t* context, | 138 const uint8_t* context, |
| 138 size_t context_len, | 139 size_t context_len, |
| 139 bool use_context, | 140 bool use_context, |
| 140 uint8_t* result, | 141 uint8_t* result, |
| 141 size_t result_len) = 0; | 142 size_t result_len) = 0; |
| 142 | 143 |
| 143 // Signalled each time a packet is received on this channel. | 144 // Signalled each time a packet is received on this channel. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 bool writable_; | 184 bool writable_; |
| 184 bool receiving_; | 185 bool receiving_; |
| 185 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 186 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
| 186 | 187 |
| 187 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); | 188 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 } // namespace cricket | 191 } // namespace cricket |
| 191 | 192 |
| 192 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ | 193 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ |
| OLD | NEW |