init_sec_context.c inq_cred.c: Cast const gss_OID to gss_OID for
gssapi functions which are not speced with const in the RFC.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13360
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-18 Ezra Peisach <epeisach@mit.edu>
+
+ * accept_sec_context.c acquire_cred.c import_sec_context.c
+ init_sec_context.c inq_cred.c: Cast const gss_OID to gss_OID for
+ gssapi functions which are not speced with const in the RFC.
+
2001-06-07 Ezra Peisach <epeisach@mit.edu>
* ser_sctx.c (kg_oid_internalize): Do away with local variable
}
memset(ctx, 0, sizeof(krb5_gss_ctx_id_rec));
- ctx->mech_used = mech_used;
+ ctx->mech_used = (gss_OID) mech_used;
ctx->auth_context = auth_context;
ctx->initiate = 0;
ctx->gss_flags = KG_IMPLFLAGS(gss_flags);
&ret_mechs)) ||
(cred->prerfc_mech &&
GSS_ERROR(ret = generic_gss_add_oid_set_member(minor_status,
- gss_mech_krb5_old,
+ (gss_OID) gss_mech_krb5_old,
&ret_mechs))) ||
(cred->rfc_mech &&
GSS_ERROR(ret = generic_gss_add_oid_set_member(minor_status,
- gss_mech_krb5,
+ (gss_OID) gss_mech_krb5,
&ret_mechs)))) {
if (cred->ccache)
(void)krb5_cc_close(context, cred->ccache);
if ((oid->length == p->length) &&
(memcmp(oid->elements, p->elements, p->length) == 0)) {
gss_release_oid(&minor_status, &oid);
- return p;
+ return (gss_OID) p;
}
}
return oid;
if (mech_type == GSS_C_NULL_OID) {
default_mech = 1;
if (cred->rfc_mech) {
- mech_type = gss_mech_krb5;
+ mech_type = (gss_OID) gss_mech_krb5;
} else if (cred->prerfc_mech) {
- mech_type = gss_mech_krb5_old;
+ mech_type = (gss_OID) gss_mech_krb5_old;
} else {
err = 1;
}
goto fail;
if (default_mech) {
- mech_type = gss_mech_krb5;
+ mech_type = (gss_OID) gss_mech_krb5;
}
if (generic_gss_copy_oid(minor_status, mech_type, &ctx->mech_used)
&mechs)) ||
(cred->prerfc_mech &&
GSS_ERROR(ret = generic_gss_add_oid_set_member(minor_status,
- gss_mech_krb5_old,
+ (gss_OID) gss_mech_krb5_old,
&mechs))) ||
(cred->rfc_mech &&
GSS_ERROR(ret = generic_gss_add_oid_set_member(minor_status,
- gss_mech_krb5,
+ (gss_OID) gss_mech_krb5,
&mechs)))) {
krb5_free_principal(context, ret_name);
/* *minor_status set above */