Function grpcio_sys::grpc_ssl_server_certificate_config_create [−][src]
pub unsafe extern "C" fn grpc_ssl_server_certificate_config_create(
pem_root_certs: *const c_char,
pem_key_cert_pairs: *const grpc_ssl_pem_key_cert_pair,
num_key_cert_pairs: usize
) -> *mut grpc_ssl_server_certificate_config
Expand description
Creates a grpc_ssl_server_certificate_config object.
- pem_roots_cert is the NULL-terminated string containing the PEM encoding of the client root certificates. This parameter may be NULL if the server does not want the client to be authenticated with SSL.
- pem_key_cert_pairs is an array private key / certificate chains of the server. This parameter cannot be NULL.
- num_key_cert_pairs indicates the number of items in the private_key_files and cert_chain_files parameters. It must be at least 1.
- It is the caller’s responsibility to free this object via grpc_ssl_server_certificate_config_destroy().