deprecate krb5_get_err_text

This commit is contained in:
Love Hornquist Astrand
2009-10-12 09:38:14 -07:00
parent 8d84cfe5c2
commit 33002c449c

View File

@@ -821,31 +821,6 @@ krb5_get_default_in_tkt_etypes(krb5_context context,
return 0;
}
/**
* Return the error string for the error code. The caller must not
* free the string.
*
* @param context Kerberos 5 context.
* @param code Kerberos error code.
*
* @return the error message matching code
*
* @ingroup krb5
*/
const char* KRB5_LIB_FUNCTION
krb5_get_err_text(krb5_context context, krb5_error_code code)
{
const char *p = NULL;
if(context != NULL)
p = com_right(context->et_list, code);
if(p == NULL)
p = strerror(code);
if (p == NULL)
p = "Unknown error";
return p;
}
/**
* Init the built-in ets in the Kerberos library.
*