TLSConnection_getPeerCertificate

Function TLSConnection_getPeerCertificate 

Source
pub unsafe extern "C" fn TLSConnection_getPeerCertificate(
    self_: TLSConnection,
    certSize: *mut c_int,
) -> *mut u8
Expand description

Get the TLS certificate used by the peer

§Arguments

  • self - the TLS connection instance
  • certSize[OUT] - the certificate size in bytes

§Returns

address of the certificate buffer