mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Introduce OptionalTlsStream
This commit is contained in:
parent
d1e87bdc45
commit
c1fa07899c
@ -9,6 +9,7 @@
|
||||
#include "base/stream.hpp"
|
||||
#include "base/tlsutility.hpp"
|
||||
#include "base/fifo.hpp"
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <boost/asio/buffered_stream.hpp>
|
||||
#include <boost/asio/io_service.hpp>
|
||||
@ -163,6 +164,9 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
typedef boost::asio::buffered_stream<boost::asio::ip::tcp::socket> AsioTcpStream;
|
||||
typedef std::pair<std::shared_ptr<AsioTlsStream>, std::shared_ptr<AsioTcpStream>> OptionalTlsStream;
|
||||
|
||||
}
|
||||
|
||||
#endif /* TLSSTREAM_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user