| Index: runtime/bin/secure_socket_unsupported.cc
|
| diff --git a/runtime/bin/secure_socket_unsupported.cc b/runtime/bin/secure_socket_unsupported.cc
|
| index a5d6ae3688e84593611ecce995018dad13b3dd0e..dc49825e1a87c2eb7d013b5ced06a24bbc5870f1 100644
|
| --- a/runtime/bin/secure_socket_unsupported.cc
|
| +++ b/runtime/bin/secure_socket_unsupported.cc
|
| @@ -2,11 +2,10 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -#if defined(DART_IO_SECURE_SOCKET_DISABLED)
|
| +#if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
|
|
|
| #include "bin/builtin.h"
|
| #include "bin/dartutils.h"
|
| -
|
| #include "include/dart_api.h"
|
|
|
| namespace dart {
|
| @@ -100,72 +99,85 @@ void FUNCTION_NAME(SecureSocket_NewServicePort)(Dart_NativeArguments args) {
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_UsePrivateKeyBytes)(
|
| Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_SetAlpnProtocols)(
|
| Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_SetClientAuthoritiesBytes)(
|
| Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_SetTrustedCertificatesBytes)(
|
| Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_AlpnSupported)(Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_TrustBuiltinRoots)(
|
| Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(SecurityContext_UseCertificateChainBytes)(
|
| Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(X509_Subject)(Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(X509_Issuer)(Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(X509_StartValidity)(Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| void FUNCTION_NAME(X509_EndValidity)(Dart_NativeArguments args) {
|
| Dart_ThrowException(DartUtils::NewDartArgumentError(
|
| "Secure Sockets unsupported on this platform"));
|
| }
|
|
|
| +
|
| class SSLFilter {
|
| public:
|
| static CObject* ProcessFilterRequest(const CObjectArray& request);
|
| @@ -178,4 +190,4 @@ CObject* SSLFilter::ProcessFilterRequest(const CObjectArray& request) {
|
| } // namespace bin
|
| } // namespace dart
|
|
|
| -#endif // defined(DART_IO_SECURE_SOCKET_DISABLED)
|
| +#endif // defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
|
|
|