Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
16 #ifndef __IceSSL_ConnectionInfo_h__
17 #define __IceSSL_ConnectionInfo_h__
34 #ifndef ICE_IGNORE_VERSION
35 # if ICE_INT_VERSION / 100 != 307
36 # error Ice version mismatch!
38 # if ICE_INT_VERSION % 100 >= 50
39 # error Beta header file detected
41 # if ICE_INT_VERSION % 100 < 10
42 # error Ice patch level mismatch!
47 # if defined(ICE_STATIC_LIBS)
49 # elif defined(ICESSL_API_EXPORTS)
50 # define ICESSL_API ICE_DECLSPEC_EXPORT
52 # define ICESSL_API ICE_DECLSPEC_IMPORT
56 #ifdef ICE_CPP11_MAPPING // C++11 mapping
95 ConnectionInfo(const ::std::shared_ptr<::Ice::ConnectionInfo>& underlying,
bool incoming, const ::std::string& adapterName, const ::std::string& connectionId, const ::std::string& cipher,
const std::vector<CertificatePtr>& certs,
bool verified) :
130 using ConnectionInfoPtr = ::std::shared_ptr<ConnectionInfo>;
135 #else // C++98 mapping
140 class ConnectionInfo;
142 ICESSL_API ::Ice::LocalObject* upCast(ConnectionInfo*);
144 typedef ::IceInternal::Handle< ConnectionInfo> ConnectionInfoPtr;
159 typedef ConnectionInfoPtr PointerType;
161 virtual ~ConnectionInfo();
177 ConnectionInfo(const ::Ice::ConnectionInfoPtr& underlying,
bool incoming, const ::std::string& adapterName, const ::std::string& connectionId, const ::std::string& cipher,
const std::vector<CertificatePtr>& certs,
bool verified) :
178 ::
Ice::ConnectionInfo(underlying, incoming, adapterName, connectionId),
185 #ifdef ICE_CPP11_COMPILER
186 ConnectionInfo(
const ConnectionInfo&) =
default;
187 ConnectionInfo& operator=(
const ConnectionInfo&) =
default;
193 ::std::string cipher;
197 std::vector<CertificatePtr> certs;
205 inline bool operator==(
const ConnectionInfo& lhs,
const ConnectionInfo& rhs)
207 return static_cast<const ::Ice::LocalObject&
>(lhs) ==
static_cast<const ::Ice::LocalObject&
>(rhs);
210 inline bool operator<(
const ConnectionInfo& lhs,
const ConnectionInfo& rhs)
212 return static_cast<const ::Ice::LocalObject&
>(lhs) <
static_cast<const ::Ice::LocalObject&
>(rhs);
Provides access to the connection details of an SSL connection.
Definition: ConnectionInfo.h:73
Definition: ConnectionInfo.h:59
bool verified
The certificate chain verification status.
Definition: ConnectionInfo.h:114
ConnectionInfo(const ::std::shared_ptr<::Ice::ConnectionInfo > &underlying, bool incoming, const ::std::string &adapterName, const ::std::string &connectionId, const ::std::string &cipher, const std::vector< CertificatePtr > &certs, bool verified)
One-shot constructor to initialize all data members.
Definition: ConnectionInfo.h:95
ConnectionInfo & operator=(const ConnectionInfo &)=default
ConnectionInfo & operator=(ConnectionInfo &&)=default
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:184
#define ICE_MEMBER(API)
Definition: Config.h:177
Base class providing access to the connection details.
Definition: Connection.h:218
#define ICESSL_API
Definition: ConnectionInfoF.h:49
::std::string cipher
The negotiated cipher suite.
Definition: ConnectionInfo.h:106
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
ConnectionInfo(ConnectionInfo &&)=default
Definition: BuiltinSequences.h:56
std::vector< CertificatePtr > certs
The certificate chain.
Definition: ConnectionInfo.h:110
ConnectionInfo(const ConnectionInfo &)=default
virtual ~ConnectionInfo()