OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 ssl_role_ = role; | 182 ssl_role_ = role; |
183 return true; | 183 return true; |
184 } | 184 } |
185 | 185 |
186 bool DtlsTransportChannelWrapper::GetSslRole(rtc::SSLRole* role) const { | 186 bool DtlsTransportChannelWrapper::GetSslRole(rtc::SSLRole* role) const { |
187 *role = ssl_role_; | 187 *role = ssl_role_; |
188 return true; | 188 return true; |
189 } | 189 } |
190 | 190 |
191 bool DtlsTransportChannelWrapper::GetSslCipher(std::string* cipher) { | 191 bool DtlsTransportChannelWrapper::GetSslCipher(rtc::SslCipher* cipher) { |
192 if (dtls_state_ != STATE_OPEN) { | 192 if (dtls_state_ != STATE_OPEN) { |
193 return false; | 193 return false; |
194 } | 194 } |
195 | 195 |
196 return dtls_->GetSslCipher(cipher); | 196 return dtls_->GetSslCipher(cipher); |
197 } | 197 } |
198 | 198 |
199 bool DtlsTransportChannelWrapper::SetRemoteFingerprint( | 199 bool DtlsTransportChannelWrapper::SetRemoteFingerprint( |
200 const std::string& digest_alg, | 200 const std::string& digest_alg, |
201 const uint8* digest, | 201 const uint8* digest, |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 SignalRouteChange(this, candidate); | 621 SignalRouteChange(this, candidate); |
622 } | 622 } |
623 | 623 |
624 void DtlsTransportChannelWrapper::OnConnectionRemoved( | 624 void DtlsTransportChannelWrapper::OnConnectionRemoved( |
625 TransportChannelImpl* channel) { | 625 TransportChannelImpl* channel) { |
626 ASSERT(channel == channel_); | 626 ASSERT(channel == channel_); |
627 SignalConnectionRemoved(this); | 627 SignalConnectionRemoved(this); |
628 } | 628 } |
629 | 629 |
630 } // namespace cricket | 630 } // namespace cricket |
OLD | NEW |