diff options
Diffstat (limited to 'src/tls/tls_client.h')
-rw-r--r-- | src/tls/tls_client.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h index cd9da78b9..dcd7aab83 100644 --- a/src/tls/tls_client.h +++ b/src/tls/tls_client.h @@ -24,14 +24,27 @@ class BOTAN_DLL Client : public Channel public: /** * Set up a new TLS client session + * * @param socket_output_fn is called with data for the outbound socket + * * @param proc_fn is called when new data (application or alerts) is received + * * @param handshake_complete is called when a handshake is completed + * * @param session_manager manages session state + * * @param creds manages application/user credentials + * * @param policy specifies other connection policy information + * * @param rng a random number generator + * * @param servername the server's DNS name, if known + * + * @param port specifies the protocol port of the server (eg for + * TCP/UDP). Only used if servername is also specified. + * Use 0 if unknown. + * * @param next_protocol allows the client to specify what the next * protocol will be. For more information read * http://technotes.googlecode.com/git/nextprotoneg.html. @@ -49,6 +62,7 @@ class BOTAN_DLL Client : public Channel const Policy& policy, RandomNumberGenerator& rng, const std::string& servername = "", + u16bit port = 0, std::function<std::string (std::vector<std::string>)> next_protocol = std::function<std::string (std::vector<std::string>)>()); @@ -65,6 +79,7 @@ class BOTAN_DLL Client : public Channel RandomNumberGenerator& m_rng; Credentials_Manager& m_creds; const std::string m_hostname; + const u16bit m_port; }; } |