TLSConfiguration_addAllowedCertificateFromFile

Function TLSConfiguration_addAllowedCertificateFromFile 

Source
pub unsafe extern "C" fn TLSConfiguration_addAllowedCertificateFromFile(
    self_: TLSConfiguration,
    filename: *const c_char,
) -> bool
Expand description

Add a certificate to the list of allowed peer certificates

§Arguments

  • filename - filename of the certificate file

§Returns

true, when the certificate was set, false otherwise (e.g. unknown certificate format)