struct CassSsl
Describes the SSL configuration of a cluster.
Functions
CassSsl *
cass_ssl_new
( )Creates a new SSL context.
Frees a SSL context instance.
Adds a trusted certificate. This is used to verify the peer’s certificate.
Same as CassSsl::cass_ssl_add_trusted_cert
, but with lengths for string parameters.
Sets verification performed on the peer’s certificate.
CASS_SSL_VERIFY_NONE - No verification is performed CASS_SSL_VERIFY_PEER_CERT - Certificate is present and valid CASS_SSL_VERIFY_PEER_IDENTITY - IP address matches the certificate’s common name or one of its subject alternative names. This implies the certificate is also present.
Default: CASS_SSL_VERIFY_PEER_CERT
Set client-side certificate chain. This is used to authenticate the client on the server-side. This should contain the entire Certificate chain starting with the certificate itself.
Same as CassSsl::cass_ssl_set_cert
, but with lengths for string parameters.
Set client-side private key. This is used to authenticate the client on the server-side.
CassError
cass_ssl_set_private_key_n
(CassSsl *
ssl, const char *
key, size_t
key_length, const char *
password, size_t
password_length )
Same as CassSsl::cass_ssl_set_private_key
, but with lengths for string parameters.