Function grpcio_sys::grpc_tls_certificate_provider_static_data_create[][src]

pub unsafe extern "C" fn grpc_tls_certificate_provider_static_data_create(
    root_certificate: *const c_char,
    pem_key_cert_pairs: *mut grpc_tls_identity_pairs
) -> *mut grpc_tls_certificate_provider
Expand description

Creates a grpc_tls_certificate_provider that will load credential data from static string during initialization. This provider will always return the same cert data for all cert names. root_certificate and pem_key_cert_pairs can be nullptr, indicating the corresponding credential data is not needed. This function will make a copy of |root_certificate|. The ownership of |pem_key_cert_pairs| is transferred. It is used for experimental purpose for now and subject to change.