| 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 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { | 97 void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) { |
| 98 Dart_ThrowException(DartUtils::NewDartArgumentError( | 98 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 99 "Secure Sockets unsupported on this platform")); | 99 "Secure Sockets unsupported on this platform")); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) { | 102 void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) { |
| 103 Dart_ThrowException(DartUtils::NewDartArgumentError( | 103 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 104 "Secure Sockets unsupported on this platform")); | 104 "Secure Sockets unsupported on this platform")); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void FUNCTION_NAME(SecurityContext_UsePrivateKey)(Dart_NativeArguments args) { | 107 void FUNCTION_NAME(SecurityContext_UsePrivateKeyBytes)( |
| 108 Dart_ThrowException(DartUtils::NewDartArgumentError( | |
| 109 "Secure Sockets unsupported on this platform")); | |
| 110 } | |
| 111 | |
| 112 void FUNCTION_NAME(SecurityContext_UsePrivateKeyAsBytes)( | |
| 113 Dart_NativeArguments args) { | 108 Dart_NativeArguments args) { |
| 114 Dart_ThrowException(DartUtils::NewDartArgumentError( | 109 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 115 "Secure Sockets unsupported on this platform")); | 110 "Secure Sockets unsupported on this platform")); |
| 116 } | 111 } |
| 117 | 112 |
| 118 void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)( | 113 void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)( |
| 119 Dart_NativeArguments args) { | 114 Dart_NativeArguments args) { |
| 120 Dart_ThrowException(DartUtils::NewDartArgumentError( | 115 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 121 "Secure Sockets unsupported on this platform")); | 116 "Secure Sockets unsupported on this platform")); |
| 122 } | 117 } |
| 123 | 118 |
| 124 void FUNCTION_NAME(SecurityContext_SetClientAuthorities)( | 119 void FUNCTION_NAME(SecurityContext_SetClientAuthorities)( |
| 125 Dart_NativeArguments args) { | 120 Dart_NativeArguments args) { |
| 126 Dart_ThrowException(DartUtils::NewDartArgumentError( | 121 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 127 "Secure Sockets unsupported on this platform")); | 122 "Secure Sockets unsupported on this platform")); |
| 128 } | 123 } |
| 129 | 124 |
| 130 void FUNCTION_NAME(SecurityContext_SetTrustedCertificates)( | 125 void FUNCTION_NAME(SecurityContext_SetTrustedCertificates)( |
| 131 Dart_NativeArguments args) { | 126 Dart_NativeArguments args) { |
| 132 Dart_ThrowException(DartUtils::NewDartArgumentError( | 127 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 133 "Secure Sockets unsupported on this platform")); | 128 "Secure Sockets unsupported on this platform")); |
| 134 } | 129 } |
| 135 | 130 |
| 136 void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)( | 131 void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)( |
| 137 Dart_NativeArguments args) { | 132 Dart_NativeArguments args) { |
| 138 Dart_ThrowException(DartUtils::NewDartArgumentError( | 133 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 139 "Secure Sockets unsupported on this platform")); | 134 "Secure Sockets unsupported on this platform")); |
| 140 } | 135 } |
| 141 | 136 |
| 142 void FUNCTION_NAME(SecurityContext_UseCertificateChain)( | 137 void FUNCTION_NAME(SecurityContext_UseCertificateChainBytes)( |
| 143 Dart_NativeArguments args) { | 138 Dart_NativeArguments args) { |
| 144 Dart_ThrowException(DartUtils::NewDartArgumentError( | 139 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 145 "Secure Sockets unsupported on this platform")); | 140 "Secure Sockets unsupported on this platform")); |
| 146 } | 141 } |
| 147 | 142 |
| 148 void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) { | 143 void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) { |
| 149 Dart_ThrowException(DartUtils::NewDartArgumentError( | 144 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 150 "Secure Sockets unsupported on this platform")); | 145 "Secure Sockets unsupported on this platform")); |
| 151 } | 146 } |
| 152 | 147 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 169 public: | 164 public: |
| 170 static CObject* ProcessFilterRequest(const CObjectArray& request); | 165 static CObject* ProcessFilterRequest(const CObjectArray& request); |
| 171 }; | 166 }; |
| 172 | 167 |
| 173 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) { | 168 CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) { |
| 174 return CObject::IllegalArgumentError(); | 169 return CObject::IllegalArgumentError(); |
| 175 } | 170 } |
| 176 | 171 |
| 177 } // namespace bin | 172 } // namespace bin |
| 178 } // namespace dart | 173 } // namespace dart |
| OLD | NEW |