Index: runtime/bin/secure_socket_boringssl.h |
diff --git a/runtime/bin/secure_socket.h b/runtime/bin/secure_socket_boringssl.h |
similarity index 94% |
copy from runtime/bin/secure_socket.h |
copy to runtime/bin/secure_socket_boringssl.h |
index 754d2402e62a30b5d0cf5d91eb6fc526adb59fb1..3d143b9ef341307fe2b3e223b5f47d21107cbae4 100644 |
--- a/runtime/bin/secure_socket.h |
+++ b/runtime/bin/secure_socket_boringssl.h |
@@ -2,11 +2,11 @@ |
// 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. |
-#ifndef BIN_SECURE_SOCKET_H_ |
-#define BIN_SECURE_SOCKET_H_ |
+#ifndef BIN_SECURE_SOCKET_BORINGSSL_H_ |
+#define BIN_SECURE_SOCKET_BORINGSSL_H_ |
-#ifdef DART_IO_SECURE_SOCKET_DISABLED |
-#error "secure_socket.h can only be included on builds with SSL enabled" |
+#if !defined(BIN_SECURE_SOCKET_H_) |
+#error Do not include secure_socket_boringssl.h directly. Use secure_socket.h. |
#endif |
#include <stdlib.h> |
@@ -131,4 +131,4 @@ class SSLFilter { |
} // namespace bin |
} // namespace dart |
-#endif // BIN_SECURE_SOCKET_H_ |
+#endif // BIN_SECURE_SOCKET_BORINGSSL_H_ |