29#include <sptk5/sptk.h>
31#include <openssl/ssl.h>
32#include <sptk5/String.h>
33#include <sptk5/threads/Locks.h>
60 String caFileName =
"",
int verifyMode = SSL_VERIFY_NONE,
int verifyDepth = 0);
108 int verifyMode() const;
113 int verifyDepth() const;
118 mutable SharedMutex m_mutex;
119 String m_privateKeyFileName;
120 String m_certificateFileName;
123 int m_verifyMode {SSL_VERIFY_NONE};
124 int m_verifyDepth {0};
130 void assign(
const SSLKeys& other);
SSLKeys(const SSLKeys &other)
SSLKeys & operator=(const SSLKeys &other)
SSLKeys(String privateKeyFileName, String certificateFileName, String password="", String caFileName="", int verifyMode=SSL_VERIFY_NONE, int verifyDepth=0)
~SSLKeys() noexcept=default