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 |
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 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) | 5 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) |
6 | 6 |
7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 namespace bin { | 12 namespace bin { |
13 | 13 |
| 14 const char* commandline_root_certs_file = NULL; |
| 15 const char* commandline_root_certs_cache = NULL; |
| 16 |
14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { | 17 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { |
15 Dart_ThrowException(DartUtils::NewDartArgumentError( | 18 Dart_ThrowException(DartUtils::NewDartArgumentError( |
16 "Secure Sockets unsupported on this platform")); | 19 "Secure Sockets unsupported on this platform")); |
17 } | 20 } |
18 | 21 |
19 | 22 |
20 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { | 23 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { |
21 Dart_ThrowException(DartUtils::NewDartArgumentError( | 24 Dart_ThrowException(DartUtils::NewDartArgumentError( |
22 "Secure Sockets unsupported on this platform")); | 25 "Secure Sockets unsupported on this platform")); |
23 } | 26 } |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 }; | 187 }; |
185 | 188 |
186 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) { | 189 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) { |
187 return CObject::IllegalArgumentError(); | 190 return CObject::IllegalArgumentError(); |
188 } | 191 } |
189 | 192 |
190 } // namespace bin | 193 } // namespace bin |
191 } // namespace dart | 194 } // namespace dart |
192 | 195 |
193 #endif // defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) | 196 #endif // defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) |
OLD | NEW |