Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
|
zra
2017/06/02 22:56:24
I'd just delete this file, and move its contents t
bkonyi
2017/06/05 20:25:51
Completely missed this comment. Will update in nex
| |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_BIN_SECURE_SOCKET_H_ | 5 #ifndef RUNTIME_BIN_SECURE_SOCKET_H_ |
| 6 #define RUNTIME_BIN_SECURE_SOCKET_H_ | 6 #define RUNTIME_BIN_SECURE_SOCKET_H_ |
| 7 | 7 |
| 8 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) | 8 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) |
| 9 #error "secure_socket.h can only be included on builds with SSL enabled" | 9 #error "secure_socket.h can only be included on builds with SSL enabled" |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "platform/globals.h" | 12 #include "platform/globals.h" |
| 13 #if defined(HOST_OS_ANDROID) || defined(HOST_OS_LINUX) || \ | 13 |
| 14 defined(HOST_OS_WINDOWS) || defined(HOST_OS_FUCHSIA) | 14 #include "bin/secure_socket_filter.h" |
| 15 #include "bin/secure_socket_boringssl.h" | 15 #include "bin/security_context.h" |
| 16 #elif defined(HOST_OS_MACOS) | 16 |
| 17 #if HOST_OS_IOS | 17 const bool SSL_LOG_STATUS = false; |
|
zra
2017/06/02 22:56:24
Probably move these to secure_socket_utils.h
bkonyi
2017/06/05 20:25:51
Done.
| |
| 18 #include "bin/secure_socket_ios.h" | 18 const bool SSL_LOG_DATA = false; |
| 19 #else // HOST_OS_IOS | 19 const bool SSL_LOG_CERTS = false; |
| 20 #include "bin/secure_socket_macos.h" | |
| 21 #endif // HOST_OS_IOS | |
| 22 #else | |
| 23 #error Unknown target os. | |
| 24 #endif | |
| 25 | 20 |
| 26 #endif // RUNTIME_BIN_SECURE_SOCKET_H_ | 21 #endif // RUNTIME_BIN_SECURE_SOCKET_H_ |
| OLD | NEW |