+1998-05-24 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * copy_ccache.c (gss_krb5_copy_ccache): Fix bugs in copy_ccache.c,
+ which never compiled cleanly (since it wasn't added to the
+ Makefile correctly originally).
+
+ * k5seal.c (make_seal_token): Clean up -Wall flames
+
1998-05-18 Theodore Ts'o <tytso@rsts-11.mit.edu>
* inq_cred.c (krb5_gss_inquire_cred):
krb5_context context;
/* validate the cred handle */
- stat = krb5_gss_validate_cred(minor_status, creds);
+ stat = krb5_gss_validate_cred(minor_status, cred_handle);
if (stat)
return(stat);
*minor_status = code;
return(GSS_S_FAILURE);
}
- while (!code && !krb5_cc_next_cred(context, k5creds->ccache, &creds, &cursor))
+ while (!code && !krb5_cc_next_cred(context, k5creds->ccache, &cursor, &creds))
code = krb5_cc_store_cred(context, out_ccache, &creds);
krb5_cc_end_seq_get(context, k5creds->ccache, &cursor);
char *data_ptr;
krb5_checksum md5cksum;
krb5_checksum cksum;
- int conflen, tmsglen, tlen;
+ int conflen=0, tmsglen, tlen;
unsigned char *t, *ptr;
/* create the token buffer */
return(GSS_S_NO_CONTEXT);
}
- if (code = krb5_timeofday(context, &now)) {
+ if ((code = krb5_timeofday(context, &now))) {
*minor_status = code;
return(GSS_S_FAILURE);
}
- if (code = make_seal_token(context, &ctx->enc, &ctx->seq,
- &ctx->seq_send, ctx->initiate,
- input_message_buffer, output_message_buffer,
- ctx->signalg, ctx->cksum_size, ctx->sealalg,
- conf_req_flag, toktype, ctx->big_endian,
- ctx->mech_used)) {
+ if ((code = make_seal_token(context, &ctx->enc, &ctx->seq,
+ &ctx->seq_send, ctx->initiate,
+ input_message_buffer, output_message_buffer,
+ ctx->signalg, ctx->cksum_size, ctx->sealalg,
+ conf_req_flag, toktype, ctx->big_endian,
+ ctx->mech_used))) {
*minor_status = code;
return(GSS_S_FAILURE);
}