start SSL

This commit is contained in:
John
2022-02-07 22:57:38 +01:00
parent e3dfe32350
commit 026b1994fd
2 changed files with 34 additions and 24 deletions
+5 -1
View File
@@ -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