Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: webrtc/p2p/base/dtlstransport.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: google::int32 Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2012 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 TransportChannelImpl* channel, 231 TransportChannelImpl* channel,
232 std::string* error_desc) override { 232 std::string* error_desc) override {
233 RTC_DCHECK(Base::worker_thread()->IsCurrent()); 233 RTC_DCHECK(Base::worker_thread()->IsCurrent());
234 // Set ssl role. Role must be set before fingerprint is applied, which 234 // Set ssl role. Role must be set before fingerprint is applied, which
235 // initiates DTLS setup. 235 // initiates DTLS setup.
236 if (!channel->SetSslRole(secure_role_)) { 236 if (!channel->SetSslRole(secure_role_)) {
237 return BadTransportDescription("Failed to set ssl role for the channel.", 237 return BadTransportDescription("Failed to set ssl role for the channel.",
238 error_desc); 238 error_desc);
239 } 239 }
240 // Apply remote fingerprint. 240 // Apply remote fingerprint.
241 if (!channel->SetRemoteFingerprint( 241 if (!channel->SetRemoteFingerprint(remote_fingerprint_->algorithm,
242 remote_fingerprint_->algorithm, 242 reinterpret_cast<const uint8_t*>(
243 reinterpret_cast<const uint8*>(remote_fingerprint_->digest.data()), 243 remote_fingerprint_->digest.data()),
244 remote_fingerprint_->digest.size())) { 244 remote_fingerprint_->digest.size())) {
245 return BadTransportDescription("Failed to apply remote fingerprint.", 245 return BadTransportDescription("Failed to apply remote fingerprint.",
246 error_desc); 246 error_desc);
247 } 247 }
248 return Base::ApplyNegotiatedTransportDescription_w(channel, error_desc); 248 return Base::ApplyNegotiatedTransportDescription_w(channel, error_desc);
249 } 249 }
250 250
251 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 251 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
252 rtc::SSLRole secure_role_; 252 rtc::SSLRole secure_role_;
253 rtc::SSLProtocolVersion ssl_max_version_; 253 rtc::SSLProtocolVersion ssl_max_version_;
254 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_; 254 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_;
255 }; 255 };
256 256
257 } // namespace cricket 257 } // namespace cricket
258 258
259 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_ 259 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698