* accept_sec_context.c acquire_cred.c import_sec_context.c
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 14:04:38 +0000 (14:04 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 14:04:38 +0000 (14:04 +0000)
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

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/accept_sec_context.c
src/lib/gssapi/krb5/acquire_cred.c
src/lib/gssapi/krb5/import_sec_context.c
src/lib/gssapi/krb5/init_sec_context.c
src/lib/gssapi/krb5/inq_cred.c

index 98e13a187bffe03b2380205cfbbefcf706f0df95..d6c39bb439d48add335b7b72fec57a94a781f0ce 100644 (file)
@@ -1,3 +1,9 @@
+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
index b01e49fd297b5af8d14f0ecf2dd8b67e37b04aba..88fa7dbc8ce69ca42a0af064545a97e063a78951 100644 (file)
@@ -526,7 +526,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle,
    }
 
    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);
index 33946e767496cb0722e1bffe9a53a75bf2012233..91439f577ca807e078cbdd65e679c2c78281fc00 100644 (file)
@@ -457,11 +457,11 @@ krb5_gss_acquire_cred(minor_status, desired_name, time_req,
                                                            &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);
index fd5415a56aa3e4a3fb7ff12688dd498fc0deedc7..659cdc2b7a1c7020d719abb63ded66f3bb8a10d2 100644 (file)
@@ -44,7 +44,7 @@ gss_OID krb5_gss_convert_static_mech_oid(oid)
                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;
index 9c9d3fca3466f083116f7db30661282fb7925d9d..3fb392e777e1ce69c7e6828f8e9ca9d68dd65d7f 100644 (file)
@@ -403,9 +403,9 @@ krb5_gss_init_sec_context(minor_status, claimant_cred_handle,
    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;
        }
@@ -494,7 +494,7 @@ krb5_gss_init_sec_context(minor_status, claimant_cred_handle,
          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)
index 6da0a5213557a321043d2c3eb04e7b67842298fc..6fbbadcbebe48ceb2aac13eb51680062100888a8 100644 (file)
@@ -140,11 +140,11 @@ krb5_gss_inquire_cred(minor_status, cred_handle, name, lifetime_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,
                                                           &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 */