33 #ifndef SSLClientParameters_H_
34 #define SSLClientParameters_H_
115 const br_x509_certificate*
getCertChain()
const {
return &m_cert_struct; }
118 int getCertType()
const {
return br_skey_decoder_key_type(&m_key_struct); }
121 const br_ec_private_key*
getECKey()
const {
return br_skey_decoder_get_ec(&m_key_struct); }
124 const br_rsa_private_key*
getRSAKey()
const {
return br_skey_decoder_get_rsa(&m_key_struct); }
127 SSLClientParameters(
const char* cert,
const size_t cert_len,
const char* key,
const size_t key_len,
bool is_der);
130 const std::vector<char> m_cert;
131 const br_x509_certificate m_cert_struct;
132 const br_skey_decoder_context m_key_struct;
This class stores data required for SSLClient to use mutual authentication.
Definition: SSLClientParameters.h:52
static SSLClientParameters fromDER(const char *cert_der, const size_t cert_len, const char *key_der, const size_t key_len)
Create mutual authentication parameters from a DER certificate and private key.
Definition: SSLClientParameters.cpp:91
const br_rsa_private_key * getRSAKey() const
Definition: SSLClientParameters.h:124
int getCertType() const
Definition: SSLClientParameters.h:118
SSLClientParameters(const char *cert, const size_t cert_len, const char *key, const size_t key_len, bool is_der)
Definition: SSLClientParameters.cpp:80
static SSLClientParameters fromPEM(const char *cert_pem, const size_t cert_len, const char *key_pem, const size_t key_len)
Create mutual authentication parameters from a PEM certificate and private key.
Definition: SSLClientParameters.cpp:86
const br_ec_private_key * getECKey() const
Definition: SSLClientParameters.h:121
const br_x509_certificate * getCertChain() const
Definition: SSLClientParameters.h:115