TLSConfiguration_setOwnKeyFromFile

Function TLSConfiguration_setOwnKeyFromFile 

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

Set the own private key from a key file

§Arguments

  • filename - filename/path of the key file
  • password - the password of the key or null if the key is not password protected

§Returns

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