If make_ap_req() returns KRB5APP_TKT_EXPIRED, then return
authorTheodore Tso <tytso@mit.edu>
Wed, 10 Apr 1996 14:45:09 +0000 (14:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 10 Apr 1996 14:45:09 +0000 (14:45 +0000)
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
src/lib/gssapi/krb5/init_sec_context.c

index bfed886219a863b85e633e2a2ead9fe25e419ed8..4f881caa9e8ee1be3b6e1fb00cb2e1ab82a1ec56 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr  3 16:10:24 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * 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  <tytso@dcl>
 
        * Makefile.in (SRCS): Inlined list of source files for SRCS and
index 2f9d7958602f4ad8aea25541d4e2febf0d4d0888..33601ba396b28dd521df5baafb2a48a3d2f4d2df 100644 (file)
@@ -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);
       }