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

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

Issue 1753293002: Safe numeric library: base/numerics (copied from Chromium) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase with master + correct new safe_conversions.h include Created 4 years, 9 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 | « webrtc/base/numerics/safe_math_impl.h ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | 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 16 matching lines...) Expand all
27 #include <openssl/x509.h> 27 #include <openssl/x509.h>
28 #include <openssl/x509v3.h> 28 #include <openssl/x509v3.h>
29 29
30 #if HAVE_CONFIG_H 30 #if HAVE_CONFIG_H
31 #include "config.h" 31 #include "config.h"
32 #endif // HAVE_CONFIG_H 32 #endif // HAVE_CONFIG_H
33 33
34 #include "webrtc/base/arraysize.h" 34 #include "webrtc/base/arraysize.h"
35 #include "webrtc/base/common.h" 35 #include "webrtc/base/common.h"
36 #include "webrtc/base/logging.h" 36 #include "webrtc/base/logging.h"
37 #include "webrtc/base/numerics/safe_conversions.h"
37 #include "webrtc/base/openssl.h" 38 #include "webrtc/base/openssl.h"
38 #include "webrtc/base/safe_conversions.h"
39 #include "webrtc/base/sslroots.h" 39 #include "webrtc/base/sslroots.h"
40 #include "webrtc/base/stringutils.h" 40 #include "webrtc/base/stringutils.h"
41 #include "webrtc/base/thread.h" 41 #include "webrtc/base/thread.h"
42 42
43 #ifndef OPENSSL_IS_BORINGSSL 43 #ifndef OPENSSL_IS_BORINGSSL
44 44
45 // TODO: Use a nicer abstraction for mutex. 45 // TODO: Use a nicer abstraction for mutex.
46 46
47 #if defined(WEBRTC_WIN) 47 #if defined(WEBRTC_WIN)
48 #define MUTEX_TYPE HANDLE 48 #define MUTEX_TYPE HANDLE
(...skipping 912 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 | « webrtc/base/numerics/safe_math_impl.h ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698