From 05fb9aadb16f8fa176a7ee0f5204ed807e8f0827 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 3 May 2013 08:32:59 -0500 Subject: [PATCH] detab --- websocketpp/transport/asio/security/base.hpp | 84 ++++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/websocketpp/transport/asio/security/base.hpp b/websocketpp/transport/asio/security/base.hpp index 6316336612..158d09eadc 100644 --- a/websocketpp/transport/asio/security/base.hpp +++ b/websocketpp/transport/asio/security/base.hpp @@ -50,59 +50,59 @@ namespace socket { */ namespace error { - enum value { - /// Catch-all error for security policy errors that don't fit in other - /// categories - security = 1, - + enum value { + /// Catch-all error for security policy errors that don't fit in other + /// categories + security = 1, + /// Catch-all error for socket component errors that don't fit in other /// categories socket, - /// A function was called in a state that it was illegal to do so. - invalid_state, - - /// The application was prompted to provide a TLS context and it was - /// empty or otherwise invalid - invalid_tls_context, - - /// TLS Handshake Timeout - tls_handshake_timeout, - - /// pass_through from underlying library - pass_through, + /// A function was called in a state that it was illegal to do so. + invalid_state, + + /// The application was prompted to provide a TLS context and it was + /// empty or otherwise invalid + invalid_tls_context, + + /// TLS Handshake Timeout + tls_handshake_timeout, + + /// pass_through from underlying library + pass_through, /// Required tls_init handler not present missing_tls_init_handler - }; + }; } // namespace error class socket_category : public lib::error_category { public: - const char *name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { - return "websocketpp.transport.asio.socket"; - } - - std::string message(int value) const { - switch(value) { - case error::security: - return "Security policy error"; - case error::socket: - return "Socket component error"; - case error::invalid_state: - return "Invalid state"; - case error::invalid_tls_context: - return "Invalid or empty TLS context supplied"; - case error::tls_handshake_timeout: - return "TLS handshake timed out"; - case error::pass_through: - return "Pass through from underlying library"; + const char *name() const _WEBSOCKETPP_NOEXCEPT_TOKEN_ { + return "websocketpp.transport.asio.socket"; + } + + std::string message(int value) const { + switch(value) { + case error::security: + return "Security policy error"; + case error::socket: + return "Socket component error"; + case error::invalid_state: + return "Invalid state"; + case error::invalid_tls_context: + return "Invalid or empty TLS context supplied"; + case error::tls_handshake_timeout: + return "TLS handshake timed out"; + case error::pass_through: + return "Pass through from underlying library"; case error::missing_tls_init_handler: - return "Required tls_init handler not present."; - default: - return "Unknown"; - } - } + return "Required tls_init handler not present."; + default: + return "Unknown"; + } + } }; inline const lib::error_category& get_socket_category() { @@ -111,7 +111,7 @@ inline const lib::error_category& get_socket_category() { } inline lib::error_code make_error(error::value e) { - return lib::error_code(static_cast(e), get_socket_category()); + return lib::error_code(static_cast(e), get_socket_category()); } typedef lib::function init_handler;