MXS-2483: Minor SSL usage cleanup
Changed getter function return values to std::string, converted MXS_CONFIG_PARAMETER::set_from_list to take std::strings instead of const char pointers.
This commit is contained in:
@ -438,7 +438,7 @@ public:
|
||||
*/
|
||||
void set_multiple(const MXS_CONFIG_PARAMETER& source);
|
||||
|
||||
void set_from_list(std::vector<std::pair<const char*, const char*>> list,
|
||||
void set_from_list(std::vector<std::pair<std::string, std::string>> list,
|
||||
const MXS_MODULE_PARAM* module_params = NULL);
|
||||
|
||||
/**
|
||||
|
@ -92,21 +92,21 @@ public:
|
||||
}
|
||||
|
||||
// Private key
|
||||
const char* ssl_key() const
|
||||
const std::string& ssl_key() const
|
||||
{
|
||||
return m_key.c_str();
|
||||
return m_key;
|
||||
}
|
||||
|
||||
// Public cert
|
||||
const char* ssl_cert() const
|
||||
const std::string& ssl_cert() const
|
||||
{
|
||||
return m_cert.c_str();
|
||||
return m_cert;
|
||||
}
|
||||
|
||||
// Certificate authority
|
||||
const char* ssl_ca() const
|
||||
const std::string& ssl_ca() const
|
||||
{
|
||||
return m_ca.c_str();
|
||||
return m_ca;
|
||||
}
|
||||
|
||||
// Convert to JSON representation
|
||||
|
Reference in New Issue
Block a user