mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 08:42:59 -04:00
Introduce OptionalTlsStream
This commit is contained in:
parent
d1e87bdc45
commit
c1fa07899c
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue