Function cassandra_cpp_sys::cass_ssl_set_verify_flags
[−]
[src]
pub unsafe extern "C" fn cass_ssl_set_verify_flags(
ssl: *mut CassSsl,
flags: c_int
)
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. CASS_SSL_VERIFY_PEER_IDENTITY_DNS - Hostname matches the certificate's common name or one of its subject alternative names. This implies the certificate is also present. Hostname resolution must also be enabled.
Default: CASS_SSL_VERIFY_PEER_CERT
@public @memberof CassSsl
@param[in] ssl @param[in] flags @return CASS_OK if successful, otherwise an error occurred
@see cass_cluster_set_use_hostname_resolution()