| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual bool GetSrtpCipher(std::string* cipher) { | 118 virtual bool GetSrtpCipher(std::string* cipher) { |
| 119 return false; | 119 return false; |
| 120 } | 120 } |
| 121 | 121 |
| 122 // Find out which DTLS cipher was negotiated. | 122 // Find out which DTLS cipher was negotiated. |
| 123 virtual bool GetSslCipher(std::string* cipher) { | 123 virtual bool GetSslCipher(std::string* cipher) { |
| 124 return false; | 124 return false; |
| 125 } | 125 } |
| 126 | 126 |
| 127 // Returns false because the channel is not DTLS. | 127 // Returns false because the channel is not DTLS. |
| 128 virtual bool GetLocalIdentity(rtc::SSLIdentity** identity) const { | 128 bool GetLocalCertificate( |
| 129 rtc::scoped_refptr<webrtc::DtlsCertificate>* certificate) const override { |
| 129 return false; | 130 return false; |
| 130 } | 131 } |
| 131 | 132 |
| 132 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const { | 133 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const { |
| 133 return false; | 134 return false; |
| 134 } | 135 } |
| 135 | 136 |
| 136 // Allows key material to be extracted for external encryption. | 137 // Allows key material to be extracted for external encryption. |
| 137 virtual bool ExportKeyingMaterial( | 138 virtual bool ExportKeyingMaterial( |
| 138 const std::string& label, | 139 const std::string& label, |
| 139 const uint8* context, | 140 const uint8* context, |
| 140 size_t context_len, | 141 size_t context_len, |
| 141 bool use_context, | 142 bool use_context, |
| 142 uint8* result, | 143 uint8* result, |
| 143 size_t result_len) { | 144 size_t result_len) { |
| 144 return false; | 145 return false; |
| 145 } | 146 } |
| 146 | 147 |
| 147 virtual bool SetLocalIdentity(rtc::SSLIdentity* identity) { | 148 bool SetLocalCertificate( |
| 149 const rtc::scoped_refptr<webrtc::DtlsCertificate>& certificate) override { |
| 148 return false; | 150 return false; |
| 149 } | 151 } |
| 150 | 152 |
| 151 // Set DTLS Remote fingerprint. Must be after local identity set. | 153 // Set DTLS Remote fingerprint. Must be after local identity set. |
| 152 virtual bool SetRemoteFingerprint( | 154 virtual bool SetRemoteFingerprint( |
| 153 const std::string& digest_alg, | 155 const std::string& digest_alg, |
| 154 const uint8* digest, | 156 const uint8* digest, |
| 155 size_t digest_len) { | 157 size_t digest_len) { |
| 156 return false; | 158 return false; |
| 157 } | 159 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Handles a message to destroy unused ports. | 193 // Handles a message to destroy unused ports. |
| 192 virtual void OnMessage(rtc::Message *msg); | 194 virtual void OnMessage(rtc::Message *msg); |
| 193 | 195 |
| 194 DISALLOW_COPY_AND_ASSIGN(RawTransportChannel); | 196 DISALLOW_COPY_AND_ASSIGN(RawTransportChannel); |
| 195 }; | 197 }; |
| 196 | 198 |
| 197 } // namespace cricket | 199 } // namespace cricket |
| 198 | 200 |
| 199 #endif // defined(FEATURE_ENABLE_PSTN) | 201 #endif // defined(FEATURE_ENABLE_PSTN) |
| 200 #endif // WEBRTC_P2P_BASE_RAWTRANSPORTCHANNEL_H_ | 202 #endif // WEBRTC_P2P_BASE_RAWTRANSPORTCHANNEL_H_ |
| OLD | NEW |