Skip to content

Commit

Permalink
krb5_wrap: Document smb_get_krb5_error_message()
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
cryptomilk authored and abartlet committed Aug 31, 2016
1 parent 52c0133 commit dbcba4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/krb5_wrap/krb5_samba.c
Original file line number Diff line number Diff line change
Expand Up @@ -2738,6 +2738,20 @@ char *smb_krb5_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx,
return principal;
}

/**
* @brief Get an error string from a Kerberos error code.
*
* @param[in] context The library context.
*
* @param[in] code The Kerberos error code.
*
* @param[in] mem_ctx The talloc context to allocate the error string on.
*
* @return A talloc'ed error string or NULL if an error occured.
*
* The caller must free the returned error string with talloc_free() if not
* needed anymore
*/
char *smb_get_krb5_error_message(krb5_context context,
krb5_error_code code,
TALLOC_CTX *mem_ctx)
Expand Down

0 comments on commit dbcba4c

Please sign in to comment.