From d221e4b005e72bbe1e0bbd00647109c08f02deef Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 10 Apr 1996 14:45:09 +0000 Subject: [PATCH] If make_ap_req() returns KRB5APP_TKT_EXPIRED, then return GSS_S_CREDENTIALS_EXPIRED as the major return code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7779 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 6 ++++++ src/lib/gssapi/krb5/init_sec_context.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index bfed88621..4f881caa9 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,9 @@ +Wed Apr 3 16:10:24 1996 Theodore Y. Ts'o + + * init_sec_context.c (krb5_gss_init_sec_context): If make_ap_req() + returns KRB5APP_TKT_EXPIRED, then return + GSS_S_CREDENTIALS_EXPIRED as the major return code. + Tue Apr 2 15:20:24 1996 Theodore Y. Ts'o * Makefile.in (SRCS): Inlined list of source files for SRCS and diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index 2f9d79586..33601ba39 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -342,6 +342,8 @@ krb5_gss_init_sec_context(ct, minor_status, claimant_cred_handle, krb5_free_principal(context, ctx->there); xfree(ctx); *minor_status = code; + if (code == KRB5KRB_AP_ERR_TKT_EXPIRED) + return GSS_S_CREDENTIALS_EXPIRED; return(GSS_S_FAILURE); } -- 2.26.2