start SSL
This commit is contained in:
@@ -51,8 +51,9 @@ class SSLSocket {
|
||||
* Constructor.
|
||||
* @param ctx the SSL_CTX for cleanup, or nullptr.
|
||||
* @param bio the BIO instance, or nullptr.
|
||||
* @param until the system time until the socket is allowed to be used.
|
||||
*/
|
||||
SSLSocket(SSL_CTX *ctx, BIO *bio) : m_ctx(ctx), m_bio(bio) {}
|
||||
SSLSocket(SSL_CTX *ctx, BIO *bio, time_t until) : m_ctx(ctx), m_bio(bio), m_until(until) {}
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -98,6 +99,9 @@ class SSLSocket {
|
||||
|
||||
/** the BIO instance for communication. */
|
||||
BIO *m_bio;
|
||||
|
||||
/** the system time until the socket is allowed to be used. */
|
||||
const time_t m_until;
|
||||
};
|
||||
|
||||
#define SocketClass SSLSocket
|
||||
|
||||
Reference in New Issue
Block a user