]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
In iakerb.c, use symbolic names for *_creds_step() continue flags, now
authorGreg Hudson <ghudson@mit.edu>
Tue, 20 Apr 2010 07:42:57 +0000 (07:42 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 20 Apr 2010 07:42:57 +0000 (07:42 +0000)
that they exist.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/iakerb@23908 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/iakerb.c

index 10d1fdbd6a3e569e5d74262242240c1a1abf06c5..eee7c7322085be64f75661ef6ce71ca516f2d854 100644 (file)
@@ -599,7 +599,7 @@ iakerb_initiator_step(iakerb_ctx_id_t ctx,
                                     &flags);
         if (code != 0)
             goto cleanup;
-        if ((flags & 1) != 1) {
+        if (!(flags & KRB5_INIT_CREDS_STEP_FLAG_CONTINUE)) {
             krb5_init_creds_get_times(ctx->k5c, ctx->u.icc, &times);
             cred->tgt_expire = times.endtime;
 
@@ -625,7 +625,7 @@ iakerb_initiator_step(iakerb_ctx_id_t ctx,
                                    &flags);
         if (code != 0)
             goto cleanup;
-        if ((flags & 1) != 1) {
+        if (!(flags & KRB5_TKT_CREDS_STEP_FLAG_CONTINUE)) {
             krb5_tkt_creds_get_times(ctx->k5c, ctx->u.tcc, &times);
             cred->tgt_expire = times.endtime;