MXS-2861: Add ssl_cipher to servers and listeners
This allows the set of TLSv1.2 ciphers to be selected which is required to fulfill certain regulatory requirements.
This commit is contained in:
@ -196,6 +196,7 @@ extern const char CN_SKIP_PERMISSION_CHECKS[];
|
||||
extern const char CN_SOCKET[];
|
||||
extern const char CN_SSL_CA_CERT[];
|
||||
extern const char CN_SSL_CERT_VERIFY_DEPTH[];
|
||||
extern const char CN_SSL_CIPHER[];
|
||||
extern const char CN_SSL_CERT[];
|
||||
extern const char CN_SSL_KEY[];
|
||||
extern const char CN_SSL_VERIFY_PEER_CERTIFICATE[];
|
||||
|
@ -77,12 +77,13 @@ struct SSLConfig
|
||||
// Convert to human readable string representation
|
||||
std::string to_string() const;
|
||||
|
||||
std::string key; /**< SSL private key */
|
||||
std::string cert; /**< SSL certificate */
|
||||
std::string ca; /**< SSL CA certificate */
|
||||
ssl_method_type_t version = SERVICE_SSL_TLS_MAX; /**< Which TLS version to use */
|
||||
int verify_depth = 9; /**< SSL certificate verification depth */
|
||||
bool verify_peer = true; /**< Enable peer certificate verification */
|
||||
std::string key; /**< SSL private key */
|
||||
std::string cert; /**< SSL certificate */
|
||||
std::string ca; /**< SSL CA certificate */
|
||||
ssl_method_type_t version = SERVICE_SSL_TLS_MAX;/**< Which TLS version to use */
|
||||
int verify_depth = 9; /**< SSL certificate verification depth */
|
||||
bool verify_peer = true; /**< Enable peer certificate verification */
|
||||
std::string cipher; /**< Selected TLS cipher */
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user