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

Side by Side Diff: webrtc/base/openssladapter.cc

Issue 1639883002: Remove incorrect cast to AsyncSocketAdapter. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: didn't even need a cast, woot Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2008 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 // First set up the context 330 // First set up the context
331 if (!ssl_ctx_) 331 if (!ssl_ctx_)
332 ssl_ctx_ = SetupSSLContext(); 332 ssl_ctx_ = SetupSSLContext();
333 333
334 if (!ssl_ctx_) { 334 if (!ssl_ctx_) {
335 err = -1; 335 err = -1;
336 goto ssl_error; 336 goto ssl_error;
337 } 337 }
338 338
339 bio = BIO_new_socket(static_cast<AsyncSocketAdapter*>(socket_)); 339 bio = BIO_new_socket(socket_);
340 if (!bio) { 340 if (!bio) {
341 err = -1; 341 err = -1;
342 goto ssl_error; 342 goto ssl_error;
343 } 343 }
344 344
345 ssl_ = SSL_new(ssl_ctx_); 345 ssl_ = SSL_new(ssl_ctx_);
346 if (!ssl_) { 346 if (!ssl_) {
347 err = -1; 347 err = -1;
348 goto ssl_error; 348 goto ssl_error;
349 } 349 }
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 if (ssl_mode_ == SSL_MODE_DTLS) { 961 if (ssl_mode_ == SSL_MODE_DTLS) {
962 SSL_CTX_set_read_ahead(ctx, 1); 962 SSL_CTX_set_read_ahead(ctx, 1);
963 } 963 }
964 964
965 return ctx; 965 return ctx;
966 } 966 }
967 967
968 } // namespace rtc 968 } // namespace rtc
969 969
970 #endif // HAVE_OPENSSL_SSL_H 970 #endif // HAVE_OPENSSL_SSL_H
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698