* spnego_mech.c: General misc. minor cleanup.
authorTom Yu <tlyu@mit.edu>
Sat, 20 May 2006 04:47:30 +0000 (04:47 +0000)
committerTom Yu <tlyu@mit.edu>
Sat, 20 May 2006 04:47:30 +0000 (04:47 +0000)
commita3f4e61083d64252f46c8777525b74425b2bd124
tree44235c1a367c3d047322574d73163fa9ce046c4c
parent5f0ec332ab4b11aeaae04b3ae9bdcae5c7dfdbb3
* spnego_mech.c: General misc. minor cleanup.
(spnego_gss_init_sec_context): Implement RFC 4178 handling of
MICs.  Split into new functions init_ctx_new, init_ctx_cont,
init_ctx_nego, init_ctx_reselect, and init_ctx_call_init.
(acc_ctx_vfymic): Delete.
(handle_mic, process_mic): New functions to handle verification
and generation of MICs for both initiator and acceptor.
(acc_ctx_cont): Explicitly set negState on success.
(put_mech_set): Encode into a gss_buffer_t instead.
(make_spnego_tokenInit_msg): Fix some ASN.1 encoding bugs.

* gssapiP_spnego.h: Change ACCEPT_DEFECTIVE_TOKEN value.  Add some
additional state variables to spnego_gss_ctx_id_rec, and delete
some unused ones.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/mechglue@18024 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/spnego/ChangeLog
src/lib/gssapi/spnego/gssapiP_spnego.h
src/lib/gssapi/spnego/spnego_mech.c