diff options
| author | Simo Sorce <simo@redhat.com> | 2013-12-17 16:15:14 -0500 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2013-12-18 15:58:55 -0500 |
| commit | d160bc733a3dbeb6d84f4e175234ff18738d9f66 (patch) | |
| tree | 207a2bfdd3ec89bb2557604b4cb41b0a34bc94ef /src/include | |
| parent | c91f2a285e77e71bd283483d583c68e76eb3a0dd (diff) | |
| download | krb5-d160bc733a3dbeb6d84f4e175234ff18738d9f66.tar.gz krb5-d160bc733a3dbeb6d84f4e175234ff18738d9f66.tar.xz krb5-d160bc733a3dbeb6d84f4e175234ff18738d9f66.zip | |
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/k5-thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index 1b7fa6981d..ab46ec328d 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 |
