Function grpcio_sys::grpc_ssl_server_credentials_create [−][src]
pub unsafe extern "C" fn grpc_ssl_server_credentials_create(
pem_root_certs: *const c_char,
pem_key_cert_pairs: *mut grpc_ssl_pem_key_cert_pair,
num_key_cert_pairs: usize,
force_client_auth: c_int,
reserved: *mut c_void
) -> *mut grpc_server_credentials
Expand description
Deprecated in favor of grpc_ssl_server_credentials_create_ex. Creates an SSL server_credentials 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 should be at least 1.
- force_client_auth, if set to non-zero will force the client to authenticate with an SSL cert. Note that this option is ignored if pem_root_certs is NULL.