OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #include "bin/builtin.h" |
| 6 #include "bin/dartutils.h" |
| 7 |
| 8 #include "include/dart_api.h" |
| 9 |
| 10 |
| 11 namespace dart { |
| 12 namespace bin { |
| 13 |
| 14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { |
| 15 Dart_EnterScope(); |
| 16 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 17 "Secure Sockets unsupported on this platform")); |
| 18 Dart_ExitScope(); |
| 19 } |
| 20 |
| 21 |
| 22 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { |
| 23 Dart_EnterScope(); |
| 24 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 25 "Secure Sockets unsupported on this platform")); |
| 26 Dart_ExitScope(); |
| 27 } |
| 28 |
| 29 |
| 30 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) { |
| 31 Dart_EnterScope(); |
| 32 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 33 "Secure Sockets unsupported on this platform")); |
| 34 Dart_ExitScope(); |
| 35 } |
| 36 |
| 37 |
| 38 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { |
| 39 Dart_EnterScope(); |
| 40 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 41 "Secure Sockets unsupported on this platform")); |
| 42 Dart_ExitScope(); |
| 43 } |
| 44 |
| 45 |
| 46 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)( |
| 47 Dart_NativeArguments args) { |
| 48 Dart_EnterScope(); |
| 49 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 50 "Secure Sockets unsupported on this platform")); |
| 51 Dart_ExitScope(); |
| 52 } |
| 53 |
| 54 |
| 55 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)( |
| 56 Dart_NativeArguments args) { |
| 57 Dart_EnterScope(); |
| 58 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 59 "Secure Sockets unsupported on this platform")); |
| 60 Dart_ExitScope(); |
| 61 } |
| 62 |
| 63 |
| 64 void FUNCTION_NAME(SecureSocket_ProcessBuffer)(Dart_NativeArguments args) { |
| 65 Dart_EnterScope(); |
| 66 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 67 "Secure Sockets unsupported on this platform")); |
| 68 Dart_ExitScope(); |
| 69 } |
| 70 |
| 71 |
| 72 void FUNCTION_NAME(SecureSocket_InitializeLibrary) |
| 73 (Dart_NativeArguments args) { |
| 74 Dart_EnterScope(); |
| 75 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 76 "Secure Sockets unsupported on this platform")); |
| 77 Dart_ExitScope(); |
| 78 } |
| 79 |
| 80 |
| 81 void FUNCTION_NAME(SecureSocket_PeerCertificate) |
| 82 (Dart_NativeArguments args) { |
| 83 Dart_EnterScope(); |
| 84 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 85 "Secure Sockets unsupported on this platform")); |
| 86 Dart_ExitScope(); |
| 87 } |
| 88 |
| 89 } // namespace bin |
| 90 } // namespace dart |
OLD | NEW |