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 #include "bin/builtin.h" | 5 #include "bin/builtin.h" |
6 #include "bin/dartutils.h" | 6 #include "bin/dartutils.h" |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 | 9 |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 namespace bin { | 12 namespace bin { |
13 | 13 |
14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { | 14 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { |
15 Dart_EnterScope(); | |
16 Dart_ThrowException(DartUtils::NewDartArgumentError( | 15 Dart_ThrowException(DartUtils::NewDartArgumentError( |
17 "Secure Sockets unsupported on this platform")); | 16 "Secure Sockets unsupported on this platform")); |
18 Dart_ExitScope(); | |
19 } | 17 } |
20 | 18 |
21 | 19 |
22 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { | 20 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { |
23 Dart_EnterScope(); | |
24 Dart_ThrowException(DartUtils::NewDartArgumentError( | 21 Dart_ThrowException(DartUtils::NewDartArgumentError( |
25 "Secure Sockets unsupported on this platform")); | 22 "Secure Sockets unsupported on this platform")); |
26 Dart_ExitScope(); | |
27 } | 23 } |
28 | 24 |
29 | 25 |
30 void FUNCTION_NAME(SecureSocket_AddCertificate)(Dart_NativeArguments args) { | 26 void FUNCTION_NAME(SecureSocket_AddCertificate)(Dart_NativeArguments args) { |
31 Dart_EnterScope(); | |
32 Dart_ThrowException(DartUtils::NewDartArgumentError( | 27 Dart_ThrowException(DartUtils::NewDartArgumentError( |
33 "Secure Sockets unsupported on this platform")); | 28 "Secure Sockets unsupported on this platform")); |
34 Dart_ExitScope(); | |
35 } | 29 } |
36 | 30 |
37 | 31 |
38 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) { | 32 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) { |
39 Dart_EnterScope(); | |
40 Dart_ThrowException(DartUtils::NewDartArgumentError( | 33 Dart_ThrowException(DartUtils::NewDartArgumentError( |
41 "Secure Sockets unsupported on this platform")); | 34 "Secure Sockets unsupported on this platform")); |
42 Dart_ExitScope(); | |
43 } | 35 } |
44 | 36 |
45 | 37 |
46 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { | 38 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { |
47 Dart_EnterScope(); | |
48 Dart_ThrowException(DartUtils::NewDartArgumentError( | 39 Dart_ThrowException(DartUtils::NewDartArgumentError( |
49 "Secure Sockets unsupported on this platform")); | 40 "Secure Sockets unsupported on this platform")); |
50 Dart_ExitScope(); | |
51 } | 41 } |
52 | 42 |
53 | 43 |
54 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)( | 44 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)( |
55 Dart_NativeArguments args) { | 45 Dart_NativeArguments args) { |
56 Dart_EnterScope(); | |
57 Dart_ThrowException(DartUtils::NewDartArgumentError( | 46 Dart_ThrowException(DartUtils::NewDartArgumentError( |
58 "Secure Sockets unsupported on this platform")); | 47 "Secure Sockets unsupported on this platform")); |
59 Dart_ExitScope(); | |
60 } | 48 } |
61 | 49 |
62 | 50 |
63 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)( | 51 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)( |
64 Dart_NativeArguments args) { | 52 Dart_NativeArguments args) { |
65 Dart_EnterScope(); | |
66 Dart_ThrowException(DartUtils::NewDartArgumentError( | 53 Dart_ThrowException(DartUtils::NewDartArgumentError( |
67 "Secure Sockets unsupported on this platform")); | 54 "Secure Sockets unsupported on this platform")); |
68 Dart_ExitScope(); | |
69 } | 55 } |
70 | 56 |
71 | 57 |
72 void FUNCTION_NAME(SecureSocket_ProcessBuffer)(Dart_NativeArguments args) { | 58 void FUNCTION_NAME(SecureSocket_ProcessBuffer)(Dart_NativeArguments args) { |
73 Dart_EnterScope(); | |
74 Dart_ThrowException(DartUtils::NewDartArgumentError( | 59 Dart_ThrowException(DartUtils::NewDartArgumentError( |
75 "Secure Sockets unsupported on this platform")); | 60 "Secure Sockets unsupported on this platform")); |
76 Dart_ExitScope(); | |
77 } | 61 } |
78 | 62 |
79 | 63 |
80 void FUNCTION_NAME(SecureSocket_InitializeLibrary) | 64 void FUNCTION_NAME(SecureSocket_InitializeLibrary) |
81 (Dart_NativeArguments args) { | 65 (Dart_NativeArguments args) { |
82 Dart_EnterScope(); | |
83 Dart_ThrowException(DartUtils::NewDartArgumentError( | 66 Dart_ThrowException(DartUtils::NewDartArgumentError( |
84 "Secure Sockets unsupported on this platform")); | 67 "Secure Sockets unsupported on this platform")); |
85 Dart_ExitScope(); | |
86 } | 68 } |
87 | 69 |
88 | 70 |
89 void FUNCTION_NAME(SecureSocket_PeerCertificate) | 71 void FUNCTION_NAME(SecureSocket_PeerCertificate) |
90 (Dart_NativeArguments args) { | 72 (Dart_NativeArguments args) { |
91 Dart_EnterScope(); | |
92 Dart_ThrowException(DartUtils::NewDartArgumentError( | 73 Dart_ThrowException(DartUtils::NewDartArgumentError( |
93 "Secure Sockets unsupported on this platform")); | 74 "Secure Sockets unsupported on this platform")); |
94 Dart_ExitScope(); | |
95 } | 75 } |
96 | 76 |
97 | 77 |
98 void FUNCTION_NAME(SecureSocket_FilterPointer)(Dart_NativeArguments args) { | 78 void FUNCTION_NAME(SecureSocket_FilterPointer)(Dart_NativeArguments args) { |
99 Dart_EnterScope(); | |
100 Dart_ThrowException(DartUtils::NewDartArgumentError( | 79 Dart_ThrowException(DartUtils::NewDartArgumentError( |
101 "Secure Sockets unsupported on this platform")); | 80 "Secure Sockets unsupported on this platform")); |
102 Dart_ExitScope(); | |
103 } | 81 } |
104 | 82 |
105 | 83 |
106 void FUNCTION_NAME(SecureSocket_Renegotiate)(Dart_NativeArguments args) { | 84 void FUNCTION_NAME(SecureSocket_Renegotiate)(Dart_NativeArguments args) { |
107 Dart_EnterScope(); | |
108 Dart_ThrowException(DartUtils::NewDartArgumentError( | 85 Dart_ThrowException(DartUtils::NewDartArgumentError( |
109 "Secure Sockets unsupported on this platform")); | 86 "Secure Sockets unsupported on this platform")); |
110 Dart_ExitScope(); | |
111 } | 87 } |
112 | 88 |
113 | 89 |
114 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { | 90 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { |
115 Dart_EnterScope(); | |
116 Dart_ThrowException(DartUtils::NewDartArgumentError( | 91 Dart_ThrowException(DartUtils::NewDartArgumentError( |
117 "Secure Sockets unsupported on this platform")); | 92 "Secure Sockets unsupported on this platform")); |
118 Dart_ExitScope(); | |
119 } | 93 } |
120 } // namespace bin | 94 } // namespace bin |
121 } // namespace dart | 95 } // namespace dart |
OLD | NEW |