pub(crate) fn error_code_to_message(&self, code: krb5_error_code) -> String {
    let message: *const c_char = unsafe { krb5_get_error_message(self.context, code) };

    match c_string_to_string(message) {
      Ok(string) => {
        unsafe { krb5_free_error_message(self.context, message) };
        string
      }
      Err(error) => error.to_string(),
    }
  }
/**
   * Get error message to a krb5 error code.
   *
   * Wraps [krb5_get_error_message](https://web.mit.edu/kerberos/krb5-1.16/doc/appdev/refs/api/krb5_get_error_message.html)
   */
Get error message to a krb5 error code.
Get error message to a krb5 error code .
pub(crate) fn error_code_to_message(&self, code: krb5_error_code) -> String {
    let message: *const c_char = unsafe { krb5_get_error_message(self.context, code) };
    match c_string_to_string(message) {
      Ok(string) => {
        unsafe { krb5_free_error_message(self.context, message) };
        string
      }
      Err(error) => error.to_string(),
    }
  }
pub ( crate ) fn error_code_to_message ( & self , code : krb5_error_code ) -> String { let message : * const c_char = unsafe { krb5_get_error_message ( self . context , code ) } ; match c_string_to_string ( message ) { Ok ( string ) => { unsafe { krb5_free_error_message ( self . context , message ) } ; string } Err ( error ) => error . to_string ( ) , } }
Get error message to a krb5 error code.
Get error message to a krb5 error code .
&self
code
krb5_error_code