From 33002c449c4b07ef06f75adfd0b4ff1cdecbf005 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 12 Oct 2009 09:38:14 -0700 Subject: [PATCH] deprecate krb5_get_err_text --- lib/krb5/context.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/krb5/context.c b/lib/krb5/context.c index 159689dc2..79e1000fd 100644 --- a/lib/krb5/context.c +++ b/lib/krb5/context.c @@ -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. *