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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual bool GetSrtpCipher(std::string* cipher) { | 113 virtual bool GetSrtpCipher(std::string* cipher) { |
114 return false; | 114 return false; |
115 } | 115 } |
116 | 116 |
117 // Find out which DTLS cipher was negotiated. | 117 // Find out which DTLS cipher was negotiated. |
118 virtual bool GetSslCipher(std::string* cipher) { | 118 virtual bool GetSslCipher(std::string* cipher) { |
119 return false; | 119 return false; |
120 } | 120 } |
121 | 121 |
122 // Returns false because the channel is not encrypted by default. | 122 // Returns false because the channel is not encrypted by default. |
123 virtual bool GetLocalIdentity(rtc::SSLIdentity** identity) const { | 123 bool GetLocalCertificate( |
| 124 rtc::scoped_refptr<rtc::RTCCertificate>* certificate) const override { |
124 return false; | 125 return false; |
125 } | 126 } |
126 | 127 |
127 virtual bool GetRemoteCertificate(rtc::SSLCertificate** cert) const { | 128 bool GetRemoteSSLCertificate(rtc::SSLCertificate** cert) const override { |
128 return false; | 129 return false; |
129 } | 130 } |
130 | 131 |
131 // Allows key material to be extracted for external encryption. | 132 // Allows key material to be extracted for external encryption. |
132 virtual bool ExportKeyingMaterial( | 133 virtual bool ExportKeyingMaterial( |
133 const std::string& label, | 134 const std::string& label, |
134 const uint8* context, | 135 const uint8* context, |
135 size_t context_len, | 136 size_t context_len, |
136 bool use_context, | 137 bool use_context, |
137 uint8* result, | 138 uint8* result, |
138 size_t result_len) { | 139 size_t result_len) { |
139 return false; | 140 return false; |
140 } | 141 } |
141 | 142 |
142 virtual bool SetLocalIdentity(rtc::SSLIdentity* identity) { | 143 bool SetLocalCertificate( |
| 144 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) override { |
143 return false; | 145 return false; |
144 } | 146 } |
145 | 147 |
146 // Set DTLS Remote fingerprint. Must be after local identity set. | 148 // Set DTLS Remote fingerprint. Must be after local identity set. |
147 virtual bool SetRemoteFingerprint( | 149 virtual bool SetRemoteFingerprint( |
148 const std::string& digest_alg, | 150 const std::string& digest_alg, |
149 const uint8* digest, | 151 const uint8* digest, |
150 size_t digest_len) { | 152 size_t digest_len) { |
151 return false; | 153 return false; |
152 } | 154 } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 253 |
252 int check_receiving_delay_; | 254 int check_receiving_delay_; |
253 int receiving_timeout_; | 255 int receiving_timeout_; |
254 | 256 |
255 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 257 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
256 }; | 258 }; |
257 | 259 |
258 } // namespace cricket | 260 } // namespace cricket |
259 | 261 |
260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 262 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |