The SSL parameters in structure
mco_ssl_params_tare defined as follows in filemcossl.h:typedef struct mco_ssl_params_t_ { const char *cipher_list; long max_cert_list; long options; void *tmp_dh; int verify_mode; int verify_depth; void *certificate; void *private_key; const char *certificate_file; const char *private_key_file; } mco_ssl_params_t;Definitions:
cipher_listA string containing the list of ciphers for the SSL enginemax_cert_listMaximum size of the peer's certificate chain in bytesoptionsSSL options. A combination of the
MCO_SSL_OPT_*flags:
MCO_SSL_OPT_NO_SSLV2— Disable SSL 2.MCO_SSL_OPT_NO_SSLV3— Disable SSL 3.MCO_SSL_OPT_NO_TLSV1_0— Disable TLS 1.0.MCO_SSL_OPT_NO_TLSV1_1— Disable TLS 1.1.MCO_SSL_OPT_NO_TLSV1_2— Disable TLS 1.2.MCO_SSL_OPT_NO_COMPRESSION— Disable compression.MCO_SSL_OPT_SINGLE_DH_USE— Always create a new key when using ephemeral DH parameters.tmp_dhPEM-encoded DH parameters for the ephemeral DH key exchangeverify_modePeer verification mode. A combination of
MCO_SSL_VERIFY_*flags:
MCO_SSL_VERIFY_NONE— Disable peer verification.MCO_SSL_VERIFY_PEER— Enable peer verification.MCO_SSL_VERIFY_FAIL_IF_NO_PEER_CERT— Fail verification if the peer does not send a certificate.MCO_SSL_VERIFY_CLIENT_ONCE— Only request the client's certificate on the initial handshake.verify_depthMaximum depth for the certificate chain verificationcertificatePEM-encoded certificateprivate_keyPEM-encoded private keycertificate_filePath to the PEM-encoded certificate fileprivate_key_filePath to the PEM-encoded private key file