add ssl debugging, assume ssl_ctx is global as documented (for #751)

This commit is contained in:
John
2023-05-30 15:55:48 +02:00
parent 207435650d
commit 3669385386
2 changed files with 102 additions and 79 deletions
+1 -5
View File
@@ -49,11 +49,10 @@ class SSLSocket {
private:
/**
* 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, time_t until) : m_ctx(ctx), m_bio(bio), m_until(until) {}
SSLSocket(BIO *bio, time_t until) : m_bio(bio), m_until(until) {}
public:
/**
@@ -97,9 +96,6 @@ class SSLSocket {
bool isValid();
private:
/** the SSL_CTX for cleanup, or nullptr. */
SSL_CTX *m_ctx;
/** the BIO instance for communication. */
BIO *m_bio;