accept_sec_context.c (krb5_gss_accept_sec_context):
init_sec_context.c (krb5_gss_init_sec_context): Test (gss_flags &
XXXX) against 0 so that we pass a int value to g_order_init. Needed
since int is 16 bits for Win16 build.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8810
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Jul 24 19:40:55 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * ser_sctx.c (kg_oid_externalize): Add proper return code
+
+ * accept_sec_context.c (krb5_gss_accept_sec_context):
+ * init_sec_context.c (krb5_gss_init_sec_context): Test (gss_flags &
+ XXXX) against 0 so that we pass a int value to
+ g_order_init. Needed since int is 16 bits for Win16 build.
+
Tue Jul 23 22:35:53 1996 Theodore Y. Ts'o <tytso@mit.edu>
* Makefile.in (all-windows): Fix broken Windows commands to copy
krb5_auth_con_getremoteseqnumber(context, auth_context, &ctx->seq_recv);
g_order_init(&(ctx->seqstate), ctx->seq_recv,
- gss_flags & GSS_C_REPLAY_FLAG,
- gss_flags & GSS_C_SEQUENCE_FLAG);
+ (gss_flags & GSS_C_REPLAY_FLAG) != 0,
+ (gss_flags & GSS_C_SEQUENCE_FLAG) != 0);
/* at this point, the entire context structure is filled in,
so it can be released. */
} else {
ctx->seq_recv = ctx->seq_send;
g_order_init(&(ctx->seqstate), ctx->seq_recv,
- req_flags & GSS_C_REPLAY_FLAG,
- req_flags & GSS_C_SEQUENCE_FLAG);
+ (req_flags & GSS_C_REPLAY_FLAG) != 0,
+ (req_flags & GSS_C_SEQUENCE_FLAG) != 0);
ctx->established = 1;
/* fall through to GSS_S_COMPLETE */
}
/* store away the sequence number */
ctx->seq_recv = ap_rep_data->seq_number;
g_order_init(&(ctx->seqstate), ctx->seq_recv,
- req_flags & GSS_C_REPLAY_FLAG,
- req_flags & GSS_C_SEQUENCE_FLAG);
+ (req_flags & GSS_C_REPLAY_FLAG) != 0,
+ (req_flags & GSS_C_SEQUENCE_FLAG) !=0);
/* free the ap_rep_data */
krb5_free_ap_rep_enc_part(context, ap_rep_data);
buffer, lenremain);
(void) krb5_ser_pack_bytes((krb5_octet *) oid->elements,
oid->length, buffer, lenremain);
+ return 0;
}
static krb5_error_code