OLD | NEW |
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 |
11 #if HAVE_OPENSSL_SSL_H | 11 #if HAVE_OPENSSL_SSL_H |
12 | 12 |
13 #include "webrtc/base/openssladapter.h" | 13 #include "webrtc/base/openssladapter.h" |
14 | 14 |
15 #if defined(WEBRTC_POSIX) | 15 #if defined(WEBRTC_POSIX) |
16 #include <unistd.h> | 16 #include <unistd.h> |
17 #endif | 17 #endif |
18 | 18 |
19 // Must be included first before openssl headers. | 19 // Must be included first before openssl headers. |
20 #include "webrtc/base/win32.h" // NOLINT | 20 #include "webrtc/base/win32.h" // NOLINT |
21 | 21 |
22 #include <openssl/bio.h> | 22 #include <openssl/bio.h> |
23 #include <openssl/crypto.h> | 23 #include <openssl/crypto.h> |
24 #include <openssl/err.h> | 24 #include <openssl/err.h> |
25 #include <openssl/opensslv.h> | 25 #include <openssl/opensslv.h> |
26 #include <openssl/rand.h> | 26 #include <openssl/rand.h> |
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 | |
31 #include "config.h" | |
32 #endif // HAVE_CONFIG_H | |
33 | |
34 #include "webrtc/base/arraysize.h" | 30 #include "webrtc/base/arraysize.h" |
35 #include "webrtc/base/common.h" | 31 #include "webrtc/base/common.h" |
36 #include "webrtc/base/logging.h" | 32 #include "webrtc/base/logging.h" |
37 #include "webrtc/base/openssl.h" | 33 #include "webrtc/base/openssl.h" |
38 #include "webrtc/base/safe_conversions.h" | 34 #include "webrtc/base/safe_conversions.h" |
39 #include "webrtc/base/sslroots.h" | 35 #include "webrtc/base/sslroots.h" |
40 #include "webrtc/base/stringutils.h" | 36 #include "webrtc/base/stringutils.h" |
41 #include "webrtc/base/thread.h" | 37 #include "webrtc/base/thread.h" |
42 | 38 |
43 #ifndef OPENSSL_IS_BORINGSSL | 39 #ifndef OPENSSL_IS_BORINGSSL |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 if (ssl_mode_ == SSL_MODE_DTLS) { | 957 if (ssl_mode_ == SSL_MODE_DTLS) { |
962 SSL_CTX_set_read_ahead(ctx, 1); | 958 SSL_CTX_set_read_ahead(ctx, 1); |
963 } | 959 } |
964 | 960 |
965 return ctx; | 961 return ctx; |
966 } | 962 } |
967 | 963 |
968 } // namespace rtc | 964 } // namespace rtc |
969 | 965 |
970 #endif // HAVE_OPENSSL_SSL_H | 966 #endif // HAVE_OPENSSL_SSL_H |
OLD | NEW |