From d160bc733a3dbeb6d84f4e175234ff18738d9f66 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 17 Dec 2013 16:15:14 -0500 Subject: Let SPNEGO display mechanism errors To avoid potential recursion we use a thread local variable that tells us whether the ancestor was called via spnego_gss_display_name(). If we detect recursion, we assume that we returned a com_err code like ENOMEM and call error_message(); in the worst case that will result in an "Unknown error" message. [ghudson@mit.edu: Edited comments and commit message; removed an unneeded line of code.] ticket: 7045 target_version: 1.12.1 tags: pullup --- src/include/k5-thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index 1b7fa6981..ab46ec328 100644 --- a/src/include/k5-thread.h +++ b/src/include/k5-thread.h @@ -406,6 +406,7 @@ typedef enum { K5_KEY_GSS_KRB5_SET_CCACHE_OLD_NAME, K5_KEY_GSS_KRB5_CCACHE_NAME, K5_KEY_GSS_KRB5_ERROR_MESSAGE, + K5_KEY_GSS_SPNEGO_STATUS, #if defined(__MACH__) && defined(__APPLE__) K5_KEY_IPC_CONNECTION_INFO, #endif -- cgit