From 768a4460b46460ba39f3cbbdb7a6ac6e087fd7cb Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Wed, 4 Nov 2009 22:33:04 -0800 Subject: [PATCH] move back krb5_get_err_text to error_string.c for now --- lib/krb5/deprecated.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lib/krb5/deprecated.c b/lib/krb5/deprecated.c index 44fdb1925..00bf93697 100644 --- a/lib/krb5/deprecated.c +++ b/lib/krb5/deprecated.c @@ -541,32 +541,4 @@ krb5_generate_subkey(krb5_context context, return krb5_generate_subkey_extended(context, key, ETYPE_NULL, subkey); } -/** - * Return the error string for the error code. The caller must not - * free the string. - * - * This function is deprecated since its not threadsafe. - * - * @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) KRB5_DEPRECATED -{ - 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; -} - - #endif /* HEIMDAL_SMALLER */