Function grpcio_sys::grpc_tls_credentials_options_set_server_verification_option[][src]

pub unsafe extern "C" fn grpc_tls_credentials_options_set_server_verification_option(
    options: *mut grpc_tls_credentials_options,
    server_verification_option: grpc_tls_server_verification_option
)

Sets the options of whether to choose certain checks, e.g. certificate check, hostname check, etc. This should be called only on the client side. If |server_verification_option| is not GRPC_TLS_SERVER_VERIFICATION, use of a custom authorization check (grpc_tls_server_authorization_check_config) is mandatory. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.