TLSConfiguration_addCACertificate

Function TLSConfiguration_addCACertificate 

Source
pub unsafe extern "C" fn TLSConfiguration_addCACertificate(
    self_: TLSConfiguration,
    certificate: *mut u8,
    certLen: c_int,
) -> bool
Expand description

Add a CA certificate used to validate peer certificates from a byte buffer

§Arguments

  • certificate - the certificate buffer
  • certLen - the length of the certificate buffer

§Returns

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