X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=spnegokrb5%2Faccept_sec_context.c;h=cb12158bb00e0db5ffb4c1406bd4d967b576fb62;hb=HEAD;hp=3f713eef73ef9d04f02aa96cd5f7e05f374e0963;hpb=66849c4475823114574352595185ee8194fd7e28;p=mod_auth_kerb.cvs%2F.git diff --git a/spnegokrb5/accept_sec_context.c b/spnegokrb5/accept_sec_context.c index 3f713ee..cb12158 100644 --- a/spnegokrb5/accept_sec_context.c +++ b/spnegokrb5/accept_sec_context.c @@ -37,7 +37,7 @@ code_NegTokenArg(OM_uint32 *minor_status, ret = der_put_length_and_tag(buf + buf_size - buf_len - 1, buf_size - buf_len, buf_len, - CONTEXT, + KERB_CTXT, CONS, 1, &tmp); @@ -163,7 +163,7 @@ send_accept (OM_uint32 *minor_status, return GSS_S_COMPLETE; } -OM_uint32 gss_accept_sec_context_spnego +OM_uint32 KRB5_LIB_FUNCTION gss_accept_sec_context_spnego (OM_uint32 * minor_status, gss_ctx_id_t * context_handle, const gss_cred_id_t acceptor_cred_handle, @@ -194,7 +194,7 @@ OM_uint32 gss_accept_sec_context_spnego if (ret) return ret; - ret = der_match_tag_and_length(buf, buf_size, CONTEXT, CONS, + ret = der_match_tag_and_length(buf, buf_size, KERB_CTXT, CONS, 0, &len, &taglen); if (ret) return ret; @@ -209,7 +209,7 @@ OM_uint32 gss_accept_sec_context_spnego return send_reject (minor_status, output_token); for (i = 0; !found && i < init_token.mechTypes->len; ++i) { - char mechbuf[17]; + unsigned char mechbuf[17]; size_t mech_len; ret = der_put_oid (mechbuf + sizeof(mechbuf) - 1,