123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef BOOST_MYSQL_IMPL_INTERNAL_AUTH_AUTH_HPP
- #define BOOST_MYSQL_IMPL_INTERNAL_AUTH_AUTH_HPP
- #include <boost/mysql/error_code.hpp>
- #include <boost/mysql/string_view.hpp>
- #include <boost/mysql/detail/config.hpp>
- #include <boost/core/span.hpp>
- #include <vector>
- namespace boost {
- namespace mysql {
- namespace detail {
- struct auth_response
- {
- std::vector<std::uint8_t> data;
- string_view plugin_name;
- };
- BOOST_ATTRIBUTE_NODISCARD
- BOOST_MYSQL_DECL
- error_code compute_auth_response(
- string_view plugin_name,
- string_view password,
- span<const std::uint8_t> challenge,
- bool secure_channel,
- auth_response& output
- );
- }
- }
- }
- #ifdef BOOST_MYSQL_HEADER_ONLY
- #include <boost/mysql/impl/internal/auth/auth.ipp>
- #endif
- #endif
|