Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: runtime/bin/secure_socket_unsupported.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/secure_socket_filter.cc ('k') | runtime/bin/secure_socket_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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; 14 const char* commandline_root_certs_file = NULL;
15 const char* commandline_root_certs_cache = NULL; 15 const char* commandline_root_certs_cache = NULL;
16 16
17 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) { 17 void FUNCTION_NAME(SecureSocket_Init)(Dart_NativeArguments args) {
18 Dart_ThrowException(DartUtils::NewDartArgumentError( 18 Dart_ThrowException(DartUtils::NewDartArgumentError(
19 "Secure Sockets unsupported on this platform")); 19 "Secure Sockets unsupported on this platform"));
20 } 20 }
21 21
22
23 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) { 22 void FUNCTION_NAME(SecureSocket_Connect)(Dart_NativeArguments args) {
24 Dart_ThrowException(DartUtils::NewDartArgumentError( 23 Dart_ThrowException(DartUtils::NewDartArgumentError(
25 "Secure Sockets unsupported on this platform")); 24 "Secure Sockets unsupported on this platform"));
26 } 25 }
27 26
28
29 void FUNCTION_NAME(SecureSocket_AddCertificate)(Dart_NativeArguments args) { 27 void FUNCTION_NAME(SecureSocket_AddCertificate)(Dart_NativeArguments args) {
30 Dart_ThrowException(DartUtils::NewDartArgumentError( 28 Dart_ThrowException(DartUtils::NewDartArgumentError(
31 "Secure Sockets unsupported on this platform")); 29 "Secure Sockets unsupported on this platform"));
32 } 30 }
33 31
34
35 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) { 32 void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) {
36 Dart_ThrowException(DartUtils::NewDartArgumentError( 33 Dart_ThrowException(DartUtils::NewDartArgumentError(
37 "Secure Sockets unsupported on this platform")); 34 "Secure Sockets unsupported on this platform"));
38 } 35 }
39 36
40
41 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) { 37 void FUNCTION_NAME(SecureSocket_Handshake)(Dart_NativeArguments args) {
42 Dart_ThrowException(DartUtils::NewDartArgumentError( 38 Dart_ThrowException(DartUtils::NewDartArgumentError(
43 "Secure Sockets unsupported on this platform")); 39 "Secure Sockets unsupported on this platform"));
44 } 40 }
45 41
46
47 void FUNCTION_NAME(SecureSocket_GetSelectedProtocol)( 42 void FUNCTION_NAME(SecureSocket_GetSelectedProtocol)(
48 Dart_NativeArguments args) { 43 Dart_NativeArguments args) {
49 Dart_ThrowException(DartUtils::NewDartArgumentError( 44 Dart_ThrowException(DartUtils::NewDartArgumentError(
50 "Secure Sockets unsupported on this platform")); 45 "Secure Sockets unsupported on this platform"));
51 } 46 }
52 47
53
54 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)( 48 void FUNCTION_NAME(SecureSocket_RegisterHandshakeCompleteCallback)(
55 Dart_NativeArguments args) { 49 Dart_NativeArguments args) {
56 Dart_ThrowException(DartUtils::NewDartArgumentError( 50 Dart_ThrowException(DartUtils::NewDartArgumentError(
57 "Secure Sockets unsupported on this platform")); 51 "Secure Sockets unsupported on this platform"));
58 } 52 }
59 53
60
61 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)( 54 void FUNCTION_NAME(SecureSocket_RegisterBadCertificateCallback)(
62 Dart_NativeArguments args) { 55 Dart_NativeArguments args) {
63 Dart_ThrowException(DartUtils::NewDartArgumentError( 56 Dart_ThrowException(DartUtils::NewDartArgumentError(
64 "Secure Sockets unsupported on this platform")); 57 "Secure Sockets unsupported on this platform"));
65 } 58 }
66 59
67
68 void FUNCTION_NAME(SecureSocket_ProcessBuffer)(Dart_NativeArguments args) { 60 void FUNCTION_NAME(SecureSocket_ProcessBuffer)(Dart_NativeArguments args) {
69 Dart_ThrowException(DartUtils::NewDartArgumentError( 61 Dart_ThrowException(DartUtils::NewDartArgumentError(
70 "Secure Sockets unsupported on this platform")); 62 "Secure Sockets unsupported on this platform"));
71 } 63 }
72 64
73
74 void FUNCTION_NAME(SecureSocket_InitializeLibrary)(Dart_NativeArguments args) { 65 void FUNCTION_NAME(SecureSocket_InitializeLibrary)(Dart_NativeArguments args) {
75 Dart_ThrowException(DartUtils::NewDartArgumentError( 66 Dart_ThrowException(DartUtils::NewDartArgumentError(
76 "Secure Sockets unsupported on this platform")); 67 "Secure Sockets unsupported on this platform"));
77 } 68 }
78 69
79
80 void FUNCTION_NAME(SecureSocket_PeerCertificate)(Dart_NativeArguments args) { 70 void FUNCTION_NAME(SecureSocket_PeerCertificate)(Dart_NativeArguments args) {
81 Dart_ThrowException(DartUtils::NewDartArgumentError( 71 Dart_ThrowException(DartUtils::NewDartArgumentError(
82 "Secure Sockets unsupported on this platform")); 72 "Secure Sockets unsupported on this platform"));
83 } 73 }
84 74
85
86 void FUNCTION_NAME(SecureSocket_FilterPointer)(Dart_NativeArguments args) { 75 void FUNCTION_NAME(SecureSocket_FilterPointer)(Dart_NativeArguments args) {
87 Dart_ThrowException(DartUtils::NewDartArgumentError( 76 Dart_ThrowException(DartUtils::NewDartArgumentError(
88 "Secure Sockets unsupported on this platform")); 77 "Secure Sockets unsupported on this platform"));
89 } 78 }
90 79
91
92 void FUNCTION_NAME(SecureSocket_Renegotiate)(Dart_NativeArguments args) { 80 void FUNCTION_NAME(SecureSocket_Renegotiate)(Dart_NativeArguments args) {
93 Dart_ThrowException(DartUtils::NewDartArgumentError( 81 Dart_ThrowException(DartUtils::NewDartArgumentError(
94 "Secure Sockets unsupported on this platform")); 82 "Secure Sockets unsupported on this platform"));
95 } 83 }
96 84
97
98 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { 85 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) {
99 Dart_ThrowException(DartUtils::NewDartArgumentError( 86 Dart_ThrowException(DartUtils::NewDartArgumentError(
100 "Secure Sockets unsupported on this platform")); 87 "Secure Sockets unsupported on this platform"));
101 } 88 }
102 89
103
104 void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) { 90 void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) {
105 Dart_ThrowException(DartUtils::NewDartArgumentError( 91 Dart_ThrowException(DartUtils::NewDartArgumentError(
106 "Secure Sockets unsupported on this platform")); 92 "Secure Sockets unsupported on this platform"));
107 } 93 }
108 94
109
110 void FUNCTION_NAME(SecurityContext_UsePrivateKeyBytes)( 95 void FUNCTION_NAME(SecurityContext_UsePrivateKeyBytes)(
111 Dart_NativeArguments args) { 96 Dart_NativeArguments args) {
112 Dart_ThrowException(DartUtils::NewDartArgumentError( 97 Dart_ThrowException(DartUtils::NewDartArgumentError(
113 "Secure Sockets unsupported on this platform")); 98 "Secure Sockets unsupported on this platform"));
114 } 99 }
115 100
116
117 void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)( 101 void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)(
118 Dart_NativeArguments args) { 102 Dart_NativeArguments args) {
119 Dart_ThrowException(DartUtils::NewDartArgumentError( 103 Dart_ThrowException(DartUtils::NewDartArgumentError(
120 "Secure Sockets unsupported on this platform")); 104 "Secure Sockets unsupported on this platform"));
121 } 105 }
122 106
123
124 void FUNCTION_NAME(SecurityContext_SetClientAuthoritiesBytes)( 107 void FUNCTION_NAME(SecurityContext_SetClientAuthoritiesBytes)(
125 Dart_NativeArguments args) { 108 Dart_NativeArguments args) {
126 Dart_ThrowException(DartUtils::NewDartArgumentError( 109 Dart_ThrowException(DartUtils::NewDartArgumentError(
127 "Secure Sockets unsupported on this platform")); 110 "Secure Sockets unsupported on this platform"));
128 } 111 }
129 112
130
131 void FUNCTION_NAME(SecurityContext_SetTrustedCertificatesBytes)( 113 void FUNCTION_NAME(SecurityContext_SetTrustedCertificatesBytes)(
132 Dart_NativeArguments args) { 114 Dart_NativeArguments args) {
133 Dart_ThrowException(DartUtils::NewDartArgumentError( 115 Dart_ThrowException(DartUtils::NewDartArgumentError(
134 "Secure Sockets unsupported on this platform")); 116 "Secure Sockets unsupported on this platform"));
135 } 117 }
136 118
137
138 void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)( 119 void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)(
139 Dart_NativeArguments args) { 120 Dart_NativeArguments args) {
140 Dart_ThrowException(DartUtils::NewDartArgumentError( 121 Dart_ThrowException(DartUtils::NewDartArgumentError(
141 "Secure Sockets unsupported on this platform")); 122 "Secure Sockets unsupported on this platform"));
142 } 123 }
143 124
144
145 void FUNCTION_NAME(SecurityContext_UseCertificateChainBytes)( 125 void FUNCTION_NAME(SecurityContext_UseCertificateChainBytes)(
146 Dart_NativeArguments args) { 126 Dart_NativeArguments args) {
147 Dart_ThrowException(DartUtils::NewDartArgumentError( 127 Dart_ThrowException(DartUtils::NewDartArgumentError(
148 "Secure Sockets unsupported on this platform")); 128 "Secure Sockets unsupported on this platform"));
149 } 129 }
150 130
151
152 void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) { 131 void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) {
153 Dart_ThrowException(DartUtils::NewDartArgumentError( 132 Dart_ThrowException(DartUtils::NewDartArgumentError(
154 "Secure Sockets unsupported on this platform")); 133 "Secure Sockets unsupported on this platform"));
155 } 134 }
156 135
157
158 void FUNCTION_NAME(X509_Issuer)(Dart_NativeArguments args) { 136 void FUNCTION_NAME(X509_Issuer)(Dart_NativeArguments args) {
159 Dart_ThrowException(DartUtils::NewDartArgumentError( 137 Dart_ThrowException(DartUtils::NewDartArgumentError(
160 "Secure Sockets unsupported on this platform")); 138 "Secure Sockets unsupported on this platform"));
161 } 139 }
162 140
163
164 void FUNCTION_NAME(X509_StartValidity)(Dart_NativeArguments args) { 141 void FUNCTION_NAME(X509_StartValidity)(Dart_NativeArguments args) {
165 Dart_ThrowException(DartUtils::NewDartArgumentError( 142 Dart_ThrowException(DartUtils::NewDartArgumentError(
166 "Secure Sockets unsupported on this platform")); 143 "Secure Sockets unsupported on this platform"));
167 } 144 }
168 145
169
170 void FUNCTION_NAME(X509_EndValidity)(Dart_NativeArguments args) { 146 void FUNCTION_NAME(X509_EndValidity)(Dart_NativeArguments args) {
171 Dart_ThrowException(DartUtils::NewDartArgumentError( 147 Dart_ThrowException(DartUtils::NewDartArgumentError(
172 "Secure Sockets unsupported on this platform")); 148 "Secure Sockets unsupported on this platform"));
173 } 149 }
174 150
175
176 class SSLFilter { 151 class SSLFilter {
177 public: 152 public:
178 static CObject* ProcessFilterRequest(const CObjectArray& request); 153 static CObject* ProcessFilterRequest(const CObjectArray& request);
179 }; 154 };
180 155
181 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) { 156 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) {
182 return CObject::IllegalArgumentError(); 157 return CObject::IllegalArgumentError();
183 } 158 }
184 159
185 } // namespace bin 160 } // namespace bin
186 } // namespace dart 161 } // namespace dart
187 162
188 #endif // defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) 163 #endif // defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket_filter.cc ('k') | runtime/bin/secure_socket_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698