+Tue Aug 29 22:38:54 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * init_sec_context.c (krb5_gss_init_sec_context): Remove
+ duplicated cleanup code.
Tue Aug 29 17:48:40 EDT 1995 Paul Park (pjpark@mit.edu)
* {accept,init}_sec_context.c - Zero out the newly allocated context
/* call mk_req. subkey and ap_req need to be used or destroyed */
- mk_req_flags |= AP_OPTS_USE_SUBKEY;
+ mk_req_flags = AP_OPTS_USE_SUBKEY;
if (do_mutual)
mk_req_flags |= AP_OPTS_MUTUAL_REQUIRED;
}
}
- /* store away the sequence number */
- ctx->seq_recv = ap_rep_data->seq_number;
-
- /* free the ap_rep_data */
- krb5_free_ap_rep_enc_part(context, ap_rep_data);
-
- /* set established */
- ctx->established = 1;
-
- /* set returns */
-
- if (time_rec) {
- if (code = krb5_timeofday(context, &now)) {
- (void)krb5_gss_delete_sec_context(context, minor_status,
- (gss_ctx_id_t) ctx,
- NULL);
- *minor_status = code;
- return(GSS_S_FAILURE);
- }
- *time_rec = ctx->endtime - now;
- }
-
if (ret_flags)
*ret_flags = GSS_C_CONF_FLAG | GSS_C_INTEG_FLAG | GSS_C_MUTUAL_FLAG;