krb5_get_error_message

Function krb5_get_error_message 

Source
pub unsafe extern "C" fn krb5_get_error_message(
    ctx: krb5_context,
    code: krb5_error_code,
) -> *const c_char
Expand description

Get the (possibly extended) error message for a code.

@param [in] ctx Library context @param [in] code Error code

The behavior of krb5_get_error_message() is only defined the first time it is called after a failed call to a krb5 function using the same context, and only when the error code passed in is the same as that returned by the krb5 function.

This function never returns NULL, so its result may be used unconditionally as a C string.

The string returned by this function must be freed using krb5_free_error_message()

@note Future versions may return the same string for the second and following calls.