File indexing completed on 2025-01-18 09:29:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
0011 #define BOOST_BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
0012
0013 #include <boost/beast/core/static_string.hpp>
0014 #include <boost/beast/core/string.hpp>
0015 #include <boost/beast/core/detail/base64.hpp>
0016 #include <cstdint>
0017
0018 namespace boost {
0019 namespace beast {
0020 namespace websocket {
0021 namespace detail {
0022
0023 using sec_ws_key_type = static_string<
0024 beast::detail::base64::encoded_size(16)>;
0025
0026 using sec_ws_accept_type = static_string<
0027 beast::detail::base64::encoded_size(20)>;
0028
0029 BOOST_BEAST_DECL
0030 void
0031 make_sec_ws_key(sec_ws_key_type& key);
0032
0033 BOOST_BEAST_DECL
0034 void
0035 make_sec_ws_accept(
0036 sec_ws_accept_type& accept,
0037 string_view key);
0038
0039 }
0040 }
0041 }
0042 }
0043
0044 #if BOOST_BEAST_HEADER_ONLY
0045 #include <boost/beast/websocket/detail/hybi13.ipp>
0046 #endif
0047
0048 #endif