OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 #include "webrtc/base/opensslstreamadapter.h" | 11 #include "webrtc/base/opensslstreamadapter.h" |
12 | 12 |
13 #include <openssl/bio.h> | 13 #include <openssl/bio.h> |
14 #include <openssl/crypto.h> | 14 #include <openssl/crypto.h> |
15 #include <openssl/err.h> | 15 #include <openssl/err.h> |
16 #include <openssl/rand.h> | 16 #include <openssl/rand.h> |
17 #include <openssl/tls1.h> | 17 #include <openssl/tls1.h> |
18 #include <openssl/x509v3.h> | 18 #include <openssl/x509v3.h> |
19 #ifndef OPENSSL_IS_BORINGSSL | 19 #ifndef OPENSSL_IS_BORINGSSL |
20 #include <openssl/dtls1.h> | 20 #include <openssl/dtls1.h> |
21 #include <openssl/ssl.h> | 21 #include <openssl/ssl.h> |
22 #endif | 22 #endif |
23 | 23 |
24 #include <memory> | 24 #include <memory> |
25 #include <vector> | 25 #include <vector> |
26 | 26 |
27 #include "webrtc/base/checks.h" | 27 #include "webrtc/base/checks.h" |
| 28 #include "webrtc/base/common.h" // For RTC_UNUSED |
28 #include "webrtc/base/logging.h" | 29 #include "webrtc/base/logging.h" |
29 #include "webrtc/base/safe_conversions.h" | 30 #include "webrtc/base/safe_conversions.h" |
30 #include "webrtc/base/stream.h" | 31 #include "webrtc/base/stream.h" |
31 #include "webrtc/base/openssl.h" | 32 #include "webrtc/base/openssl.h" |
32 #include "webrtc/base/openssladapter.h" | 33 #include "webrtc/base/openssladapter.h" |
33 #include "webrtc/base/openssldigest.h" | 34 #include "webrtc/base/openssldigest.h" |
34 #include "webrtc/base/opensslidentity.h" | 35 #include "webrtc/base/opensslidentity.h" |
35 #include "webrtc/base/stringutils.h" | 36 #include "webrtc/base/stringutils.h" |
36 #include "webrtc/base/timeutils.h" | 37 #include "webrtc/base/timeutils.h" |
37 #include "webrtc/base/thread.h" | 38 #include "webrtc/base/thread.h" |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 } | 1230 } |
1230 | 1231 |
1231 return false; | 1232 return false; |
1232 } | 1233 } |
1233 | 1234 |
1234 void OpenSSLStreamAdapter::enable_time_callback_for_testing() { | 1235 void OpenSSLStreamAdapter::enable_time_callback_for_testing() { |
1235 g_use_time_callback_for_testing = true; | 1236 g_use_time_callback_for_testing = true; |
1236 } | 1237 } |
1237 | 1238 |
1238 } // namespace rtc | 1239 } // namespace rtc |
OLD | NEW |