mirror of
https://github.com/Icinga/icinga2.git
synced 2025-08-24 19:18:15 +02:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
//
|
|
// Copyright (c) 2021 Kasper Laudrup (laudrup at stacktrace dot dk)
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
|
|
#ifndef BOOST_WINTLS_DETAIL_SSPI_STREAM_HPP
|
|
#define BOOST_WINTLS_DETAIL_SSPI_STREAM_HPP
|
|
|
|
#include <boost/wintls/detail/sspi_handshake.hpp>
|
|
#include <boost/wintls/detail/sspi_encrypt.hpp>
|
|
#include <boost/wintls/detail/sspi_decrypt.hpp>
|
|
#include <boost/wintls/detail/sspi_shutdown.hpp>
|
|
#include <boost/wintls/detail/sspi_sec_handle.hpp>
|
|
|
|
namespace boost {
|
|
namespace wintls {
|
|
namespace detail {
|
|
|
|
class sspi_stream {
|
|
public:
|
|
sspi_stream(context& ctx)
|
|
: handshake(ctx, ctxt_handle_, cred_handle_)
|
|
, encrypt(ctxt_handle_)
|
|
, decrypt(ctxt_handle_)
|
|
, shutdown(ctxt_handle_, cred_handle_) {
|
|
}
|
|
|
|
sspi_stream(sspi_stream&&) = delete;
|
|
sspi_stream& operator=(sspi_stream&&) = delete;
|
|
|
|
private:
|
|
ctxt_handle ctxt_handle_;
|
|
cred_handle cred_handle_;
|
|
|
|
public:
|
|
sspi_handshake handshake;
|
|
sspi_encrypt encrypt;
|
|
sspi_decrypt decrypt;
|
|
sspi_shutdown shutdown;
|
|
};
|
|
|
|
} // namespace detail
|
|
} // namespace wintls
|
|
} // namespace boost
|
|
|
|
#endif // BOOST_WINTLS_DETAIL_SSPI_STREAM_HPP
|