[][src]Function grpcio_sys::grpc_tls_key_materials_config_set_key_materials

pub unsafe extern "C" fn grpc_tls_key_materials_config_set_key_materials(
    config: *mut grpc_tls_key_materials_config,
    pem_root_certs: *const c_char,
    pem_key_cert_pairs: *mut *const grpc_ssl_pem_key_cert_pair,
    num_key_cert_pairs: usize
) -> c_int

Set grpc_tls_key_materials_config instance with provided a TLS certificate. config will take the ownership of pem_root_certs and pem_key_cert_pairs. It's valid for the caller to provide nullptr pem_root_certs, in which case the gRPC-provided root cert will be used. pem_key_cert_pairs should not be NULL. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.