Function grpcio_sys::grpc_ssl_credentials_create[][src]

pub unsafe extern "C" fn grpc_ssl_credentials_create(
    pem_root_certs: *const c_char,
    pem_key_cert_pair: *mut grpc_ssl_pem_key_cert_pair,
    verify_options: *const verify_peer_options,
    reserved: *mut c_void
) -> *mut grpc_channel_credentials

Deprecated in favor of grpc_ssl_server_credentials_create_ex. It will be removed after all of its call sites are migrated to grpc_ssl_server_credentials_create_ex. Creates an SSL credentials object. The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY.

gRPC has implemented root cache if the underlying OpenSSL library supports it. The gRPC root certificates cache is only applicable on the default root certificates, which is used when this parameter is nullptr. If user provides their own pem_root_certs, when creating an SSL credential object, gRPC would not be able to cache it, and each subchannel will generate a copy of the root store. So it is recommended to avoid providing large room pem with pem_root_certs parameter to avoid excessive memory consumption, particularly on mobile platforms such as iOS.