mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds is_secure method to transport endpoint
This commit is contained in:
@@ -307,6 +307,10 @@ public:
|
||||
boost::asio::io_service& get_io_service() {
|
||||
return *m_io_service;
|
||||
}
|
||||
|
||||
bool is_secure() const {
|
||||
return socket_type::is_secure();
|
||||
}
|
||||
protected:
|
||||
/// Initialize logging
|
||||
/**
|
||||
|
||||
@@ -71,6 +71,20 @@ public:
|
||||
m_alog->write(log::alevel::devel,"register_ostream");
|
||||
output_stream = o;
|
||||
}
|
||||
|
||||
/// Tests whether or not the underlying transport is secure
|
||||
/**
|
||||
* iostream transport will return false always because it has no information
|
||||
* about the ultimate remote endpoint. This may or may not be accurate
|
||||
* depending on the real source of bytes being input.
|
||||
*
|
||||
* TODO: allow user settable is_secure flag if this seems useful
|
||||
*
|
||||
* @return Whether or not the underlying transport is secure
|
||||
*/
|
||||
bool is_secure() const {
|
||||
return false;
|
||||
}
|
||||
protected:
|
||||
/// Initialize logging
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user