1*ebfedea0SLionel Sambuc2008-08-14 Love Hornquist Astrand <lha@10a140laptop.local> 2*ebfedea0SLionel Sambuc 3*ebfedea0SLionel Sambuc * krb5/accept_sec_context.c: If there is a initiator subkey, copy 4*ebfedea0SLionel Sambuc that to acceptor subkey to match windows behavior. From Metze. 5*ebfedea0SLionel Sambuc 6*ebfedea0SLionel Sambuc2008-08-02 Love Hörnquist Åstrand <lha@h5l.org> 7*ebfedea0SLionel Sambuc 8*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Catch error 9*ebfedea0SLionel Sambuc 10*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: Catch store failure. 11*ebfedea0SLionel Sambuc 12*ebfedea0SLionel Sambuc * mech/gss_canonicalize_name.c: Not init m, return never 13*ebfedea0SLionel Sambuc used (overwritten later). 14*ebfedea0SLionel Sambuc 15*ebfedea0SLionel Sambuc2008-07-25 Love Hörnquist Åstrand <lha@kth.se> 16*ebfedea0SLionel Sambuc 17*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Use krb5_cc_get_config. 18*ebfedea0SLionel Sambuc 19*ebfedea0SLionel Sambuc2008-07-25 Love Hörnquist Åstrand <lha@kth.se> 20*ebfedea0SLionel Sambuc 21*ebfedea0SLionel Sambuc * krb5/init_sec_context.c: Match the orignal patch I got from 22*ebfedea0SLionel Sambuc metze, seems that DCE-STYLE is even more weirer then what I though 23*ebfedea0SLionel Sambuc when I merged the patch. 24*ebfedea0SLionel Sambuc 25*ebfedea0SLionel Sambuc2008-06-02 Love Hörnquist Åstrand <lha@kth.se> 26*ebfedea0SLionel Sambuc 27*ebfedea0SLionel Sambuc * krb5/init_sec_context.c: Don't add asn1 wrapping to token when 28*ebfedea0SLionel Sambuc using DCE_STYLE. Patch from Stefan Metzmacher. 29*ebfedea0SLionel Sambuc 30*ebfedea0SLionel Sambuc2008-05-27 Love Hörnquist Åstrand <lha@kth.se> 31*ebfedea0SLionel Sambuc 32*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: use krb5_get_error_message 33*ebfedea0SLionel Sambuc 34*ebfedea0SLionel Sambuc2008-05-05 Love Hörnquist Åstrand <lha@kth.se> 35*ebfedea0SLionel Sambuc 36*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: Add back "mech/utils.h", its needed for 37*ebfedea0SLionel Sambuc oid/buffer functions. 38*ebfedea0SLionel Sambuc 39*ebfedea0SLionel Sambuc2008-05-02 Love Hörnquist Åstrand <lha@it.su.se> 40*ebfedea0SLionel Sambuc 41*ebfedea0SLionel Sambuc * spnego: Changes from doug barton to make spnego indepedant of 42*ebfedea0SLionel Sambuc the heimdal version of the plugin system. 43*ebfedea0SLionel Sambuc 44*ebfedea0SLionel Sambuc2008-04-27 Love Hörnquist Åstrand <lha@it.su.se> 45*ebfedea0SLionel Sambuc 46*ebfedea0SLionel Sambuc * krb5: use DES_set_key_unchecked() 47*ebfedea0SLionel Sambuc 48*ebfedea0SLionel Sambuc2008-04-17 Love Hörnquist Åstrand <lha@it.su.se> 49*ebfedea0SLionel Sambuc 50*ebfedea0SLionel Sambuc * add __declspec() for windows. 51*ebfedea0SLionel Sambuc 52*ebfedea0SLionel Sambuc2008-04-15 Love Hörnquist Åstrand <lha@it.su.se> 53*ebfedea0SLionel Sambuc 54*ebfedea0SLionel Sambuc * krb5/import_sec_context.c: Use tmp to read ac->flags value to 55*ebfedea0SLionel Sambuc avoid warning. 56*ebfedea0SLionel Sambuc 57*ebfedea0SLionel Sambuc2008-04-07 Love Hörnquist Åstrand <lha@it.su.se> 58*ebfedea0SLionel Sambuc 59*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: Use unsigned where appropriate. 60*ebfedea0SLionel Sambuc 61*ebfedea0SLionel Sambuc2008-03-14 Love Hörnquist Åstrand <lha@it.su.se> 62*ebfedea0SLionel Sambuc 63*ebfedea0SLionel Sambuc * test_context.c: Add test for gsskrb5_register_acceptor_identity. 64*ebfedea0SLionel Sambuc 65*ebfedea0SLionel Sambuc2008-03-09 Love Hörnquist Åstrand <lha@it.su.se> 66*ebfedea0SLionel Sambuc 67*ebfedea0SLionel Sambuc * krb5/init_sec_context.c (init_auth): use right variable to 68*ebfedea0SLionel Sambuc detect if we want to free or not. 69*ebfedea0SLionel Sambuc 70*ebfedea0SLionel Sambuc2008-02-26 Love Hörnquist Åstrand <lha@it.su.se> 71*ebfedea0SLionel Sambuc 72*ebfedea0SLionel Sambuc * Makefile.am: add missing \ 73*ebfedea0SLionel Sambuc 74*ebfedea0SLionel Sambuc * Makefile.am: reshuffle depenencies 75*ebfedea0SLionel Sambuc 76*ebfedea0SLionel Sambuc * Add flag to krb5 to not add GSS-API INT|CONF to the negotiation 77*ebfedea0SLionel Sambuc 78*ebfedea0SLionel Sambuc2008-02-21 Love Hörnquist Åstrand <lha@it.su.se> 79*ebfedea0SLionel Sambuc 80*ebfedea0SLionel Sambuc * make the SPNEGO mech store the error itself instead, works for 81*ebfedea0SLionel Sambuc everything except other stackable mechs 82*ebfedea0SLionel Sambuc 83*ebfedea0SLionel Sambuc2008-02-18 Love Hörnquist Åstrand <lha@it.su.se> 84*ebfedea0SLionel Sambuc 85*ebfedea0SLionel Sambuc * spnego/init_sec_context.c (spnego_reply): if the reply token was 86*ebfedea0SLionel Sambuc of length 0, make it the same as no token. Pointed out by Zeqing 87*ebfedea0SLionel Sambuc Xia. 88*ebfedea0SLionel Sambuc 89*ebfedea0SLionel Sambuc * krb5/acquire_cred.c (acquire_initiator_cred): handle the 90*ebfedea0SLionel Sambuc credential cache better, use destroy/close when appriate and for 91*ebfedea0SLionel Sambuc all cases. Thanks to Michael Allen for point out the memory-leak 92*ebfedea0SLionel Sambuc that I also fixed. 93*ebfedea0SLionel Sambuc 94*ebfedea0SLionel Sambuc2008-02-03 Love Hörnquist Åstrand <lha@it.su.se> 95*ebfedea0SLionel Sambuc 96*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Make error reporting somewhat more 97*ebfedea0SLionel Sambuc correct for SPNEGO. 98*ebfedea0SLionel Sambuc 99*ebfedea0SLionel Sambuc2008-01-27 Love Hörnquist Åstrand <lha@it.su.se> 100*ebfedea0SLionel Sambuc 101*ebfedea0SLionel Sambuc * test_common.c: Improve the error message. 102*ebfedea0SLionel Sambuc 103*ebfedea0SLionel Sambuc2008-01-24 Love Hörnquist Åstrand <lha@it.su.se> 104*ebfedea0SLionel Sambuc 105*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Avoid free-ing type1 message before 106*ebfedea0SLionel Sambuc its allocated. 107*ebfedea0SLionel Sambuc 108*ebfedea0SLionel Sambuc2008-01-13 Love Hörnquist Åstrand <lha@it.su.se> 109*ebfedea0SLionel Sambuc 110*ebfedea0SLionel Sambuc * test_ntlm.c: Test source name (and make the acceptor in ntlm gss 111*ebfedea0SLionel Sambuc mech useful). 112*ebfedea0SLionel Sambuc 113*ebfedea0SLionel Sambuc2007-12-30 Love Hörnquist Åstrand <lha@it.su.se> 114*ebfedea0SLionel Sambuc 115*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Don't confuse target name and source 116*ebfedea0SLionel Sambuc name, make regressiont tests pass again. 117*ebfedea0SLionel Sambuc 118*ebfedea0SLionel Sambuc2007-12-29 Love Hörnquist Åstrand <lha@it.su.se> 119*ebfedea0SLionel Sambuc 120*ebfedea0SLionel Sambuc * ntlm: clean up name handling 121*ebfedea0SLionel Sambuc 122*ebfedea0SLionel Sambuc2007-12-04 Love Hörnquist Åstrand <lha@it.su.se> 123*ebfedea0SLionel Sambuc 124*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Use credential if it was passed in. 125*ebfedea0SLionel Sambuc 126*ebfedea0SLionel Sambuc * ntlm/acquire_cred.c: Check if there is initial creds with 127*ebfedea0SLionel Sambuc _gss_ntlm_get_user_cred(). 128*ebfedea0SLionel Sambuc 129*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Add _gss_ntlm_get_user_info() that 130*ebfedea0SLionel Sambuc return the user info so it can be used by external modules. 131*ebfedea0SLionel Sambuc 132*ebfedea0SLionel Sambuc * ntlm/inquire_cred.c: use the right error code. 133*ebfedea0SLionel Sambuc 134*ebfedea0SLionel Sambuc * ntlm/inquire_cred.c: Return GSS_C_NO_CREDENTIAL if there is no 135*ebfedea0SLionel Sambuc credential, ntlm have (not yet) a default credential. 136*ebfedea0SLionel Sambuc 137*ebfedea0SLionel Sambuc * mech/gss_release_oid_set.c: Avoid trying to deref NULL, from 138*ebfedea0SLionel Sambuc Phil Fisher. 139*ebfedea0SLionel Sambuc 140*ebfedea0SLionel Sambuc2007-12-03 Love Hörnquist Åstrand <lha@it.su.se> 141*ebfedea0SLionel Sambuc 142*ebfedea0SLionel Sambuc * test_acquire_cred.c: Always try to fetch cred (even with 143*ebfedea0SLionel Sambuc GSS_C_NO_NAME). 144*ebfedea0SLionel Sambuc 145*ebfedea0SLionel Sambuc2007-08-09 Love Hörnquist Åstrand <lha@it.su.se> 146*ebfedea0SLionel Sambuc 147*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Readd gss_krb5_get_tkt_flags. 148*ebfedea0SLionel Sambuc 149*ebfedea0SLionel Sambuc2007-08-08 Love Hörnquist Åstrand <lha@it.su.se> 150*ebfedea0SLionel Sambuc 151*ebfedea0SLionel Sambuc * spnego/compat.c (_gss_spnego_internal_delete_sec_context): 152*ebfedea0SLionel Sambuc release ctx->target_name too From Rafal Malinowski. 153*ebfedea0SLionel Sambuc 154*ebfedea0SLionel Sambuc2007-07-26 Love Hörnquist Åstrand <lha@it.su.se> 155*ebfedea0SLionel Sambuc 156*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: Don't try to do dlopen if system doesn't 157*ebfedea0SLionel Sambuc have dlopen. From Rune of Chalmers. 158*ebfedea0SLionel Sambuc 159*ebfedea0SLionel Sambuc2007-07-10 Love Hörnquist Åstrand <lha@it.su.se> 160*ebfedea0SLionel Sambuc 161*ebfedea0SLionel Sambuc * mech/gss_duplicate_name.c: New signature of _gss_find_mn. 162*ebfedea0SLionel Sambuc 163*ebfedea0SLionel Sambuc * mech/gss_init_sec_context.c: New signature of _gss_find_mn. 164*ebfedea0SLionel Sambuc 165*ebfedea0SLionel Sambuc * mech/gss_acquire_cred.c: New signature of _gss_find_mn. 166*ebfedea0SLionel Sambuc 167*ebfedea0SLionel Sambuc * mech/name.h: New signature of _gss_find_mn. 168*ebfedea0SLionel Sambuc 169*ebfedea0SLionel Sambuc * mech/gss_canonicalize_name.c: New signature of _gss_find_mn. 170*ebfedea0SLionel Sambuc 171*ebfedea0SLionel Sambuc * mech/gss_compare_name.c: New signature of _gss_find_mn. 172*ebfedea0SLionel Sambuc 173*ebfedea0SLionel Sambuc * mech/gss_add_cred.c: New signature of _gss_find_mn. 174*ebfedea0SLionel Sambuc 175*ebfedea0SLionel Sambuc * mech/gss_names.c (_gss_find_mn): Return an error code for 176*ebfedea0SLionel Sambuc caller. 177*ebfedea0SLionel Sambuc 178*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: remove checks that are done by the 179*ebfedea0SLionel Sambuc previous function. 180*ebfedea0SLionel Sambuc 181*ebfedea0SLionel Sambuc * Makefile.am: New library version. 182*ebfedea0SLionel Sambuc 183*ebfedea0SLionel Sambuc2007-07-04 Love Hörnquist Åstrand <lha@it.su.se> 184*ebfedea0SLionel Sambuc 185*ebfedea0SLionel Sambuc * mech/gss_oid_to_str.c: Refuse to print GSS_C_NULL_OID, from 186*ebfedea0SLionel Sambuc Rafal Malinowski. 187*ebfedea0SLionel Sambuc 188*ebfedea0SLionel Sambuc * spnego/spnego.asn1: Indent and make NegTokenInit and 189*ebfedea0SLionel Sambuc NegTokenResp extendable. 190*ebfedea0SLionel Sambuc 191*ebfedea0SLionel Sambuc2007-06-21 Love Hörnquist Åstrand <lha@it.su.se> 192*ebfedea0SLionel Sambuc 193*ebfedea0SLionel Sambuc * ntlm/inquire_cred.c: Implement _gss_ntlm_inquire_cred. 194*ebfedea0SLionel Sambuc 195*ebfedea0SLionel Sambuc * mech/gss_display_status.c: Provide message for GSS_S_COMPLETE. 196*ebfedea0SLionel Sambuc 197*ebfedea0SLionel Sambuc * mech/context.c: If the canned string is "", its no use to the 198*ebfedea0SLionel Sambuc user, make it fall back to the default error string. 199*ebfedea0SLionel Sambuc 200*ebfedea0SLionel Sambuc2007-06-20 Love Hörnquist Åstrand <lha@it.su.se> 201*ebfedea0SLionel Sambuc 202*ebfedea0SLionel Sambuc * mech/gss_display_name.c (gss_display_name): no name -> 203*ebfedea0SLionel Sambuc fail. From Rafal Malinswski. 204*ebfedea0SLionel Sambuc 205*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Wrap name in a spnego_name instead 206*ebfedea0SLionel Sambuc of just a copy of the underlaying object. From Rafal Malinswski. 207*ebfedea0SLionel Sambuc 208*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Handle underlaying mech not 209*ebfedea0SLionel Sambuc returning mn. 210*ebfedea0SLionel Sambuc 211*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: Handle underlaying mech not 212*ebfedea0SLionel Sambuc returning mn. 213*ebfedea0SLionel Sambuc 214*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Make sure src_name is always set to 215*ebfedea0SLionel Sambuc GSS_C_NO_NAME when returning. 216*ebfedea0SLionel Sambuc 217*ebfedea0SLionel Sambuc * krb5/acquire_cred.c (acquire_acceptor_cred): don't claim 218*ebfedea0SLionel Sambuc everything is well on failure. From Phil Fisher. 219*ebfedea0SLionel Sambuc 220*ebfedea0SLionel Sambuc * mech/gss_duplicate_name.c: catch error (and ignore it) 221*ebfedea0SLionel Sambuc 222*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Use heim_ntlm_calculate_ntlm2_sess. 223*ebfedea0SLionel Sambuc 224*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: Only wrap the delegated cred if 225*ebfedea0SLionel Sambuc we got a delegated mech cred. From Rafal Malinowski. 226*ebfedea0SLionel Sambuc 227*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Only wrap the delegated cred if we 228*ebfedea0SLionel Sambuc are going to return it to the consumer. From Rafal Malinowski. 229*ebfedea0SLionel Sambuc 230*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Fixed memory leak pointed out by 231*ebfedea0SLionel Sambuc Rafal Malinowski, also while here moved to use NegotiationToken 232*ebfedea0SLionel Sambuc for decoding. 233*ebfedea0SLionel Sambuc 234*ebfedea0SLionel Sambuc2007-06-18 Love Hörnquist Åstrand <lha@it.su.se> 235*ebfedea0SLionel Sambuc 236*ebfedea0SLionel Sambuc * krb5/prf.c (_gsskrb5_pseudo_random): add missing break. 237*ebfedea0SLionel Sambuc 238*ebfedea0SLionel Sambuc * krb5/release_name.c: Set *minor_status unconditionallty, its 239*ebfedea0SLionel Sambuc done later anyway. 240*ebfedea0SLionel Sambuc 241*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Init get_mic to 0. 242*ebfedea0SLionel Sambuc 243*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c: Free memory in failure case, found 244*ebfedea0SLionel Sambuc by beam. 245*ebfedea0SLionel Sambuc 246*ebfedea0SLionel Sambuc * mech/gss_inquire_context.c: Handle mech_type being NULL. 247*ebfedea0SLionel Sambuc 248*ebfedea0SLionel Sambuc * mech/gss_inquire_cred_by_mech.c: Handle cred_name being NULL. 249*ebfedea0SLionel Sambuc 250*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Free memory in error case, found by beam. 251*ebfedea0SLionel Sambuc 252*ebfedea0SLionel Sambuc2007-06-12 Love Hörnquist Åstrand <lha@it.su.se> 253*ebfedea0SLionel Sambuc 254*ebfedea0SLionel Sambuc * ntlm/inquire_context.c: Use ctx->gssflags for flags. 255*ebfedea0SLionel Sambuc 256*ebfedea0SLionel Sambuc * krb5/display_name.c: Use KRB5_PRINCIPAL_UNPARSE_DISPLAY, this is 257*ebfedea0SLionel Sambuc not ment for machine consumption. 258*ebfedea0SLionel Sambuc 259*ebfedea0SLionel Sambuc2007-06-09 Love Hörnquist Åstrand <lha@it.su.se> 260*ebfedea0SLionel Sambuc 261*ebfedea0SLionel Sambuc * ntlm/digest.c (kdc_alloc): free memory on failure, pointed out 262*ebfedea0SLionel Sambuc by Rafal Malinowski. 263*ebfedea0SLionel Sambuc 264*ebfedea0SLionel Sambuc * ntlm/digest.c (kdc_destroy): free context when done, pointed out 265*ebfedea0SLionel Sambuc by Rafal Malinowski. 266*ebfedea0SLionel Sambuc 267*ebfedea0SLionel Sambuc * spnego/context_stubs.c (_gss_spnego_display_name): if input_name 268*ebfedea0SLionel Sambuc is null, fail. From Rafal Malinowski. 269*ebfedea0SLionel Sambuc 270*ebfedea0SLionel Sambuc2007-06-04 Love Hörnquist Åstrand <lha@it.su.se> 271*ebfedea0SLionel Sambuc 272*ebfedea0SLionel Sambuc * ntlm/digest.c: Free memory when done. 273*ebfedea0SLionel Sambuc 274*ebfedea0SLionel Sambuc2007-06-02 Love Hörnquist Åstrand <lha@it.su.se> 275*ebfedea0SLionel Sambuc 276*ebfedea0SLionel Sambuc * test_ntlm.c: Test both with and without keyex. 277*ebfedea0SLionel Sambuc 278*ebfedea0SLionel Sambuc * ntlm/digest.c: If we didn't set session key, don't expect one 279*ebfedea0SLionel Sambuc back. 280*ebfedea0SLionel Sambuc 281*ebfedea0SLionel Sambuc * test_ntlm.c: Set keyex flag and calculate session key. 282*ebfedea0SLionel Sambuc 283*ebfedea0SLionel Sambuc2007-05-31 Love Hörnquist Åstrand <lha@it.su.se> 284*ebfedea0SLionel Sambuc 285*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Use the return value before is 286*ebfedea0SLionel Sambuc overwritten by later calls. From Rafal Malinowski 287*ebfedea0SLionel Sambuc 288*ebfedea0SLionel Sambuc * krb5/release_cred.c: Give an minor_status argument to 289*ebfedea0SLionel Sambuc gss_release_oid_set. From Rafal Malinowski 290*ebfedea0SLionel Sambuc 291*ebfedea0SLionel Sambuc2007-05-30 Love Hörnquist Åstrand <lha@it.su.se> 292*ebfedea0SLionel Sambuc 293*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Catch errors and return the up the 294*ebfedea0SLionel Sambuc stack. 295*ebfedea0SLionel Sambuc 296*ebfedea0SLionel Sambuc * test_kcred.c: more testing of lifetimes 297*ebfedea0SLionel Sambuc 298*ebfedea0SLionel Sambuc2007-05-17 Love Hörnquist Åstrand <lha@it.su.se> 299*ebfedea0SLionel Sambuc 300*ebfedea0SLionel Sambuc * Makefile.am: Drop the gss oid_set function for the krb5 mech, 301*ebfedea0SLionel Sambuc use the mech glue versions instead. Pointed out by Rafal 302*ebfedea0SLionel Sambuc Malinowski. 303*ebfedea0SLionel Sambuc 304*ebfedea0SLionel Sambuc * krb5: Use gss oid_set functions from mechglue 305*ebfedea0SLionel Sambuc 306*ebfedea0SLionel Sambuc2007-05-14 Love Hörnquist Åstrand <lha@it.su.se> 307*ebfedea0SLionel Sambuc 308*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Set session key only if we are 309*ebfedea0SLionel Sambuc returned a session key. Found by David Love. 310*ebfedea0SLionel Sambuc 311*ebfedea0SLionel Sambuc2007-05-13 Love Hörnquist Åstrand <lha@it.su.se> 312*ebfedea0SLionel Sambuc 313*ebfedea0SLionel Sambuc * krb5/prf.c: switched MIN to min to make compile on solaris, 314*ebfedea0SLionel Sambuc pointed out by David Love. 315*ebfedea0SLionel Sambuc 316*ebfedea0SLionel Sambuc2007-05-09 Love Hörnquist Åstrand <lha@it.su.se> 317*ebfedea0SLionel Sambuc 318*ebfedea0SLionel Sambuc * krb5/inquire_cred_by_mech.c: Fill in all of the variables if 319*ebfedea0SLionel Sambuc they are passed in. Pointed out by Phil Fisher. 320*ebfedea0SLionel Sambuc 321*ebfedea0SLionel Sambuc2007-05-08 Love Hörnquist Åstrand <lha@it.su.se> 322*ebfedea0SLionel Sambuc 323*ebfedea0SLionel Sambuc * krb5/inquire_cred.c: Fix copy and paste error, bug spotted by 324*ebfedea0SLionel Sambuc from Phil Fisher. 325*ebfedea0SLionel Sambuc 326*ebfedea0SLionel Sambuc * mech: dont keep track of gc_usage, just figure it out at 327*ebfedea0SLionel Sambuc gss_inquire_cred() time 328*ebfedea0SLionel Sambuc 329*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c (add_builtin): ok for 330*ebfedea0SLionel Sambuc __gss_mech_initialize() to return NULL 331*ebfedea0SLionel Sambuc 332*ebfedea0SLionel Sambuc * test_kcred.c: more correct tests 333*ebfedea0SLionel Sambuc 334*ebfedea0SLionel Sambuc * spnego/cred_stubs.c (gss_inquire_cred*): wrap the name with a 335*ebfedea0SLionel Sambuc spnego_name. 336*ebfedea0SLionel Sambuc 337*ebfedea0SLionel Sambuc * ntlm/inquire_cred.c: make ntlm gss_inquire_cred fail for now, 338*ebfedea0SLionel Sambuc need to find default cred and friends. 339*ebfedea0SLionel Sambuc 340*ebfedea0SLionel Sambuc * krb5/inquire_cred_by_mech.c: reimplement 341*ebfedea0SLionel Sambuc 342*ebfedea0SLionel Sambuc2007-05-07 Love Hörnquist Åstrand <lha@it.su.se> 343*ebfedea0SLionel Sambuc 344*ebfedea0SLionel Sambuc * ntlm/acquire_cred.c: drop unused variable. 345*ebfedea0SLionel Sambuc 346*ebfedea0SLionel Sambuc * ntlm/acquire_cred.c: Reimplement. 347*ebfedea0SLionel Sambuc 348*ebfedea0SLionel Sambuc * Makefile.am: add ntlm/digest.c 349*ebfedea0SLionel Sambuc 350*ebfedea0SLionel Sambuc * ntlm: split out backend ntlm server processing 351*ebfedea0SLionel Sambuc 352*ebfedea0SLionel Sambuc2007-04-24 Love Hörnquist Åstrand <lha@it.su.se> 353*ebfedea0SLionel Sambuc 354*ebfedea0SLionel Sambuc * ntlm/delete_sec_context.c (_gss_ntlm_delete_sec_context): free 355*ebfedea0SLionel Sambuc credcache when done 356*ebfedea0SLionel Sambuc 357*ebfedea0SLionel Sambuc2007-04-22 Love Hörnquist Åstrand <lha@it.su.se> 358*ebfedea0SLionel Sambuc 359*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: ntlm-key credential entry is prefix with @ 360*ebfedea0SLionel Sambuc 361*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c (get_user_ccache): pick up the ntlm 362*ebfedea0SLionel Sambuc creds from the krb5 credential cache. 363*ebfedea0SLionel Sambuc 364*ebfedea0SLionel Sambuc2007-04-21 Love Hörnquist Åstrand <lha@it.su.se> 365*ebfedea0SLionel Sambuc 366*ebfedea0SLionel Sambuc * ntlm/delete_sec_context.c: free the key stored in the context 367*ebfedea0SLionel Sambuc 368*ebfedea0SLionel Sambuc * ntlm/ntlm.h: switch password for a key 369*ebfedea0SLionel Sambuc 370*ebfedea0SLionel Sambuc * test_oid.c: Switch oid to one that is exported. 371*ebfedea0SLionel Sambuc 372*ebfedea0SLionel Sambuc2007-04-20 Love Hörnquist Åstrand <lha@it.su.se> 373*ebfedea0SLionel Sambuc 374*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: move where hash is calculated to make 375*ebfedea0SLionel Sambuc it easier to add ccache support. 376*ebfedea0SLionel Sambuc 377*ebfedea0SLionel Sambuc * Makefile.am: Add version-script.map to EXTRA_DIST. 378*ebfedea0SLionel Sambuc 379*ebfedea0SLionel Sambuc2007-04-19 Love Hörnquist Åstrand <lha@it.su.se> 380*ebfedea0SLionel Sambuc 381*ebfedea0SLionel Sambuc * Makefile.am: Unconfuse newer versions of automake that doesn't 382*ebfedea0SLionel Sambuc know the diffrence between depenences and setting variables. foo: 383*ebfedea0SLionel Sambuc vs foo=. 384*ebfedea0SLionel Sambuc 385*ebfedea0SLionel Sambuc * test_ntlm.c: delete sec context when done. 386*ebfedea0SLionel Sambuc 387*ebfedea0SLionel Sambuc * version-script.map: export more symbols. 388*ebfedea0SLionel Sambuc 389*ebfedea0SLionel Sambuc * Makefile.am: add version script if ld supports it 390*ebfedea0SLionel Sambuc 391*ebfedea0SLionel Sambuc * version-script.map: add version script if ld supports it 392*ebfedea0SLionel Sambuc 393*ebfedea0SLionel Sambuc2007-04-18 Love Hörnquist Åstrand <lha@it.su.se> 394*ebfedea0SLionel Sambuc 395*ebfedea0SLionel Sambuc * Makefile.am: test_acquire_cred need test_common.[ch] 396*ebfedea0SLionel Sambuc 397*ebfedea0SLionel Sambuc * test_acquire_cred.c: add more test options. 398*ebfedea0SLionel Sambuc 399*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_CCACHE_NAME_X 400*ebfedea0SLionel Sambuc 401*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_CCACHE_NAME_X 402*ebfedea0SLionel Sambuc 403*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c: refactor code, implement 404*ebfedea0SLionel Sambuc GSS_KRB5_CCACHE_NAME_X 405*ebfedea0SLionel Sambuc 406*ebfedea0SLionel Sambuc * mech/gss_krb5.c: reimplement gss_krb5_ccache_name 407*ebfedea0SLionel Sambuc 408*ebfedea0SLionel Sambuc2007-04-17 Love Hörnquist Åstrand <lha@it.su.se> 409*ebfedea0SLionel Sambuc 410*ebfedea0SLionel Sambuc * spnego/cred_stubs.c: Need to import spnego name before we can 411*ebfedea0SLionel Sambuc use it as a gss_name_t. 412*ebfedea0SLionel Sambuc 413*ebfedea0SLionel Sambuc * test_acquire_cred.c: use this test as part of the regression 414*ebfedea0SLionel Sambuc suite. 415*ebfedea0SLionel Sambuc 416*ebfedea0SLionel Sambuc * mech/gss_acquire_cred.c (gss_acquire_cred): dont init 417*ebfedea0SLionel Sambuc cred->gc_mc every time in the loop. 418*ebfedea0SLionel Sambuc 419*ebfedea0SLionel Sambuc2007-04-15 Love Hörnquist Åstrand <lha@it.su.se> 420*ebfedea0SLionel Sambuc 421*ebfedea0SLionel Sambuc * Makefile.am: add test_common.h 422*ebfedea0SLionel Sambuc 423*ebfedea0SLionel Sambuc2007-02-16 Love Hörnquist Åstrand <lha@it.su.se> 424*ebfedea0SLionel Sambuc 425*ebfedea0SLionel Sambuc * gss_acquire_cred.3: Add link for 426*ebfedea0SLionel Sambuc gsskrb5_register_acceptor_identity. 427*ebfedea0SLionel Sambuc 428*ebfedea0SLionel Sambuc2007-02-08 Love Hörnquist Åstrand <lha@it.su.se> 429*ebfedea0SLionel Sambuc 430*ebfedea0SLionel Sambuc * krb5/copy_ccache.c: Try to leak less memory in the failure case. 431*ebfedea0SLionel Sambuc 432*ebfedea0SLionel Sambuc2007-01-31 Love Hörnquist Åstrand <lha@it.su.se> 433*ebfedea0SLionel Sambuc 434*ebfedea0SLionel Sambuc * mech/gss_display_status.c: Use right printf formater. 435*ebfedea0SLionel Sambuc 436*ebfedea0SLionel Sambuc * test_*.[ch]: split out the error printing function and try to 437*ebfedea0SLionel Sambuc return better errors 438*ebfedea0SLionel Sambuc 439*ebfedea0SLionel Sambuc2007-01-30 Love Hörnquist Åstrand <lha@it.su.se> 440*ebfedea0SLionel Sambuc 441*ebfedea0SLionel Sambuc * krb5/init_sec_context.c: revert 1.75: (init_auth): only turn on 442*ebfedea0SLionel Sambuc GSS_C_CONF_FLAG and GSS_C_INT_FLAG if the caller requseted it. 443*ebfedea0SLionel Sambuc 444*ebfedea0SLionel Sambuc This is because Kerberos always support INT|CONF, matches behavior 445*ebfedea0SLionel Sambuc with MS and MIT. The creates problems for the GSS-SPNEGO mech. 446*ebfedea0SLionel Sambuc 447*ebfedea0SLionel Sambuc2007-01-24 Love Hörnquist Åstrand <lha@it.su.se> 448*ebfedea0SLionel Sambuc 449*ebfedea0SLionel Sambuc * krb5/prf.c: constrain desired_output_len 450*ebfedea0SLionel Sambuc 451*ebfedea0SLionel Sambuc * krb5/external.c (krb5_mech): add _gsskrb5_pseudo_random 452*ebfedea0SLionel Sambuc 453*ebfedea0SLionel Sambuc * mech/gss_pseudo_random.c: Catch error from underlaying mech on 454*ebfedea0SLionel Sambuc failure. 455*ebfedea0SLionel Sambuc 456*ebfedea0SLionel Sambuc * Makefile.am: Add krb5/prf.c 457*ebfedea0SLionel Sambuc 458*ebfedea0SLionel Sambuc * krb5/prf.c: gss_pseudo_random for krb5 459*ebfedea0SLionel Sambuc 460*ebfedea0SLionel Sambuc * test_context.c: Checks for gss_pseudo_random. 461*ebfedea0SLionel Sambuc 462*ebfedea0SLionel Sambuc * krb5/gkrb5_err.et: add KG_INPUT_TOO_LONG 463*ebfedea0SLionel Sambuc 464*ebfedea0SLionel Sambuc * Makefile.am: Add mech/gss_pseudo_random.c 465*ebfedea0SLionel Sambuc 466*ebfedea0SLionel Sambuc * gssapi/gssapi.h: try to load pseudo_random 467*ebfedea0SLionel Sambuc 468*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: try to load pseudo_random 469*ebfedea0SLionel Sambuc 470*ebfedea0SLionel Sambuc * mech/gss_pseudo_random.c: Add gss_pseudo_random. 471*ebfedea0SLionel Sambuc 472*ebfedea0SLionel Sambuc * gssapi_mech.h: Add hook for gm_pseudo_random. 473*ebfedea0SLionel Sambuc 474*ebfedea0SLionel Sambuc2007-01-17 Love Hörnquist Åstrand <lha@it.su.se> 475*ebfedea0SLionel Sambuc 476*ebfedea0SLionel Sambuc * test_context.c: Don't assume bufer from gss_display_status is 477*ebfedea0SLionel Sambuc ok. 478*ebfedea0SLionel Sambuc 479*ebfedea0SLionel Sambuc * mech/gss_wrap_size_limit.c: Reset out variables. 480*ebfedea0SLionel Sambuc 481*ebfedea0SLionel Sambuc * mech/gss_wrap.c: Reset out variables. 482*ebfedea0SLionel Sambuc 483*ebfedea0SLionel Sambuc * mech/gss_verify_mic.c: Reset out variables. 484*ebfedea0SLionel Sambuc 485*ebfedea0SLionel Sambuc * mech/gss_utils.c: Reset out variables. 486*ebfedea0SLionel Sambuc 487*ebfedea0SLionel Sambuc * mech/gss_release_oid_set.c: Reset out variables. 488*ebfedea0SLionel Sambuc 489*ebfedea0SLionel Sambuc * mech/gss_release_cred.c: Reset out variables. 490*ebfedea0SLionel Sambuc 491*ebfedea0SLionel Sambuc * mech/gss_release_buffer.c: Reset variables. 492*ebfedea0SLionel Sambuc 493*ebfedea0SLionel Sambuc * mech/gss_oid_to_str.c: Reset out variables. 494*ebfedea0SLionel Sambuc 495*ebfedea0SLionel Sambuc * mech/gss_inquire_sec_context_by_oid.c: Fix reset out variables. 496*ebfedea0SLionel Sambuc 497*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: Reset out variables. 498*ebfedea0SLionel Sambuc 499*ebfedea0SLionel Sambuc * mech/gss_inquire_sec_context_by_oid.c: Reset out variables. 500*ebfedea0SLionel Sambuc 501*ebfedea0SLionel Sambuc * mech/gss_inquire_names_for_mech.c: Reset out variables. 502*ebfedea0SLionel Sambuc 503*ebfedea0SLionel Sambuc * mech/gss_inquire_cred_by_oid.c: Reset out variables. 504*ebfedea0SLionel Sambuc 505*ebfedea0SLionel Sambuc * mech/gss_inquire_cred_by_oid.c: Reset out variables. 506*ebfedea0SLionel Sambuc 507*ebfedea0SLionel Sambuc * mech/gss_inquire_cred_by_mech.c: Reset out variables. 508*ebfedea0SLionel Sambuc 509*ebfedea0SLionel Sambuc * mech/gss_inquire_cred.c: Reset out variables, fix memory leak. 510*ebfedea0SLionel Sambuc 511*ebfedea0SLionel Sambuc * mech/gss_inquire_context.c: Reset out variables. 512*ebfedea0SLionel Sambuc 513*ebfedea0SLionel Sambuc * mech/gss_init_sec_context.c: Zero out outbuffer on failure. 514*ebfedea0SLionel Sambuc 515*ebfedea0SLionel Sambuc * mech/gss_import_name.c: Reset out variables. 516*ebfedea0SLionel Sambuc 517*ebfedea0SLionel Sambuc * mech/gss_import_name.c: Reset out variables. 518*ebfedea0SLionel Sambuc 519*ebfedea0SLionel Sambuc * mech/gss_get_mic.c: Reset out variables. 520*ebfedea0SLionel Sambuc 521*ebfedea0SLionel Sambuc * mech/gss_export_name.c: Reset out variables. 522*ebfedea0SLionel Sambuc 523*ebfedea0SLionel Sambuc * mech/gss_encapsulate_token.c: Reset out variables. 524*ebfedea0SLionel Sambuc 525*ebfedea0SLionel Sambuc * mech/gss_duplicate_oid.c: Reset out variables. 526*ebfedea0SLionel Sambuc 527*ebfedea0SLionel Sambuc * mech/gss_duplicate_oid.c: Reset out variables. 528*ebfedea0SLionel Sambuc 529*ebfedea0SLionel Sambuc * mech/gss_duplicate_name.c: Reset out variables. 530*ebfedea0SLionel Sambuc 531*ebfedea0SLionel Sambuc * mech/gss_display_status.c: Reset out variables. 532*ebfedea0SLionel Sambuc 533*ebfedea0SLionel Sambuc * mech/gss_display_name.c: Reset out variables. 534*ebfedea0SLionel Sambuc 535*ebfedea0SLionel Sambuc * mech/gss_delete_sec_context.c: Reset out variables using propper 536*ebfedea0SLionel Sambuc macros. 537*ebfedea0SLionel Sambuc 538*ebfedea0SLionel Sambuc * mech/gss_decapsulate_token.c: Reset out variables using propper 539*ebfedea0SLionel Sambuc macros. 540*ebfedea0SLionel Sambuc 541*ebfedea0SLionel Sambuc * mech/gss_add_cred.c: Reset out variables. 542*ebfedea0SLionel Sambuc 543*ebfedea0SLionel Sambuc * mech/gss_acquire_cred.c: Reset out variables. 544*ebfedea0SLionel Sambuc 545*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: Reset out variables using propper 546*ebfedea0SLionel Sambuc macros. 547*ebfedea0SLionel Sambuc 548*ebfedea0SLionel Sambuc * mech/gss_init_sec_context.c: Reset out variables. 549*ebfedea0SLionel Sambuc 550*ebfedea0SLionel Sambuc * mech/mech_locl.h (_mg_buffer_zero): new macro that zaps a 551*ebfedea0SLionel Sambuc gss_buffer_t 552*ebfedea0SLionel Sambuc 553*ebfedea0SLionel Sambuc2007-01-16 Love Hörnquist Åstrand <lha@it.su.se> 554*ebfedea0SLionel Sambuc 555*ebfedea0SLionel Sambuc * mech: sprinkel _gss_mg_error 556*ebfedea0SLionel Sambuc 557*ebfedea0SLionel Sambuc * mech/gss_display_status.c (gss_display_status): use 558*ebfedea0SLionel Sambuc _gss_mg_get_error to fetch the error from underlaying mech, if it 559*ebfedea0SLionel Sambuc failes, let do the regular dance for GSS-CODE version and a 560*ebfedea0SLionel Sambuc generic print-the-error code for MECH-CODE. 561*ebfedea0SLionel Sambuc 562*ebfedea0SLionel Sambuc * mech/gss_oid_to_str.c: Don't include the NUL in the length of 563*ebfedea0SLionel Sambuc the string. 564*ebfedea0SLionel Sambuc 565*ebfedea0SLionel Sambuc * mech/context.h: Protoypes for _gss_mg_. 566*ebfedea0SLionel Sambuc 567*ebfedea0SLionel Sambuc * mech/context.c: Glue to catch the error from the lower gss-api 568*ebfedea0SLionel Sambuc layer and save that for later so gss_display_status() can show the 569*ebfedea0SLionel Sambuc error. 570*ebfedea0SLionel Sambuc 571*ebfedea0SLionel Sambuc * gss.c: Detect NTLM. 572*ebfedea0SLionel Sambuc 573*ebfedea0SLionel Sambuc2007-01-11 Love Hörnquist Åstrand <lha@it.su.se> 574*ebfedea0SLionel Sambuc 575*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: spelling 576*ebfedea0SLionel Sambuc 577*ebfedea0SLionel Sambuc2007-01-04 Love Hörnquist Åstrand <lha@it.su.se> 578*ebfedea0SLionel Sambuc 579*ebfedea0SLionel Sambuc * Makefile.am: Include build (private) prototypes header files. 580*ebfedea0SLionel Sambuc 581*ebfedea0SLionel Sambuc * Makefile.am (ntlmsrc): add ntlm/ntlm-private.h 582*ebfedea0SLionel Sambuc 583*ebfedea0SLionel Sambuc2006-12-28 Love Hörnquist Åstrand <lha@it.su.se> 584*ebfedea0SLionel Sambuc 585*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Pass signseal argument to 586*ebfedea0SLionel Sambuc _gss_ntlm_set_key. 587*ebfedea0SLionel Sambuc 588*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Pass signseal argument to 589*ebfedea0SLionel Sambuc _gss_ntlm_set_key. 590*ebfedea0SLionel Sambuc 591*ebfedea0SLionel Sambuc * ntlm/crypto.c (_gss_ntlm_set_key): add signseal argument 592*ebfedea0SLionel Sambuc 593*ebfedea0SLionel Sambuc * test_ntlm.c: add ntlmv2 test 594*ebfedea0SLionel Sambuc 595*ebfedea0SLionel Sambuc * ntlm/ntlm.h: break out struct ntlmv2_key; 596*ebfedea0SLionel Sambuc 597*ebfedea0SLionel Sambuc * ntlm/crypto.c (_gss_ntlm_set_key): set ntlm v2 keys. 598*ebfedea0SLionel Sambuc 599*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Set dummy ntlmv2 keys and Check TI. 600*ebfedea0SLionel Sambuc 601*ebfedea0SLionel Sambuc * ntlm/ntlm.h: NTLMv2 keys. 602*ebfedea0SLionel Sambuc 603*ebfedea0SLionel Sambuc * ntlm/crypto.c: NTLMv2 sign and verify. 604*ebfedea0SLionel Sambuc 605*ebfedea0SLionel Sambuc2006-12-20 Love Hörnquist Åstrand <lha@it.su.se> 606*ebfedea0SLionel Sambuc 607*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Don't send targetinfo now. 608*ebfedea0SLionel Sambuc 609*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Build ntlmv2 answer buffer. 610*ebfedea0SLionel Sambuc 611*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Leak less memory. 612*ebfedea0SLionel Sambuc 613*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Announce that we support key exchange. 614*ebfedea0SLionel Sambuc 615*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Add NTLM_NEG_NTLM2_SESSION, NTLMv2 616*ebfedea0SLionel Sambuc session security (disable because missing sign and seal). 617*ebfedea0SLionel Sambuc 618*ebfedea0SLionel Sambuc2006-12-19 Love Hörnquist Åstrand <lha@it.su.se> 619*ebfedea0SLionel Sambuc 620*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: split RC4 send and recv keystreams 621*ebfedea0SLionel Sambuc 622*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: split RC4 send and recv keystreams 623*ebfedea0SLionel Sambuc 624*ebfedea0SLionel Sambuc * ntlm/ntlm.h: split RC4 send and recv keystreams 625*ebfedea0SLionel Sambuc 626*ebfedea0SLionel Sambuc * ntlm/crypto.c: Implement SEAL. 627*ebfedea0SLionel Sambuc 628*ebfedea0SLionel Sambuc * ntlm/crypto.c: move gss_wrap/gss_unwrap here 629*ebfedea0SLionel Sambuc 630*ebfedea0SLionel Sambuc * test_context.c: request INT and CONF from the gss layer, test 631*ebfedea0SLionel Sambuc get and verify MIC. 632*ebfedea0SLionel Sambuc 633*ebfedea0SLionel Sambuc * ntlm/ntlm.h: add crypto bits. 634*ebfedea0SLionel Sambuc 635*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Save session master key. 636*ebfedea0SLionel Sambuc 637*ebfedea0SLionel Sambuc * Makefile.am: Move get and verify mic to the same file (crypto.c) 638*ebfedea0SLionel Sambuc since they share code. 639*ebfedea0SLionel Sambuc 640*ebfedea0SLionel Sambuc * ntlm/crypto.c: Move get and verify mic to the same file since 641*ebfedea0SLionel Sambuc they share code, implement NTLM v1 and dummy signatures. 642*ebfedea0SLionel Sambuc 643*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: pass on GSS_C_CONF_FLAG and 644*ebfedea0SLionel Sambuc GSS_C_INTEG_FLAG, save the session master key 645*ebfedea0SLionel Sambuc 646*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: try using gss_accept_sec_context() 647*ebfedea0SLionel Sambuc on the opportunistic token instead of guessing the acceptor name 648*ebfedea0SLionel Sambuc and do gss_acquire_cred, this make SPNEGO work like before. 649*ebfedea0SLionel Sambuc 650*ebfedea0SLionel Sambuc2006-12-18 Love Hörnquist Åstrand <lha@it.su.se> 651*ebfedea0SLionel Sambuc 652*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c: Calculate the NTLM version 1 "master" 653*ebfedea0SLionel Sambuc key. 654*ebfedea0SLionel Sambuc 655*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Resurect negHints for the acceptor 656*ebfedea0SLionel Sambuc sends first packet. 657*ebfedea0SLionel Sambuc 658*ebfedea0SLionel Sambuc * Makefile.am: Add "windows" versions of the NegTokenInitWin and 659*ebfedea0SLionel Sambuc friends. 660*ebfedea0SLionel Sambuc 661*ebfedea0SLionel Sambuc * test_context.c: add --wrapunwrap flag 662*ebfedea0SLionel Sambuc 663*ebfedea0SLionel Sambuc * spnego/compat.c: move _gss_spnego_indicate_mechtypelist() to 664*ebfedea0SLionel Sambuc compat.c, use the sequence types of MechTypeList, make 665*ebfedea0SLionel Sambuc add_mech_type() static. 666*ebfedea0SLionel Sambuc 667*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: move 668*ebfedea0SLionel Sambuc _gss_spnego_indicate_mechtypelist() to compat.c 669*ebfedea0SLionel Sambuc 670*ebfedea0SLionel Sambuc * Makefile.am: Generate sequence code for MechTypeList 671*ebfedea0SLionel Sambuc 672*ebfedea0SLionel Sambuc * spnego: check that the generated acceptor mechlist is acceptable too 673*ebfedea0SLionel Sambuc 674*ebfedea0SLionel Sambuc * spnego/init_sec_context.c: Abstract out the initiator filter 675*ebfedea0SLionel Sambuc function, it will be needed for the acceptor too. 676*ebfedea0SLionel Sambuc 677*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Abstract out the initiator filter 678*ebfedea0SLionel Sambuc function, it will be needed for the acceptor too. Remove negHints. 679*ebfedea0SLionel Sambuc 680*ebfedea0SLionel Sambuc * test_context.c: allow asserting return mech 681*ebfedea0SLionel Sambuc 682*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: add _gss_ntlm_allocate_ctx 683*ebfedea0SLionel Sambuc 684*ebfedea0SLionel Sambuc * ntlm/acquire_cred.c: Check that the KDC seem to there and 685*ebfedea0SLionel Sambuc answering us, we can't do better then that wen checking if we will 686*ebfedea0SLionel Sambuc accept the credential. 687*ebfedea0SLionel Sambuc 688*ebfedea0SLionel Sambuc * ntlm/get_mic.c: return GSS_S_UNAVAILABLE 689*ebfedea0SLionel Sambuc 690*ebfedea0SLionel Sambuc * mech/utils.h: add _gss_free_oid, reverse of _gss_copy_oid 691*ebfedea0SLionel Sambuc 692*ebfedea0SLionel Sambuc * mech/gss_utils.c: add _gss_free_oid, reverse of _gss_copy_oid 693*ebfedea0SLionel Sambuc 694*ebfedea0SLionel Sambuc * spnego/spnego.asn1: Its very sad, but NegHints its are not part 695*ebfedea0SLionel Sambuc of the NegTokenInit, this makes SPNEGO acceptor life a lot harder. 696*ebfedea0SLionel Sambuc 697*ebfedea0SLionel Sambuc * spnego: try harder to handle names better. handle missing 698*ebfedea0SLionel Sambuc acceptor and initator creds better (ie dont propose/accept mech 699*ebfedea0SLionel Sambuc that there are no credentials for) split NegTokenInit and 700*ebfedea0SLionel Sambuc NegTokenResp in acceptor 701*ebfedea0SLionel Sambuc 702*ebfedea0SLionel Sambuc2006-12-16 Love Hörnquist Åstrand <lha@it.su.se> 703*ebfedea0SLionel Sambuc 704*ebfedea0SLionel Sambuc * ntlm/import_name.c: Allocate the buffer from the right length. 705*ebfedea0SLionel Sambuc 706*ebfedea0SLionel Sambuc2006-12-15 Love Hörnquist Åstrand <lha@it.su.se> 707*ebfedea0SLionel Sambuc 708*ebfedea0SLionel Sambuc * ntlm/init_sec_context.c (init_sec_context): Tell the other side 709*ebfedea0SLionel Sambuc what domain we think we are talking to. 710*ebfedea0SLionel Sambuc 711*ebfedea0SLionel Sambuc * ntlm/delete_sec_context.c: free username and password 712*ebfedea0SLionel Sambuc 713*ebfedea0SLionel Sambuc * ntlm/release_name.c (_gss_ntlm_release_name): free name. 714*ebfedea0SLionel Sambuc 715*ebfedea0SLionel Sambuc * ntlm/import_name.c (_gss_ntlm_import_name): add support for 716*ebfedea0SLionel Sambuc GSS_C_NT_HOSTBASED_SERVICE names 717*ebfedea0SLionel Sambuc 718*ebfedea0SLionel Sambuc * ntlm/ntlm.h: Add ntlm_name. 719*ebfedea0SLionel Sambuc 720*ebfedea0SLionel Sambuc * test_context.c: allow testing of ntlm. 721*ebfedea0SLionel Sambuc 722*ebfedea0SLionel Sambuc * gssapi_mech.h: add __gss_ntlm_initialize 723*ebfedea0SLionel Sambuc 724*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c (handle_type3): verify that the kdc 725*ebfedea0SLionel Sambuc approved of the ntlm exchange too 726*ebfedea0SLionel Sambuc 727*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: Add the builtin ntlm mech 728*ebfedea0SLionel Sambuc 729*ebfedea0SLionel Sambuc * test_ntlm.c: NTLM test app. 730*ebfedea0SLionel Sambuc 731*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: Add detection of NTLMSSP. 732*ebfedea0SLionel Sambuc 733*ebfedea0SLionel Sambuc * gssapi/gssapi.h: add ntlm mech oid 734*ebfedea0SLionel Sambuc 735*ebfedea0SLionel Sambuc * ntlm/external.c: Switch OID to the ms ntlmssp oid 736*ebfedea0SLionel Sambuc 737*ebfedea0SLionel Sambuc * Makefile.am: Add ntlm gss-api module. 738*ebfedea0SLionel Sambuc 739*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Catch more error errors. 740*ebfedea0SLionel Sambuc 741*ebfedea0SLionel Sambuc * ntlm/accept_sec_context.c: Check after a credential to use. 742*ebfedea0SLionel Sambuc 743*ebfedea0SLionel Sambuc2006-12-14 Love Hörnquist Åstrand <lha@it.su.se> 744*ebfedea0SLionel Sambuc 745*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c (GSS_KRB5_SET_DEFAULT_REALM_X): 746*ebfedea0SLionel Sambuc don't fail on success. Bug report from Stefan Metzmacher. 747*ebfedea0SLionel Sambuc 748*ebfedea0SLionel Sambuc2006-12-13 Love Hörnquist Åstrand <lha@it.su.se> 749*ebfedea0SLionel Sambuc 750*ebfedea0SLionel Sambuc * krb5/init_sec_context.c (init_auth): only turn on 751*ebfedea0SLionel Sambuc GSS_C_CONF_FLAG and GSS_C_INT_FLAG if the caller requseted it. 752*ebfedea0SLionel Sambuc From Stefan Metzmacher. 753*ebfedea0SLionel Sambuc 754*ebfedea0SLionel Sambuc2006-12-11 Love Hörnquist Åstrand <lha@it.su.se> 755*ebfedea0SLionel Sambuc 756*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_OBJECTS): depends on gssapi_asn1.h 757*ebfedea0SLionel Sambuc spnego_asn1.h. 758*ebfedea0SLionel Sambuc 759*ebfedea0SLionel Sambuc2006-11-20 Love Hörnquist Åstrand <lha@it.su.se> 760*ebfedea0SLionel Sambuc 761*ebfedea0SLionel Sambuc * krb5/acquire_cred.c: Make krb5_get_init_creds_opt_free take a 762*ebfedea0SLionel Sambuc context argument. 763*ebfedea0SLionel Sambuc 764*ebfedea0SLionel Sambuc2006-11-16 Love Hörnquist Åstrand <lha@it.su.se> 765*ebfedea0SLionel Sambuc 766*ebfedea0SLionel Sambuc * test_context.c: Test that token keys are the same, return 767*ebfedea0SLionel Sambuc actual_mech. 768*ebfedea0SLionel Sambuc 769*ebfedea0SLionel Sambuc2006-11-15 Love Hörnquist Åstrand <lha@it.su.se> 770*ebfedea0SLionel Sambuc 771*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: Make bitfields unsigned, add maybe_open. 772*ebfedea0SLionel Sambuc 773*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Use ASN.1 encoder functions to 774*ebfedea0SLionel Sambuc encode CHOICE structure now that we can handle it. 775*ebfedea0SLionel Sambuc 776*ebfedea0SLionel Sambuc * spnego/init_sec_context.c: Use ASN.1 encoder functions to encode 777*ebfedea0SLionel Sambuc CHOICE structure now that we can handle it. 778*ebfedea0SLionel Sambuc 779*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c (_gss_spnego_accept_sec_context): 780*ebfedea0SLionel Sambuc send back ad accept_completed when the security context is ->open, 781*ebfedea0SLionel Sambuc w/o this the client doesn't know that the server have completed 782*ebfedea0SLionel Sambuc the transaction. 783*ebfedea0SLionel Sambuc 784*ebfedea0SLionel Sambuc * test_context.c: Add delegate flag and check that the delegated 785*ebfedea0SLionel Sambuc cred works. 786*ebfedea0SLionel Sambuc 787*ebfedea0SLionel Sambuc * spnego/init_sec_context.c: Keep track of the opportunistic token 788*ebfedea0SLionel Sambuc in the inital message, it might be a complete gss-api context, in 789*ebfedea0SLionel Sambuc that case we'll get back accept_completed without any token. With 790*ebfedea0SLionel Sambuc this change, krb5 w/o mutual authentication works. 791*ebfedea0SLionel Sambuc 792*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Use ASN.1 encoder functions to 793*ebfedea0SLionel Sambuc encode CHOICE structure now that we can handle it. 794*ebfedea0SLionel Sambuc 795*ebfedea0SLionel Sambuc * spnego/accept_sec_context.c: Filter out SPNEGO from the out 796*ebfedea0SLionel Sambuc supported mechs list and make sure we don't select that for the 797*ebfedea0SLionel Sambuc preferred mechamism. 798*ebfedea0SLionel Sambuc 799*ebfedea0SLionel Sambuc2006-11-14 Love Hörnquist Åstrand <lha@it.su.se> 800*ebfedea0SLionel Sambuc 801*ebfedea0SLionel Sambuc * mech/gss_init_sec_context.c (_gss_mech_cred_find): break out the 802*ebfedea0SLionel Sambuc cred finding to its own function 803*ebfedea0SLionel Sambuc 804*ebfedea0SLionel Sambuc * krb5/wrap.c: Better error strings, from Andrew Bartlet. 805*ebfedea0SLionel Sambuc 806*ebfedea0SLionel Sambuc2006-11-13 Love Hörnquist Åstrand <lha@it.su.se> 807*ebfedea0SLionel Sambuc 808*ebfedea0SLionel Sambuc * test_context.c: Create our own krb5_context. 809*ebfedea0SLionel Sambuc 810*ebfedea0SLionel Sambuc * krb5: Switch from using a specific error message context in the 811*ebfedea0SLionel Sambuc TLS to have a whole krb5_context in TLS. This have some 812*ebfedea0SLionel Sambuc interestion side-effekts for the configruration setting options 813*ebfedea0SLionel Sambuc since they operate on per-thread basis now. 814*ebfedea0SLionel Sambuc 815*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c: When calling ->gm_set_cred_option 816*ebfedea0SLionel Sambuc and checking for success, use GSS_S_COMPLETE. From Andrew Bartlet. 817*ebfedea0SLionel Sambuc 818*ebfedea0SLionel Sambuc2006-11-12 Love Hörnquist Åstrand <lha@it.su.se> 819*ebfedea0SLionel Sambuc 820*ebfedea0SLionel Sambuc * Makefile.am: Help solaris make even more. 821*ebfedea0SLionel Sambuc 822*ebfedea0SLionel Sambuc * Makefile.am: Help solaris make. 823*ebfedea0SLionel Sambuc 824*ebfedea0SLionel Sambuc2006-11-09 Love Hörnquist Åstrand <lha@it.su.se> 825*ebfedea0SLionel Sambuc 826*ebfedea0SLionel Sambuc * Makefile.am: remove include $(srcdir)/Makefile-digest.am for now 827*ebfedea0SLionel Sambuc 828*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: Try better guessing what is mech 829*ebfedea0SLionel Sambuc we are going to select by looking harder at the input_token, idea 830*ebfedea0SLionel Sambuc from Luke Howard's mechglue branch. 831*ebfedea0SLionel Sambuc 832*ebfedea0SLionel Sambuc * Makefile.am: libgssapi_la_OBJECTS: add depency on gkrb5_err.h 833*ebfedea0SLionel Sambuc 834*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X 835*ebfedea0SLionel Sambuc 836*ebfedea0SLionel Sambuc * mech/gss_krb5.c: implement gss_krb5_set_allowable_enctypes 837*ebfedea0SLionel Sambuc 838*ebfedea0SLionel Sambuc * gssapi/gssapi.h: GSS_KRB5_S_ 839*ebfedea0SLionel Sambuc 840*ebfedea0SLionel Sambuc * krb5/gsskrb5_locl.h: Include <gkrb5_err.h>. 841*ebfedea0SLionel Sambuc 842*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Add gss_krb5_set_allowable_enctypes. 843*ebfedea0SLionel Sambuc 844*ebfedea0SLionel Sambuc * Makefile.am: Build and install gkrb5_err.h 845*ebfedea0SLionel Sambuc 846*ebfedea0SLionel Sambuc * krb5/gkrb5_err.et: Move the GSS_KRB5_S error here. 847*ebfedea0SLionel Sambuc 848*ebfedea0SLionel Sambuc2006-11-08 Love Hörnquist Åstrand <lha@it.su.se> 849*ebfedea0SLionel Sambuc 850*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add gsskrb5_set_default_realm. 851*ebfedea0SLionel Sambuc 852*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c: Support 853*ebfedea0SLionel Sambuc GSS_KRB5_SET_DEFAULT_REALM_X. 854*ebfedea0SLionel Sambuc 855*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_SET_DEFAULT_REALM_X 856*ebfedea0SLionel Sambuc 857*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_SET_DEFAULT_REALM_X 858*ebfedea0SLionel Sambuc 859*ebfedea0SLionel Sambuc2006-11-07 Love Hörnquist Åstrand <lha@it.su.se> 860*ebfedea0SLionel Sambuc 861*ebfedea0SLionel Sambuc * test_context.c: rename krb5_[gs]et_time_wrap to 862*ebfedea0SLionel Sambuc krb5_[gs]et_max_time_skew 863*ebfedea0SLionel Sambuc 864*ebfedea0SLionel Sambuc * krb5/copy_ccache.c: _gsskrb5_extract_authz_data_from_sec_context 865*ebfedea0SLionel Sambuc no longer used, bye bye 866*ebfedea0SLionel Sambuc 867*ebfedea0SLionel Sambuc * mech/gss_krb5.c: No depenency of the krb5 gssapi mech. 868*ebfedea0SLionel Sambuc 869*ebfedea0SLionel Sambuc * mech/gss_krb5.c (gsskrb5_extract_authtime_from_sec_context): use 870*ebfedea0SLionel Sambuc _gsskrb5_decode_om_uint32. From Andrew Bartlet. 871*ebfedea0SLionel Sambuc 872*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add dummy gss_krb5_set_allowable_enctypes for 873*ebfedea0SLionel Sambuc now. 874*ebfedea0SLionel Sambuc 875*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: Include <roken.h> for compatiblity. 876*ebfedea0SLionel Sambuc 877*ebfedea0SLionel Sambuc * krb5/arcfour.c: Use IS_DCE_STYLE flag. There is no padding in 878*ebfedea0SLionel Sambuc DCE-STYLE, don't try to use to. From Andrew Bartlett. 879*ebfedea0SLionel Sambuc 880*ebfedea0SLionel Sambuc * test_context.c: test wrap/unwrap, add flag for dce-style and 881*ebfedea0SLionel Sambuc mutual auth, also support multi-roundtrip sessions 882*ebfedea0SLionel Sambuc 883*ebfedea0SLionel Sambuc * krb5/gsskrb5_locl.h: Add IS_DCE_STYLE macro. 884*ebfedea0SLionel Sambuc 885*ebfedea0SLionel Sambuc * krb5/accept_sec_context.c (gsskrb5_acceptor_start): use 886*ebfedea0SLionel Sambuc krb5_rd_req_ctx 887*ebfedea0SLionel Sambuc 888*ebfedea0SLionel Sambuc * mech/gss_krb5.c (gsskrb5_get_subkey): return the per message 889*ebfedea0SLionel Sambuc token subkey 890*ebfedea0SLionel Sambuc 891*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: check if there is any key at 892*ebfedea0SLionel Sambuc all 893*ebfedea0SLionel Sambuc 894*ebfedea0SLionel Sambuc2006-11-06 Love Hörnquist Åstrand <lha@it.su.se> 895*ebfedea0SLionel Sambuc 896*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: Set more error strings, use 897*ebfedea0SLionel Sambuc right enum for acceptor subkey. From Andrew Bartlett. 898*ebfedea0SLionel Sambuc 899*ebfedea0SLionel Sambuc2006-11-04 Love Hörnquist Åstrand <lha@it.su.se> 900*ebfedea0SLionel Sambuc 901*ebfedea0SLionel Sambuc * test_context.c: Test gsskrb5_extract_service_keyblock, needed in 902*ebfedea0SLionel Sambuc PAC valication. From Andrew Bartlett 903*ebfedea0SLionel Sambuc 904*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add gsskrb5_extract_authz_data_from_sec_context 905*ebfedea0SLionel Sambuc and keyblock extraction functions. 906*ebfedea0SLionel Sambuc 907*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Add extraction of keyblock function, from 908*ebfedea0SLionel Sambuc Andrew Bartlett. 909*ebfedea0SLionel Sambuc 910*ebfedea0SLionel Sambuc * krb5/external.c: Add GSS_KRB5_GET_SERVICE_KEYBLOCK_X 911*ebfedea0SLionel Sambuc 912*ebfedea0SLionel Sambuc2006-11-03 Love Hörnquist Åstrand <lha@it.su.se> 913*ebfedea0SLionel Sambuc 914*ebfedea0SLionel Sambuc * test_context.c: Rename various routines and constants from 915*ebfedea0SLionel Sambuc canonize to canonicalize. From Andrew Bartlett 916*ebfedea0SLionel Sambuc 917*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Rename various routines and constants from 918*ebfedea0SLionel Sambuc canonize to canonicalize. From Andrew Bartlett 919*ebfedea0SLionel Sambuc 920*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c: Rename various routines and 921*ebfedea0SLionel Sambuc constants from canonize to canonicalize. From Andrew Bartlett 922*ebfedea0SLionel Sambuc 923*ebfedea0SLionel Sambuc * krb5/external.c: Rename various routines and constants from 924*ebfedea0SLionel Sambuc canonize to canonicalize. From Andrew Bartlett 925*ebfedea0SLionel Sambuc 926*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Rename various routines and constants from 927*ebfedea0SLionel Sambuc canonize to canonicalize. From Andrew Bartlett 928*ebfedea0SLionel Sambuc 929*ebfedea0SLionel Sambuc2006-10-25 Love Hörnquist Åstrand <lha@it.su.se> 930*ebfedea0SLionel Sambuc 931*ebfedea0SLionel Sambuc * krb5/accept_sec_context.c (gsskrb5_accept_delegated_token): need 932*ebfedea0SLionel Sambuc to free ccache 933*ebfedea0SLionel Sambuc 934*ebfedea0SLionel Sambuc2006-10-24 Love Hörnquist Åstrand <lha@it.su.se> 935*ebfedea0SLionel Sambuc 936*ebfedea0SLionel Sambuc * test_context.c (loop): free target_name 937*ebfedea0SLionel Sambuc 938*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: SLIST_INIT the ->gc_mc' 939*ebfedea0SLionel Sambuc 940*ebfedea0SLionel Sambuc * mech/gss_acquire_cred.c : SLIST_INIT the ->gc_mc' 941*ebfedea0SLionel Sambuc 942*ebfedea0SLionel Sambuc * krb5/init_sec_context.c: Avoid leaking memory. 943*ebfedea0SLionel Sambuc 944*ebfedea0SLionel Sambuc * mech/gss_buffer_set.c (gss_release_buffer_set): don't leak the 945*ebfedea0SLionel Sambuc ->elements memory. 946*ebfedea0SLionel Sambuc 947*ebfedea0SLionel Sambuc * test_context.c: make compile 948*ebfedea0SLionel Sambuc 949*ebfedea0SLionel Sambuc * krb5/cfx.c (_gssapi_verify_mic_cfx): always free crypto context. 950*ebfedea0SLionel Sambuc 951*ebfedea0SLionel Sambuc * krb5/set_cred_option.c (import_cred): free sp 952*ebfedea0SLionel Sambuc 953*ebfedea0SLionel Sambuc2006-10-22 Love Hörnquist Åstrand <lha@it.su.se> 954*ebfedea0SLionel Sambuc 955*ebfedea0SLionel Sambuc * mech/gss_add_oid_set_member.c: Use old implementation of 956*ebfedea0SLionel Sambuc gss_add_oid_set_member, it leaks less memory. 957*ebfedea0SLionel Sambuc 958*ebfedea0SLionel Sambuc * krb5/test_cfx.c: free krb5_crypto. 959*ebfedea0SLionel Sambuc 960*ebfedea0SLionel Sambuc * krb5/test_cfx.c: free krb5_context 961*ebfedea0SLionel Sambuc 962*ebfedea0SLionel Sambuc * mech/gss_release_name.c (gss_release_name): free input_name 963*ebfedea0SLionel Sambuc it-self. 964*ebfedea0SLionel Sambuc 965*ebfedea0SLionel Sambuc2006-10-21 Love Hörnquist Åstrand <lha@it.su.se> 966*ebfedea0SLionel Sambuc 967*ebfedea0SLionel Sambuc * test_context.c: Call setprogname. 968*ebfedea0SLionel Sambuc 969*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add gsskrb5_extract_authtime_from_sec_context. 970*ebfedea0SLionel Sambuc 971*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add 972*ebfedea0SLionel Sambuc gsskrb5_extract_authtime_from_sec_context 973*ebfedea0SLionel Sambuc 974*ebfedea0SLionel Sambuc2006-10-20 Love Hörnquist Åstrand <lha@it.su.se> 975*ebfedea0SLionel Sambuc 976*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: Add get_authtime. 977*ebfedea0SLionel Sambuc 978*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_GET_AUTHTIME_X 979*ebfedea0SLionel Sambuc 980*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_GET_AUTHTIME_X 981*ebfedea0SLionel Sambuc 982*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c: Implement GSS_KRB5_SEND_TO_KDC_X. 983*ebfedea0SLionel Sambuc 984*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add gsskrb5_set_send_to_kdc 985*ebfedea0SLionel Sambuc 986*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Add GSS_KRB5_SEND_TO_KDC_X and 987*ebfedea0SLionel Sambuc gsskrb5_set_send_to_kdc 988*ebfedea0SLionel Sambuc 989*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_SEND_TO_KDC_X 990*ebfedea0SLionel Sambuc 991*ebfedea0SLionel Sambuc * Makefile.am: more files 992*ebfedea0SLionel Sambuc 993*ebfedea0SLionel Sambuc2006-10-19 Love Hörnquist Åstrand <lha@it.su.se> 994*ebfedea0SLionel Sambuc 995*ebfedea0SLionel Sambuc * Makefile.am: remove spnego/gssapi_spnego.h, its now in gssapi/ 996*ebfedea0SLionel Sambuc 997*ebfedea0SLionel Sambuc * test_context.c: Allow specifing mech. 998*ebfedea0SLionel Sambuc 999*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_SASL_DIGEST_MD5_MECHANISM (for now) 1000*ebfedea0SLionel Sambuc 1001*ebfedea0SLionel Sambuc * gssapi/gssapi.h: Rename GSS_DIGEST_MECHANISM to 1002*ebfedea0SLionel Sambuc GSS_SASL_DIGEST_MD5_MECHANISM 1003*ebfedea0SLionel Sambuc 1004*ebfedea0SLionel Sambuc2006-10-18 Love Hörnquist Åstrand <lha@it.su.se> 1005*ebfedea0SLionel Sambuc 1006*ebfedea0SLionel Sambuc * mech/gssapi.asn1: Make it into a heim_any_set, its doesn't 1007*ebfedea0SLionel Sambuc except a tag. 1008*ebfedea0SLionel Sambuc 1009*ebfedea0SLionel Sambuc * mech/gssapi.asn1: GSSAPIContextToken is IMPLICIT SEQUENCE 1010*ebfedea0SLionel Sambuc 1011*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_GET_ACCEPTOR_SUBKEY_X 1012*ebfedea0SLionel Sambuc 1013*ebfedea0SLionel Sambuc * krb5/external.c: Add GSS_KRB5_GET_ACCEPTOR_SUBKEY_X. 1014*ebfedea0SLionel Sambuc 1015*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_GET_INITIATOR_SUBKEY_X and 1016*ebfedea0SLionel Sambuc GSS_KRB5_GET_SUBKEY_X 1017*ebfedea0SLionel Sambuc 1018*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_GET_INITIATOR_SUBKEY_X, 1019*ebfedea0SLionel Sambuc GSS_KRB5_GET_SUBKEY_X 1020*ebfedea0SLionel Sambuc 1021*ebfedea0SLionel Sambuc2006-10-17 Love Hörnquist Åstrand <lha@it.su.se> 1022*ebfedea0SLionel Sambuc 1023*ebfedea0SLionel Sambuc * test_context.c: Support switching on name type oid's 1024*ebfedea0SLionel Sambuc 1025*ebfedea0SLionel Sambuc * test_context.c: add test for dns canon flag 1026*ebfedea0SLionel Sambuc 1027*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add gsskrb5_set_dns_canonlize. 1028*ebfedea0SLionel Sambuc 1029*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: remove gss_krb5_compat_des3_mic 1030*ebfedea0SLionel Sambuc 1031*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Add gsskrb5_set_dns_canonlize. 1032*ebfedea0SLionel Sambuc 1033*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c: implement 1034*ebfedea0SLionel Sambuc GSS_KRB5_SET_DNS_CANONIZE_X 1035*ebfedea0SLionel Sambuc 1036*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: add GSS_KRB5_SET_DNS_CANONIZE_X 1037*ebfedea0SLionel Sambuc 1038*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_SET_DNS_CANONIZE_X 1039*ebfedea0SLionel Sambuc 1040*ebfedea0SLionel Sambuc * mech/gss_krb5.c: add bits to make lucid context work 1041*ebfedea0SLionel Sambuc 1042*ebfedea0SLionel Sambuc2006-10-14 Love Hörnquist Åstrand <lha@it.su.se> 1043*ebfedea0SLionel Sambuc 1044*ebfedea0SLionel Sambuc * mech/gss_oid_to_str.c: Prefix der primitives with der_. 1045*ebfedea0SLionel Sambuc 1046*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: Prefix der primitives with 1047*ebfedea0SLionel Sambuc der_. 1048*ebfedea0SLionel Sambuc 1049*ebfedea0SLionel Sambuc * krb5/encapsulate.c: Prefix der primitives with der_. 1050*ebfedea0SLionel Sambuc 1051*ebfedea0SLionel Sambuc * mech/gss_oid_to_str.c: New der_print_heim_oid signature. 1052*ebfedea0SLionel Sambuc 1053*ebfedea0SLionel Sambuc2006-10-12 Love Hörnquist Åstrand <lha@it.su.se> 1054*ebfedea0SLionel Sambuc 1055*ebfedea0SLionel Sambuc * Makefile.am: add test_context 1056*ebfedea0SLionel Sambuc 1057*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: Make it work. 1058*ebfedea0SLionel Sambuc 1059*ebfedea0SLionel Sambuc * test_oid.c: Test lucid oid. 1060*ebfedea0SLionel Sambuc 1061*ebfedea0SLionel Sambuc * gssapi/gssapi.h: Add OM_uint64_t. 1062*ebfedea0SLionel Sambuc 1063*ebfedea0SLionel Sambuc * krb5/inquire_sec_context_by_oid.c: Add lucid interface. 1064*ebfedea0SLionel Sambuc 1065*ebfedea0SLionel Sambuc * krb5/external.c: Add lucid interface, renumber oids to my 1066*ebfedea0SLionel Sambuc delegated space. 1067*ebfedea0SLionel Sambuc 1068*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Add lucid interface. 1069*ebfedea0SLionel Sambuc 1070*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Add lucid interface. 1071*ebfedea0SLionel Sambuc 1072*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: Maybe include <netdb.h>. 1073*ebfedea0SLionel Sambuc 1074*ebfedea0SLionel Sambuc2006-10-09 Love Hörnquist Åstrand <lha@it.su.se> 1075*ebfedea0SLionel Sambuc 1076*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: define RTLD_LOCAL to 0 if not defined. 1077*ebfedea0SLionel Sambuc 1078*ebfedea0SLionel Sambuc2006-10-08 Love Hörnquist Åstrand <lha@it.su.se> 1079*ebfedea0SLionel Sambuc 1080*ebfedea0SLionel Sambuc * Makefile.am: install gssapi_krb5.H and gssapi_spnego.h 1081*ebfedea0SLionel Sambuc 1082*ebfedea0SLionel Sambuc * gssapi/gssapi_krb5.h: Move krb5 stuff to <gssapi/gssapi_krb5.h>. 1083*ebfedea0SLionel Sambuc 1084*ebfedea0SLionel Sambuc * gssapi/gssapi.h: Move krb5 stuff to <gssapi/gssapi_krb5.h>. 1085*ebfedea0SLionel Sambuc 1086*ebfedea0SLionel Sambuc * Makefile.am: Drop some -I no longer needed. 1087*ebfedea0SLionel Sambuc 1088*ebfedea0SLionel Sambuc * gssapi/gssapi_spnego.h: Move gssapi_spengo.h over here. 1089*ebfedea0SLionel Sambuc 1090*ebfedea0SLionel Sambuc * krb5: reference all include files using 'krb5/' 1091*ebfedea0SLionel Sambuc 1092*ebfedea0SLionel Sambuc2006-10-07 Love Hörnquist Åstrand <lha@it.su.se> 1093*ebfedea0SLionel Sambuc 1094*ebfedea0SLionel Sambuc * gssapi.h: Add file inclusion protection. 1095*ebfedea0SLionel Sambuc 1096*ebfedea0SLionel Sambuc * gssapi/gssapi.h: Correct header file inclusion protection. 1097*ebfedea0SLionel Sambuc 1098*ebfedea0SLionel Sambuc * gssapi/gssapi.h: Move the gssapi.h from lib/gssapi/ to 1099*ebfedea0SLionel Sambuc lib/gssapi/gssapi/ to please automake. 1100*ebfedea0SLionel Sambuc 1101*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: Maybe include <sys/types.h>. 1102*ebfedea0SLionel Sambuc 1103*ebfedea0SLionel Sambuc * mech/mech_locl.h: Include <roken.h>. 1104*ebfedea0SLionel Sambuc 1105*ebfedea0SLionel Sambuc * Makefile.am: split build files into dist_ and noinst_ SOURCES 1106*ebfedea0SLionel Sambuc 1107*ebfedea0SLionel Sambuc2006-10-06 Love Hörnquist Åstrand <lha@it.su.se> 1108*ebfedea0SLionel Sambuc 1109*ebfedea0SLionel Sambuc * gss.c: #if 0 out unused code. 1110*ebfedea0SLionel Sambuc 1111*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: Cast argument to ctype(3) functions 1112*ebfedea0SLionel Sambuc to (unsigned char). 1113*ebfedea0SLionel Sambuc 1114*ebfedea0SLionel Sambuc2006-10-05 Love Hörnquist Åstrand <lha@it.su.se> 1115*ebfedea0SLionel Sambuc 1116*ebfedea0SLionel Sambuc * mech/name.h: remove <sys/queue.h> 1117*ebfedea0SLionel Sambuc 1118*ebfedea0SLionel Sambuc * mech/mech_switch.h: remove <sys/queue.h> 1119*ebfedea0SLionel Sambuc 1120*ebfedea0SLionel Sambuc * mech/cred.h: remove <sys/queue.h> 1121*ebfedea0SLionel Sambuc 1122*ebfedea0SLionel Sambuc2006-10-02 Love Hörnquist Åstrand <lha@it.su.se> 1123*ebfedea0SLionel Sambuc 1124*ebfedea0SLionel Sambuc * krb5/arcfour.c: Thinker more with header lengths. 1125*ebfedea0SLionel Sambuc 1126*ebfedea0SLionel Sambuc * krb5/arcfour.c: Improve the calcucation of header 1127*ebfedea0SLionel Sambuc lengths. DCE-STYLE data is also padded so remove if (1 || ...) 1128*ebfedea0SLionel Sambuc code. 1129*ebfedea0SLionel Sambuc 1130*ebfedea0SLionel Sambuc * krb5/wrap.c (_gsskrb5_wrap_size_limit): use 1131*ebfedea0SLionel Sambuc _gssapi_wrap_size_arcfour for arcfour 1132*ebfedea0SLionel Sambuc 1133*ebfedea0SLionel Sambuc * krb5/arcfour.c: Move _gssapi_wrap_size_arcfour here. 1134*ebfedea0SLionel Sambuc 1135*ebfedea0SLionel Sambuc * Makefile.am: Split all mech to diffrent mechsrc variables. 1136*ebfedea0SLionel Sambuc 1137*ebfedea0SLionel Sambuc * spnego/context_stubs.c: Make internal function static (and 1138*ebfedea0SLionel Sambuc rename). 1139*ebfedea0SLionel Sambuc 1140*ebfedea0SLionel Sambuc2006-10-01 Love Hörnquist Åstrand <lha@it.su.se> 1141*ebfedea0SLionel Sambuc 1142*ebfedea0SLionel Sambuc * krb5/inquire_cred.c: Fix "if (x) lock(y)" bug. From Harald 1143*ebfedea0SLionel Sambuc Barth. 1144*ebfedea0SLionel Sambuc 1145*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: Include <sys/param.h> for MAXHOSTNAMELEN. 1146*ebfedea0SLionel Sambuc 1147*ebfedea0SLionel Sambuc2006-09-25 Love Hörnquist Åstrand <lha@it.su.se> 1148*ebfedea0SLionel Sambuc 1149*ebfedea0SLionel Sambuc * krb5/arcfour.c: Add wrap support, interrop with itself but not 1150*ebfedea0SLionel Sambuc w2k3s-sp1 1151*ebfedea0SLionel Sambuc 1152*ebfedea0SLionel Sambuc * krb5/gsskrb5_locl.h: move the arcfour specific stuff to the 1153*ebfedea0SLionel Sambuc arcfour header. 1154*ebfedea0SLionel Sambuc 1155*ebfedea0SLionel Sambuc * krb5/arcfour.c: Support DCE-style unwrap, tested with 1156*ebfedea0SLionel Sambuc w2k3server-sp1. 1157*ebfedea0SLionel Sambuc 1158*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c (gss_accept_sec_context): if the 1159*ebfedea0SLionel Sambuc token doesn't start with [APPLICATION 0] SEQUENCE, lets assume its 1160*ebfedea0SLionel Sambuc a DCE-style kerberos 5 connection. XXX this needs to be made 1161*ebfedea0SLionel Sambuc better in cause we get another GSS-API protocol violating 1162*ebfedea0SLionel Sambuc protocol. It should be possible to detach the Kerberos DCE-style 1163*ebfedea0SLionel Sambuc since it starts with a AP-REQ PDU, but that have to wait for now. 1164*ebfedea0SLionel Sambuc 1165*ebfedea0SLionel Sambuc2006-09-22 Love Hörnquist Åstrand <lha@it.su.se> 1166*ebfedea0SLionel Sambuc 1167*ebfedea0SLionel Sambuc * gssapi.h: Add GSS_C flags from 1168*ebfedea0SLionel Sambuc draft-brezak-win2k-krb-rc4-hmac-04.txt. 1169*ebfedea0SLionel Sambuc 1170*ebfedea0SLionel Sambuc * krb5/delete_sec_context.c: Free service_keyblock and fwd_data, 1171*ebfedea0SLionel Sambuc indent. 1172*ebfedea0SLionel Sambuc 1173*ebfedea0SLionel Sambuc * krb5/accept_sec_context.c: Merge of the acceptor part from the 1174*ebfedea0SLionel Sambuc samba patch by Stefan Metzmacher and Andrew Bartlet. 1175*ebfedea0SLionel Sambuc 1176*ebfedea0SLionel Sambuc * krb5/init_sec_context.c: Add GSS_C_DCE_STYLE. 1177*ebfedea0SLionel Sambuc 1178*ebfedea0SLionel Sambuc * krb5/{init_sec_context.c,gsskrb5_locl.h}: merge most of the 1179*ebfedea0SLionel Sambuc initiator part from the samba patch by Stefan Metzmacher and 1180*ebfedea0SLionel Sambuc Andrew Bartlet (still missing DCE/RPC support) 1181*ebfedea0SLionel Sambuc 1182*ebfedea0SLionel Sambuc2006-08-28 Love Hörnquist Åstrand <lha@it.su.se> 1183*ebfedea0SLionel Sambuc 1184*ebfedea0SLionel Sambuc * gss.c (help): use sl_slc_help(). 1185*ebfedea0SLionel Sambuc 1186*ebfedea0SLionel Sambuc2006-07-22 Love Hörnquist Åstrand <lha@it.su.se> 1187*ebfedea0SLionel Sambuc 1188*ebfedea0SLionel Sambuc * gss-commands.in: rename command to supported-mechanisms 1189*ebfedea0SLionel Sambuc 1190*ebfedea0SLionel Sambuc * Makefile.am: Make gss objects depend on the slc built 1191*ebfedea0SLionel Sambuc gss-commands.h 1192*ebfedea0SLionel Sambuc 1193*ebfedea0SLionel Sambuc2006-07-20 Love Hörnquist Åstrand <lha@it.su.se> 1194*ebfedea0SLionel Sambuc 1195*ebfedea0SLionel Sambuc * gss-commands.in: add slc commands for gss 1196*ebfedea0SLionel Sambuc 1197*ebfedea0SLionel Sambuc * krb5/gsskrb5_locl.h: Remove dup prototype of _gsskrb5_init() 1198*ebfedea0SLionel Sambuc 1199*ebfedea0SLionel Sambuc * Makefile.am: Add test_cfx 1200*ebfedea0SLionel Sambuc 1201*ebfedea0SLionel Sambuc * krb5/external.c: add GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X 1202*ebfedea0SLionel Sambuc 1203*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c: catch 1204*ebfedea0SLionel Sambuc GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X 1205*ebfedea0SLionel Sambuc 1206*ebfedea0SLionel Sambuc * krb5/accept_sec_context.c: reimplement 1207*ebfedea0SLionel Sambuc gsskrb5_register_acceptor_identity 1208*ebfedea0SLionel Sambuc 1209*ebfedea0SLionel Sambuc * mech/gss_krb5.c: implement gsskrb5_register_acceptor_identity 1210*ebfedea0SLionel Sambuc 1211*ebfedea0SLionel Sambuc * mech/gss_inquire_mechs_for_name.c: call _gss_load_mech 1212*ebfedea0SLionel Sambuc 1213*ebfedea0SLionel Sambuc * mech/gss_inquire_cred.c (gss_inquire_cred): call _gss_load_mech 1214*ebfedea0SLionel Sambuc 1215*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c: Make _gss_load_mech() atomic and run 1216*ebfedea0SLionel Sambuc only once, this have the side effect that _gss_mechs and 1217*ebfedea0SLionel Sambuc _gss_mech_oids is only initialized once, so if just the users of 1218*ebfedea0SLionel Sambuc these two global variables calls _gss_load_mech() first, it will 1219*ebfedea0SLionel Sambuc act as a barrier and make sure the variables are never changed and 1220*ebfedea0SLionel Sambuc we don't need to lock them. 1221*ebfedea0SLionel Sambuc 1222*ebfedea0SLionel Sambuc * mech/utils.h: no need to mark functions extern. 1223*ebfedea0SLionel Sambuc 1224*ebfedea0SLionel Sambuc * mech/name.h: no need to mark _gss_find_mn extern. 1225*ebfedea0SLionel Sambuc 1226*ebfedea0SLionel Sambuc2006-07-19 Love Hörnquist Åstrand <lha@it.su.se> 1227*ebfedea0SLionel Sambuc 1228*ebfedea0SLionel Sambuc * krb5/cfx.c: Redo the wrap length calculations. 1229*ebfedea0SLionel Sambuc 1230*ebfedea0SLionel Sambuc * krb5/test_cfx.c: test max_wrap_size in cfx.c 1231*ebfedea0SLionel Sambuc 1232*ebfedea0SLionel Sambuc * mech/gss_display_status.c: Handle more error codes. 1233*ebfedea0SLionel Sambuc 1234*ebfedea0SLionel Sambuc2006-07-07 Love Hörnquist Åstrand <lha@it.su.se> 1235*ebfedea0SLionel Sambuc 1236*ebfedea0SLionel Sambuc * mech/mech_locl.h: Include <krb5-types.h> and "mechqueue.h" 1237*ebfedea0SLionel Sambuc 1238*ebfedea0SLionel Sambuc * mech/mechqueue.h: Add SLIST macros. 1239*ebfedea0SLionel Sambuc 1240*ebfedea0SLionel Sambuc * krb5/inquire_context.c: Don't free return values on success. 1241*ebfedea0SLionel Sambuc 1242*ebfedea0SLionel Sambuc * krb5/inquire_cred.c (_gsskrb5_inquire_cred): When cred provided 1243*ebfedea0SLionel Sambuc is the default cred, acquire the acceptor cred and initator cred 1244*ebfedea0SLionel Sambuc in two diffrent steps and then query them for the information, 1245*ebfedea0SLionel Sambuc this way, the code wont fail if there are no keytab, but there is 1246*ebfedea0SLionel Sambuc a credential cache. 1247*ebfedea0SLionel Sambuc 1248*ebfedea0SLionel Sambuc * mech/gss_inquire_cred.c: move the check if we found any cred 1249*ebfedea0SLionel Sambuc where it matter for both cases 1250*ebfedea0SLionel Sambuc (default cred and provided cred) 1251*ebfedea0SLionel Sambuc 1252*ebfedea0SLionel Sambuc * mech/gss_init_sec_context.c: If the desired mechanism can't 1253*ebfedea0SLionel Sambuc convert the name to a MN, fail with GSS_S_BAD_NAME rather then a 1254*ebfedea0SLionel Sambuc NULL de-reference. 1255*ebfedea0SLionel Sambuc 1256*ebfedea0SLionel Sambuc2006-07-06 Love Hörnquist Åstrand <lha@it.su.se> 1257*ebfedea0SLionel Sambuc 1258*ebfedea0SLionel Sambuc * spnego/external.c: readd gss_spnego_inquire_names_for_mech 1259*ebfedea0SLionel Sambuc 1260*ebfedea0SLionel Sambuc * spnego/spnego_locl.h: reimplement 1261*ebfedea0SLionel Sambuc gss_spnego_inquire_names_for_mech add support function 1262*ebfedea0SLionel Sambuc _gss_spnego_supported_mechs 1263*ebfedea0SLionel Sambuc 1264*ebfedea0SLionel Sambuc * spnego/context_stubs.h: reimplement 1265*ebfedea0SLionel Sambuc gss_spnego_inquire_names_for_mech add support function 1266*ebfedea0SLionel Sambuc _gss_spnego_supported_mechs 1267*ebfedea0SLionel Sambuc 1268*ebfedea0SLionel Sambuc * spnego/context_stubs.c: drop gss_spnego_indicate_mechs 1269*ebfedea0SLionel Sambuc 1270*ebfedea0SLionel Sambuc * mech/gss_indicate_mechs.c: if the underlaying mech doesn't 1271*ebfedea0SLionel Sambuc support gss_indicate_mechs, use the oid in the mechswitch 1272*ebfedea0SLionel Sambuc structure 1273*ebfedea0SLionel Sambuc 1274*ebfedea0SLionel Sambuc * spnego/external.c: let the mech glue layer implement 1275*ebfedea0SLionel Sambuc gss_indicate_mechs 1276*ebfedea0SLionel Sambuc 1277*ebfedea0SLionel Sambuc * spnego/cred_stubs.c (gss_spnego_acquire_cred): don't care about 1278*ebfedea0SLionel Sambuc desired_mechs, get our own list with indicate_mechs and remove 1279*ebfedea0SLionel Sambuc ourself. 1280*ebfedea0SLionel Sambuc 1281*ebfedea0SLionel Sambuc2006-07-05 Love Hörnquist Åstrand <lha@it.su.se> 1282*ebfedea0SLionel Sambuc 1283*ebfedea0SLionel Sambuc * spnego/external.c: remove gss_spnego_inquire_names_for_mech, let 1284*ebfedea0SLionel Sambuc the mechglue layer implement it 1285*ebfedea0SLionel Sambuc 1286*ebfedea0SLionel Sambuc * spnego/context_stubs.c: remove gss_spnego_inquire_names_for_mech, let 1287*ebfedea0SLionel Sambuc the mechglue layer implement it 1288*ebfedea0SLionel Sambuc 1289*ebfedea0SLionel Sambuc * spnego/spnego_locl.c: remove gss_spnego_inquire_names_for_mech, let 1290*ebfedea0SLionel Sambuc the mechglue layer implement it 1291*ebfedea0SLionel Sambuc 1292*ebfedea0SLionel Sambuc2006-07-01 Love Hörnquist Åstrand <lha@it.su.se> 1293*ebfedea0SLionel Sambuc 1294*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c: fix argument to gss_release_cred 1295*ebfedea0SLionel Sambuc 1296*ebfedea0SLionel Sambuc2006-06-30 Love Hörnquist Åstrand <lha@it.su.se> 1297*ebfedea0SLionel Sambuc 1298*ebfedea0SLionel Sambuc * krb5/init_sec_context.c: Make work on compilers that are 1299*ebfedea0SLionel Sambuc somewhat more picky then gcc4 (like gcc2.95) 1300*ebfedea0SLionel Sambuc 1301*ebfedea0SLionel Sambuc * krb5/init_sec_context.c (do_delegation): use KDCOptions2int to 1302*ebfedea0SLionel Sambuc convert fwd_flags to an integer, since otherwise int2KDCOptions in 1303*ebfedea0SLionel Sambuc krb5_get_forwarded_creds wont do the right thing. 1304*ebfedea0SLionel Sambuc 1305*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c (gss_set_cred_option): free memory on 1306*ebfedea0SLionel Sambuc failure 1307*ebfedea0SLionel Sambuc 1308*ebfedea0SLionel Sambuc * krb5/set_sec_context_option.c (_gsskrb5_set_sec_context_option): 1309*ebfedea0SLionel Sambuc init global kerberos context 1310*ebfedea0SLionel Sambuc 1311*ebfedea0SLionel Sambuc * krb5/set_cred_option.c (_gsskrb5_set_cred_option): init global 1312*ebfedea0SLionel Sambuc kerberos context 1313*ebfedea0SLionel Sambuc 1314*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c: Insert the delegated sub cred on 1315*ebfedea0SLionel Sambuc the delegated cred handle, not cred handle 1316*ebfedea0SLionel Sambuc 1317*ebfedea0SLionel Sambuc * mech/gss_accept_sec_context.c (gss_accept_sec_context): handle 1318*ebfedea0SLionel Sambuc the case where ret_flags == NULL 1319*ebfedea0SLionel Sambuc 1320*ebfedea0SLionel Sambuc * mech/gss_mech_switch.c (add_builtin): set 1321*ebfedea0SLionel Sambuc _gss_mech_switch->gm_mech_oid 1322*ebfedea0SLionel Sambuc 1323*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c (gss_set_cred_option): laod mechs 1324*ebfedea0SLionel Sambuc 1325*ebfedea0SLionel Sambuc * test_cred.c (gss_print_errors): don't try to print error when 1326*ebfedea0SLionel Sambuc gss_display_status failed 1327*ebfedea0SLionel Sambuc 1328*ebfedea0SLionel Sambuc * Makefile.am: Add mech/gss_release_oid.c 1329*ebfedea0SLionel Sambuc 1330*ebfedea0SLionel Sambuc * mech/gss_release_oid.c: Add gss_release_oid, reverse of 1331*ebfedea0SLionel Sambuc gss_duplicate_oid 1332*ebfedea0SLionel Sambuc 1333*ebfedea0SLionel Sambuc * spnego/compat.c: preferred_mech_type was allocated with 1334*ebfedea0SLionel Sambuc gss_duplicate_oid in one place and assigned static varianbles a 1335*ebfedea0SLionel Sambuc the second place. change that static assignement to 1336*ebfedea0SLionel Sambuc gss_duplicate_oid and bring back gss_release_oid. 1337*ebfedea0SLionel Sambuc 1338*ebfedea0SLionel Sambuc * spnego/compat.c (_gss_spnego_delete_sec_context): don't release 1339*ebfedea0SLionel Sambuc preferred_mech_type and negotiated_mech_type, they where never 1340*ebfedea0SLionel Sambuc allocated from the begining. 1341*ebfedea0SLionel Sambuc 1342*ebfedea0SLionel Sambuc2006-06-29 Love Hörnquist Åstrand <lha@it.su.se> 1343*ebfedea0SLionel Sambuc 1344*ebfedea0SLionel Sambuc * mech/gss_import_name.c (gss_import_name): avoid 1345*ebfedea0SLionel Sambuc type-punned/strict aliasing rules 1346*ebfedea0SLionel Sambuc 1347*ebfedea0SLionel Sambuc * mech/gss_add_cred.c: avoid type-punned/strict aliasing rules 1348*ebfedea0SLionel Sambuc 1349*ebfedea0SLionel Sambuc * gssapi.h: Make gss_name_t an opaque type. 1350*ebfedea0SLionel Sambuc 1351*ebfedea0SLionel Sambuc * krb5: make gss_name_t an opaque type 1352*ebfedea0SLionel Sambuc 1353*ebfedea0SLionel Sambuc * krb5/set_cred_option.c: Add 1354*ebfedea0SLionel Sambuc 1355*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c (gss_set_cred_option): support the 1356*ebfedea0SLionel Sambuc case where *cred_handle == NULL 1357*ebfedea0SLionel Sambuc 1358*ebfedea0SLionel Sambuc * mech/gss_krb5.c (gss_krb5_import_cred): make sure cred is 1359*ebfedea0SLionel Sambuc GSS_C_NO_CREDENTIAL on failure. 1360*ebfedea0SLionel Sambuc 1361*ebfedea0SLionel Sambuc * mech/gss_acquire_cred.c (gss_acquire_cred): if desired_mechs is 1362*ebfedea0SLionel Sambuc NO_OID_SET, there is a need to load the mechs, so always do that. 1363*ebfedea0SLionel Sambuc 1364*ebfedea0SLionel Sambuc2006-06-28 Love Hörnquist Åstrand <lha@it.su.se> 1365*ebfedea0SLionel Sambuc 1366*ebfedea0SLionel Sambuc * krb5/inquire_cred_by_oid.c: Reimplement GSS_KRB5_COPY_CCACHE_X 1367*ebfedea0SLionel Sambuc to instead pass a fullname to the credential, then resolve and 1368*ebfedea0SLionel Sambuc copy out the content, and then close the cred. 1369*ebfedea0SLionel Sambuc 1370*ebfedea0SLionel Sambuc * mech/gss_krb5.c: Reimplement GSS_KRB5_COPY_CCACHE_X to instead 1371*ebfedea0SLionel Sambuc pass a fullname to the credential, then resolve and copy out the 1372*ebfedea0SLionel Sambuc content, and then close the cred. 1373*ebfedea0SLionel Sambuc 1374*ebfedea0SLionel Sambuc * krb5/inquire_cred_by_oid.c: make "work", GSS_KRB5_COPY_CCACHE_X 1375*ebfedea0SLionel Sambuc interface needs to be re-done, currently its utterly broken. 1376*ebfedea0SLionel Sambuc 1377*ebfedea0SLionel Sambuc * mech/gss_set_cred_option.c: Make work. 1378*ebfedea0SLionel Sambuc 1379*ebfedea0SLionel Sambuc * krb5/external.c: Add _gsskrb5_set_{sec_context,cred}_option 1380*ebfedea0SLionel Sambuc 1381*ebfedea0SLionel Sambuc * mech/gss_krb5.c (gss_krb5_import_cred): implement 1382*ebfedea0SLionel Sambuc 1383*ebfedea0SLionel Sambuc * Makefile.am: Add gss_set_{sec_context,cred}_option and sort 1384*ebfedea0SLionel Sambuc 1385*ebfedea0SLionel Sambuc * mech/gss_set_{sec_context,cred}_option.c: add 1386*ebfedea0SLionel Sambuc 1387*ebfedea0SLionel Sambuc * gssapi.h: Add GSS_KRB5_IMPORT_CRED_X 1388*ebfedea0SLionel Sambuc 1389*ebfedea0SLionel Sambuc * test_*.c: make compile again 1390*ebfedea0SLionel Sambuc 1391*ebfedea0SLionel Sambuc * Makefile.am: Add lib dependencies and test programs 1392*ebfedea0SLionel Sambuc 1393*ebfedea0SLionel Sambuc * spnego: remove dependency on libkrb5 1394*ebfedea0SLionel Sambuc 1395*ebfedea0SLionel Sambuc * mech: Bug fixes, cleanup, compiler warnings, restructure code. 1396*ebfedea0SLionel Sambuc 1397*ebfedea0SLionel Sambuc * spnego: Rename gss_context_id_t and gss_cred_id_t to local names 1398*ebfedea0SLionel Sambuc 1399*ebfedea0SLionel Sambuc * krb5: repro copy the krb5 files here 1400*ebfedea0SLionel Sambuc 1401*ebfedea0SLionel Sambuc * mech: import Doug Rabson mechglue from freebsd 1402*ebfedea0SLionel Sambuc 1403*ebfedea0SLionel Sambuc * spnego: Import Luke Howard's SPNEGO from the mechglue branch 1404*ebfedea0SLionel Sambuc 1405*ebfedea0SLionel Sambuc2006-06-22 Love Hörnquist Åstrand <lha@it.su.se> 1406*ebfedea0SLionel Sambuc 1407*ebfedea0SLionel Sambuc * gssapi.h: Add oid_to_str. 1408*ebfedea0SLionel Sambuc 1409*ebfedea0SLionel Sambuc * Makefile.am: add oid_to_str and test_oid 1410*ebfedea0SLionel Sambuc 1411*ebfedea0SLionel Sambuc * oid_to_str.c: Add gss_oid_to_str 1412*ebfedea0SLionel Sambuc 1413*ebfedea0SLionel Sambuc * test_oid.c: Add test for gss_oid_to_str() 1414*ebfedea0SLionel Sambuc 1415*ebfedea0SLionel Sambuc2006-05-13 Love Hörnquist Åstrand <lha@it.su.se> 1416*ebfedea0SLionel Sambuc 1417*ebfedea0SLionel Sambuc * verify_mic.c: Less pointer signedness warnings. 1418*ebfedea0SLionel Sambuc 1419*ebfedea0SLionel Sambuc * unwrap.c: Less pointer signedness warnings. 1420*ebfedea0SLionel Sambuc 1421*ebfedea0SLionel Sambuc * arcfour.c: Less pointer signedness warnings. 1422*ebfedea0SLionel Sambuc 1423*ebfedea0SLionel Sambuc * gssapi_locl.h: Use const void * to instead of unsigned char * to 1424*ebfedea0SLionel Sambuc avoid pointer signedness warnings. 1425*ebfedea0SLionel Sambuc 1426*ebfedea0SLionel Sambuc * encapsulate.c: Use const void * to instead of unsigned char * to 1427*ebfedea0SLionel Sambuc avoid pointer signedness warnings. 1428*ebfedea0SLionel Sambuc 1429*ebfedea0SLionel Sambuc * decapsulate.c: Use const void * to instead of unsigned char * to 1430*ebfedea0SLionel Sambuc avoid pointer signedness warnings. 1431*ebfedea0SLionel Sambuc 1432*ebfedea0SLionel Sambuc * decapsulate.c: Less pointer signedness warnings. 1433*ebfedea0SLionel Sambuc 1434*ebfedea0SLionel Sambuc * cfx.c: Less pointer signedness warnings. 1435*ebfedea0SLionel Sambuc 1436*ebfedea0SLionel Sambuc * init_sec_context.c: Less pointer signedness warnings (partly by 1437*ebfedea0SLionel Sambuc using the new asn.1 CHOICE decoder) 1438*ebfedea0SLionel Sambuc 1439*ebfedea0SLionel Sambuc * import_sec_context.c: Less pointer signedness warnings. 1440*ebfedea0SLionel Sambuc 1441*ebfedea0SLionel Sambuc2006-05-09 Love Hörnquist Åstrand <lha@it.su.se> 1442*ebfedea0SLionel Sambuc 1443*ebfedea0SLionel Sambuc * accept_sec_context.c (gsskrb5_is_cfx): always set is_cfx. From 1444*ebfedea0SLionel Sambuc Andrew Abartlet. 1445*ebfedea0SLionel Sambuc 1446*ebfedea0SLionel Sambuc2006-05-08 Love Hörnquist Åstrand <lha@it.su.se> 1447*ebfedea0SLionel Sambuc 1448*ebfedea0SLionel Sambuc * get_mic.c (mic_des3): make sure message_buffer doesn't point to 1449*ebfedea0SLionel Sambuc free()ed memory on failure. Pointed out by IBM checker. 1450*ebfedea0SLionel Sambuc 1451*ebfedea0SLionel Sambuc2006-05-05 Love Hörnquist Åstrand <lha@it.su.se> 1452*ebfedea0SLionel Sambuc 1453*ebfedea0SLionel Sambuc * Rename u_intXX_t to uintXX_t 1454*ebfedea0SLionel Sambuc 1455*ebfedea0SLionel Sambuc2006-05-04 Love Hörnquist Åstrand <lha@it.su.se> 1456*ebfedea0SLionel Sambuc 1457*ebfedea0SLionel Sambuc * cfx.c: Less pointer signedness warnings. 1458*ebfedea0SLionel Sambuc 1459*ebfedea0SLionel Sambuc * arcfour.c: Avoid pointer signedness warnings. 1460*ebfedea0SLionel Sambuc 1461*ebfedea0SLionel Sambuc * gssapi_locl.h (gssapi_decode_*): make data argument const void * 1462*ebfedea0SLionel Sambuc 1463*ebfedea0SLionel Sambuc * 8003.c (gssapi_decode_*): make data argument const void * 1464*ebfedea0SLionel Sambuc 1465*ebfedea0SLionel Sambuc2006-04-12 Love Hörnquist Åstrand <lha@it.su.se> 1466*ebfedea0SLionel Sambuc 1467*ebfedea0SLionel Sambuc * export_sec_context.c: Export sequence order element. From Wynn 1468*ebfedea0SLionel Sambuc Wilkes <wynn.wilkes@quest.com>. 1469*ebfedea0SLionel Sambuc 1470*ebfedea0SLionel Sambuc * import_sec_context.c: Import sequence order element. From Wynn 1471*ebfedea0SLionel Sambuc Wilkes <wynn.wilkes@quest.com>. 1472*ebfedea0SLionel Sambuc 1473*ebfedea0SLionel Sambuc * sequence.c (_gssapi_msg_order_import,_gssapi_msg_order_export): 1474*ebfedea0SLionel Sambuc New functions, used by {import,export}_sec_context. From Wynn 1475*ebfedea0SLionel Sambuc Wilkes <wynn.wilkes@quest.com>. 1476*ebfedea0SLionel Sambuc 1477*ebfedea0SLionel Sambuc * test_sequence.c: Add test for import/export sequence. 1478*ebfedea0SLionel Sambuc 1479*ebfedea0SLionel Sambuc2006-04-09 Love Hörnquist Åstrand <lha@it.su.se> 1480*ebfedea0SLionel Sambuc 1481*ebfedea0SLionel Sambuc * add_cred.c: Check that cred != GSS_C_NO_CREDENTIAL, this is a 1482*ebfedea0SLionel Sambuc standard conformance failure, but much better then a crash. 1483*ebfedea0SLionel Sambuc 1484*ebfedea0SLionel Sambuc2006-04-02 Love Hörnquist Åstrand <lha@it.su.se> 1485*ebfedea0SLionel Sambuc 1486*ebfedea0SLionel Sambuc * get_mic.c (get_mic*)_: make sure message_token is cleaned on 1487*ebfedea0SLionel Sambuc error, found by IBM checker. 1488*ebfedea0SLionel Sambuc 1489*ebfedea0SLionel Sambuc * wrap.c (wrap*): Reset output_buffer on error, found by IBM 1490*ebfedea0SLionel Sambuc checker. 1491*ebfedea0SLionel Sambuc 1492*ebfedea0SLionel Sambuc2006-02-15 Love Hörnquist Åstrand <lha@it.su.se> 1493*ebfedea0SLionel Sambuc 1494*ebfedea0SLionel Sambuc * import_name.c: Accept both GSS_C_NT_HOSTBASED_SERVICE and 1495*ebfedea0SLionel Sambuc GSS_C_NT_HOSTBASED_SERVICE_X as nametype for hostbased names. 1496*ebfedea0SLionel Sambuc 1497*ebfedea0SLionel Sambuc2006-01-16 Love Hörnquist Åstrand <lha@it.su.se> 1498*ebfedea0SLionel Sambuc 1499*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): if the context 1500*ebfedea0SLionel Sambuc handle is GSS_C_NO_CONTEXT, don't fall over. 1501*ebfedea0SLionel Sambuc 1502*ebfedea0SLionel Sambuc2005-12-12 Love Hörnquist Åstrand <lha@it.su.se> 1503*ebfedea0SLionel Sambuc 1504*ebfedea0SLionel Sambuc * gss_acquire_cred.3: Replace gss_krb5_import_ccache with 1505*ebfedea0SLionel Sambuc gss_krb5_import_cred and add more references 1506*ebfedea0SLionel Sambuc 1507*ebfedea0SLionel Sambuc2005-12-05 Love Hörnquist Åstrand <lha@it.su.se> 1508*ebfedea0SLionel Sambuc 1509*ebfedea0SLionel Sambuc * gssapi.h: Change gss_krb5_import_ccache to gss_krb5_import_cred, 1510*ebfedea0SLionel Sambuc it can handle keytabs too. 1511*ebfedea0SLionel Sambuc 1512*ebfedea0SLionel Sambuc * add_cred.c (gss_add_cred): avoid deadlock 1513*ebfedea0SLionel Sambuc 1514*ebfedea0SLionel Sambuc * context_time.c (gssapi_lifetime_left): define the 0 lifetime as 1515*ebfedea0SLionel Sambuc GSS_C_INDEFINITE. 1516*ebfedea0SLionel Sambuc 1517*ebfedea0SLionel Sambuc2005-12-01 Love Hörnquist Åstrand <lha@it.su.se> 1518*ebfedea0SLionel Sambuc 1519*ebfedea0SLionel Sambuc * acquire_cred.c (acquire_acceptor_cred): only check if principal 1520*ebfedea0SLionel Sambuc exists if we got called with principal as an argument. 1521*ebfedea0SLionel Sambuc 1522*ebfedea0SLionel Sambuc * acquire_cred.c (acquire_acceptor_cred): check that the acceptor 1523*ebfedea0SLionel Sambuc exists in the keytab before returning ok. 1524*ebfedea0SLionel Sambuc 1525*ebfedea0SLionel Sambuc2005-11-29 Love Hörnquist Åstrand <lha@it.su.se> 1526*ebfedea0SLionel Sambuc 1527*ebfedea0SLionel Sambuc * copy_ccache.c (gss_krb5_import_cred): fix buglet, from Andrew 1528*ebfedea0SLionel Sambuc Bartlett. 1529*ebfedea0SLionel Sambuc 1530*ebfedea0SLionel Sambuc2005-11-25 Love Hörnquist Åstrand <lha@it.su.se> 1531*ebfedea0SLionel Sambuc 1532*ebfedea0SLionel Sambuc * test_kcred.c: Rename gss_krb5_import_ccache to 1533*ebfedea0SLionel Sambuc gss_krb5_import_cred. 1534*ebfedea0SLionel Sambuc 1535*ebfedea0SLionel Sambuc * copy_ccache.c: Rename gss_krb5_import_ccache to 1536*ebfedea0SLionel Sambuc gss_krb5_import_cred and let it grow code to handle keytabs too. 1537*ebfedea0SLionel Sambuc 1538*ebfedea0SLionel Sambuc2005-11-02 Love Hörnquist Åstrand <lha@it.su.se> 1539*ebfedea0SLionel Sambuc 1540*ebfedea0SLionel Sambuc * init_sec_context.c: Change sematics of ok-as-delegate to match 1541*ebfedea0SLionel Sambuc windows if 1542*ebfedea0SLionel Sambuc [gssapi]realm/ok-as-delegate=true is set, otherwise keep old 1543*ebfedea0SLionel Sambuc sematics. 1544*ebfedea0SLionel Sambuc 1545*ebfedea0SLionel Sambuc * release_cred.c (gss_release_cred): use 1546*ebfedea0SLionel Sambuc GSS_CF_DESTROY_CRED_ON_RELEASE to decide if the cache should be 1547*ebfedea0SLionel Sambuc krb5_cc_destroy-ed 1548*ebfedea0SLionel Sambuc 1549*ebfedea0SLionel Sambuc * acquire_cred.c (acquire_initiator_cred): 1550*ebfedea0SLionel Sambuc GSS_CF_DESTROY_CRED_ON_RELEASE on created credentials. 1551*ebfedea0SLionel Sambuc 1552*ebfedea0SLionel Sambuc * accept_sec_context.c (gsskrb5_accept_delegated_token): rewrite 1553*ebfedea0SLionel Sambuc to use gss_krb5_import_ccache 1554*ebfedea0SLionel Sambuc 1555*ebfedea0SLionel Sambuc2005-11-01 Love Hörnquist Åstrand <lha@it.su.se> 1556*ebfedea0SLionel Sambuc 1557*ebfedea0SLionel Sambuc * arcfour.c: Remove signedness warnings. 1558*ebfedea0SLionel Sambuc 1559*ebfedea0SLionel Sambuc2005-10-31 Love Hörnquist Åstrand <lha@it.su.se> 1560*ebfedea0SLionel Sambuc 1561*ebfedea0SLionel Sambuc * gss_acquire_cred.3: Document that gss_krb5_import_ccache is copy 1562*ebfedea0SLionel Sambuc by reference. 1563*ebfedea0SLionel Sambuc 1564*ebfedea0SLionel Sambuc * copy_ccache.c (gss_krb5_import_ccache): Instead of making a copy 1565*ebfedea0SLionel Sambuc of the ccache, make a reference by getting the name and resolving 1566*ebfedea0SLionel Sambuc the name. This way the cache is shared, this flipp side is of 1567*ebfedea0SLionel Sambuc course that if someone calls krb5_cc_destroy the cache is lost for 1568*ebfedea0SLionel Sambuc everyone. 1569*ebfedea0SLionel Sambuc 1570*ebfedea0SLionel Sambuc * test_kcred.c: Remove memory leaks. 1571*ebfedea0SLionel Sambuc 1572*ebfedea0SLionel Sambuc2005-10-26 Love Hörnquist Åstrand <lha@it.su.se> 1573*ebfedea0SLionel Sambuc 1574*ebfedea0SLionel Sambuc * Makefile.am: build test_kcred 1575*ebfedea0SLionel Sambuc 1576*ebfedea0SLionel Sambuc * gss_acquire_cred.3: Document gss_krb5_import_ccache 1577*ebfedea0SLionel Sambuc 1578*ebfedea0SLionel Sambuc * gssapi.3: Sort and add gss_krb5_import_ccache. 1579*ebfedea0SLionel Sambuc 1580*ebfedea0SLionel Sambuc * acquire_cred.c (_gssapi_krb5_ccache_lifetime): break out code 1581*ebfedea0SLionel Sambuc used to extract lifetime from a credential cache 1582*ebfedea0SLionel Sambuc 1583*ebfedea0SLionel Sambuc * gssapi_locl.h: Add _gssapi_krb5_ccache_lifetime, used to extract 1584*ebfedea0SLionel Sambuc lifetime from a credential cache. 1585*ebfedea0SLionel Sambuc 1586*ebfedea0SLionel Sambuc * gssapi.h: add gss_krb5_import_ccache, reverse of 1587*ebfedea0SLionel Sambuc gss_krb5_copy_ccache 1588*ebfedea0SLionel Sambuc 1589*ebfedea0SLionel Sambuc * copy_ccache.c: add gss_krb5_import_ccache, reverse of 1590*ebfedea0SLionel Sambuc gss_krb5_copy_ccache 1591*ebfedea0SLionel Sambuc 1592*ebfedea0SLionel Sambuc * test_kcred.c: test gss_krb5_import_ccache 1593*ebfedea0SLionel Sambuc 1594*ebfedea0SLionel Sambuc2005-10-21 Love Hörnquist Åstrand <lha@it.su.se> 1595*ebfedea0SLionel Sambuc 1596*ebfedea0SLionel Sambuc * acquire_cred.c (acquire_initiator_cred): use krb5_cc_cache_match 1597*ebfedea0SLionel Sambuc to find a matching creditial cache, if that failes, fallback to 1598*ebfedea0SLionel Sambuc the default cache. 1599*ebfedea0SLionel Sambuc 1600*ebfedea0SLionel Sambuc2005-10-12 Love Hörnquist Åstrand <lha@it.su.se> 1601*ebfedea0SLionel Sambuc 1602*ebfedea0SLionel Sambuc * gssapi_locl.h: Add gssapi_krb5_set_status and 1603*ebfedea0SLionel Sambuc gssapi_krb5_clear_status 1604*ebfedea0SLionel Sambuc 1605*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_reply): Don't pass back raw Kerberos 1606*ebfedea0SLionel Sambuc errors, use GSS-API errors instead. From Michael B Allen. 1607*ebfedea0SLionel Sambuc 1608*ebfedea0SLionel Sambuc * display_status.c: Add gssapi_krb5_clear_status, 1609*ebfedea0SLionel Sambuc gssapi_krb5_set_status for handling error messages. 1610*ebfedea0SLionel Sambuc 1611*ebfedea0SLionel Sambuc2005-08-23 Love Hörnquist Åstrand <lha@it.su.se> 1612*ebfedea0SLionel Sambuc 1613*ebfedea0SLionel Sambuc * external.c: Use rk_UNCONST to avoid const warning. 1614*ebfedea0SLionel Sambuc 1615*ebfedea0SLionel Sambuc * display_status.c: Constify strings to avoid warnings. 1616*ebfedea0SLionel Sambuc 1617*ebfedea0SLionel Sambuc2005-08-11 Love Hörnquist Åstrand <lha@it.su.se> 1618*ebfedea0SLionel Sambuc 1619*ebfedea0SLionel Sambuc * init_sec_context.c: avoid warnings, update (c) 1620*ebfedea0SLionel Sambuc 1621*ebfedea0SLionel Sambuc2005-07-13 Love Hörnquist Åstrand <lha@it.su.se> 1622*ebfedea0SLionel Sambuc 1623*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_initial): use NegotiationToken 1624*ebfedea0SLionel Sambuc encoder now that we have one with the new asn1. compiler. 1625*ebfedea0SLionel Sambuc 1626*ebfedea0SLionel Sambuc * Makefile.am: the new asn.1 compiler includes the modules name in 1627*ebfedea0SLionel Sambuc the depend file 1628*ebfedea0SLionel Sambuc 1629*ebfedea0SLionel Sambuc2005-06-16 Love Hörnquist Åstrand <lha@it.su.se> 1630*ebfedea0SLionel Sambuc 1631*ebfedea0SLionel Sambuc * decapsulate.c: use rk_UNCONST 1632*ebfedea0SLionel Sambuc 1633*ebfedea0SLionel Sambuc * ccache_name.c: rename to avoid shadowing 1634*ebfedea0SLionel Sambuc 1635*ebfedea0SLionel Sambuc * gssapi_locl.h: give kret in GSSAPI_KRB5_INIT a more unique name 1636*ebfedea0SLionel Sambuc 1637*ebfedea0SLionel Sambuc * process_context_token.c: use rk_UNCONST to unconstify 1638*ebfedea0SLionel Sambuc 1639*ebfedea0SLionel Sambuc * test_cred.c: rename optind to optidx 1640*ebfedea0SLionel Sambuc 1641*ebfedea0SLionel Sambuc2005-05-30 Love Hörnquist Åstrand <lha@it.su.se> 1642*ebfedea0SLionel Sambuc 1643*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): honor ok-as-delegate if local 1644*ebfedea0SLionel Sambuc configuration approves 1645*ebfedea0SLionel Sambuc 1646*ebfedea0SLionel Sambuc * gssapi_locl.h: prototype for _gss_check_compat 1647*ebfedea0SLionel Sambuc 1648*ebfedea0SLionel Sambuc * compat.c: export check_compat as _gss_check_compat 1649*ebfedea0SLionel Sambuc 1650*ebfedea0SLionel Sambuc2005-05-29 Love Hörnquist Åstrand <lha@it.su.se> 1651*ebfedea0SLionel Sambuc 1652*ebfedea0SLionel Sambuc * init_sec_context.c: Prefix Der_class with ASN1_C_ to avoid 1653*ebfedea0SLionel Sambuc problems with system headerfiles that pollute the name space. 1654*ebfedea0SLionel Sambuc 1655*ebfedea0SLionel Sambuc * accept_sec_context.c: Prefix Der_class with ASN1_C_ to avoid 1656*ebfedea0SLionel Sambuc problems with system headerfiles that pollute the name space. 1657*ebfedea0SLionel Sambuc 1658*ebfedea0SLionel Sambuc2005-05-17 Love Hörnquist Åstrand <lha@it.su.se> 1659*ebfedea0SLionel Sambuc 1660*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): set 1661*ebfedea0SLionel Sambuc KRB5_AUTH_CONTEXT_CLEAR_FORWARDED_CRED (for java compatibility), 1662*ebfedea0SLionel Sambuc also while here, use krb5_auth_con_addflags 1663*ebfedea0SLionel Sambuc 1664*ebfedea0SLionel Sambuc2005-05-06 Love Hörnquist Åstrand <lha@it.su.se> 1665*ebfedea0SLionel Sambuc 1666*ebfedea0SLionel Sambuc * arcfour.c (_gssapi_wrap_arcfour): fix calculating the encap 1667*ebfedea0SLionel Sambuc length. From: Tom Maher <tmaher@eecs.berkeley.edu> 1668*ebfedea0SLionel Sambuc 1669*ebfedea0SLionel Sambuc2005-05-02 Dave Love <fx@gnu.org> 1670*ebfedea0SLionel Sambuc 1671*ebfedea0SLionel Sambuc * test_cred.c (main): Call setprogname. 1672*ebfedea0SLionel Sambuc 1673*ebfedea0SLionel Sambuc2005-04-27 Love Hörnquist Åstrand <lha@it.su.se> 1674*ebfedea0SLionel Sambuc 1675*ebfedea0SLionel Sambuc * prefix all sequence symbols with _, they are not part of the 1676*ebfedea0SLionel Sambuc GSS-API api. By comment from Wynn Wilkes <wynnw@vintela.com> 1677*ebfedea0SLionel Sambuc 1678*ebfedea0SLionel Sambuc2005-04-10 Love Hörnquist Åstrand <lha@it.su.se> 1679*ebfedea0SLionel Sambuc 1680*ebfedea0SLionel Sambuc * accept_sec_context.c: break out the processing of the delegated 1681*ebfedea0SLionel Sambuc credential to a separate function to make error handling easier, 1682*ebfedea0SLionel Sambuc move the credential handling to after other setup is done 1683*ebfedea0SLionel Sambuc 1684*ebfedea0SLionel Sambuc * test_sequence.c: make less verbose in case of success 1685*ebfedea0SLionel Sambuc 1686*ebfedea0SLionel Sambuc * Makefile.am: add test_sequence to TESTS 1687*ebfedea0SLionel Sambuc 1688*ebfedea0SLionel Sambuc2005-04-01 Love Hörnquist Åstrand <lha@it.su.se> 1689*ebfedea0SLionel Sambuc 1690*ebfedea0SLionel Sambuc * 8003.c (gssapi_krb5_verify_8003_checksum): check that cksum 1691*ebfedea0SLionel Sambuc isn't NULL From: Nicolas Pouvesle <npouvesle@tenablesecurity.com> 1692*ebfedea0SLionel Sambuc 1693*ebfedea0SLionel Sambuc2005-03-21 Love Hörnquist Åstrand <lha@it.su.se> 1694*ebfedea0SLionel Sambuc 1695*ebfedea0SLionel Sambuc * Makefile.am: use $(LIB_roken) 1696*ebfedea0SLionel Sambuc 1697*ebfedea0SLionel Sambuc2005-03-16 Love Hörnquist Åstrand <lha@it.su.se> 1698*ebfedea0SLionel Sambuc 1699*ebfedea0SLionel Sambuc * display_status.c (gssapi_krb5_set_error_string): pass in the 1700*ebfedea0SLionel Sambuc krb5_context to krb5_free_error_string 1701*ebfedea0SLionel Sambuc 1702*ebfedea0SLionel Sambuc2005-03-15 Love Hörnquist Åstrand <lha@it.su.se> 1703*ebfedea0SLionel Sambuc 1704*ebfedea0SLionel Sambuc * display_status.c (gssapi_krb5_set_error_string): don't misuse 1705*ebfedea0SLionel Sambuc the krb5_get_error_string api 1706*ebfedea0SLionel Sambuc 1707*ebfedea0SLionel Sambuc2005-03-01 Love Hörnquist Åstrand <lha@it.su.se> 1708*ebfedea0SLionel Sambuc 1709*ebfedea0SLionel Sambuc * compat.c (_gss_DES3_get_mic_compat): don't unlock mutex 1710*ebfedea0SLionel Sambuc here. Bug reported by Stefan Metzmacher <metze@samba.org> 1711*ebfedea0SLionel Sambuc 1712*ebfedea0SLionel Sambuc2005-02-21 Luke Howard <lukeh@padl.com> 1713*ebfedea0SLionel Sambuc 1714*ebfedea0SLionel Sambuc * init_sec_context.c: don't call krb5_get_credentials() with 1715*ebfedea0SLionel Sambuc KRB5_TC_MATCH_KEYTYPE, it can lead to the credentials cache 1716*ebfedea0SLionel Sambuc growing indefinitely as no key is found with KEYTYPE_NULL 1717*ebfedea0SLionel Sambuc 1718*ebfedea0SLionel Sambuc * compat.c: remove GSS_C_EXPECTING_MECH_LIST_MIC_FLAG, it is 1719*ebfedea0SLionel Sambuc no longer used (however the mechListMIC behaviour is broken, 1720*ebfedea0SLionel Sambuc rfc2478bis support requires the code in the mechglue branch) 1721*ebfedea0SLionel Sambuc 1722*ebfedea0SLionel Sambuc * init_sec_context.c: remove GSS_C_EXPECTING_MECH_LIST_MIC_FLAG 1723*ebfedea0SLionel Sambuc 1724*ebfedea0SLionel Sambuc * gssapi.h: remove GSS_C_EXPECTING_MECH_LIST_MIC_FLAG 1725*ebfedea0SLionel Sambuc 1726*ebfedea0SLionel Sambuc2005-01-05 Luke Howard <lukeh@padl.com> 1727*ebfedea0SLionel Sambuc 1728*ebfedea0SLionel Sambuc * 8003.c: use symbolic name for checksum type 1729*ebfedea0SLionel Sambuc 1730*ebfedea0SLionel Sambuc * accept_sec_context.c: allow client to indicate 1731*ebfedea0SLionel Sambuc that subkey should be used 1732*ebfedea0SLionel Sambuc 1733*ebfedea0SLionel Sambuc * acquire_cred.c: plug leak 1734*ebfedea0SLionel Sambuc 1735*ebfedea0SLionel Sambuc * get_mic.c: use gss_krb5_get_subkey() instead 1736*ebfedea0SLionel Sambuc of gss_krb5_get_{local,remote}key(), support 1737*ebfedea0SLionel Sambuc KEYTYPE_ARCFOUR_56 1738*ebfedea0SLionel Sambuc 1739*ebfedea0SLionel Sambuc * gssapi_local.c: use gss_krb5_get_subkey(), 1740*ebfedea0SLionel Sambuc support KEYTYPE_ARCFOUR_56 1741*ebfedea0SLionel Sambuc 1742*ebfedea0SLionel Sambuc * import_sec_context.c: plug leak 1743*ebfedea0SLionel Sambuc 1744*ebfedea0SLionel Sambuc * unwrap.c: use gss_krb5_get_subkey(), 1745*ebfedea0SLionel Sambuc support KEYTYPE_ARCFOUR_56 1746*ebfedea0SLionel Sambuc 1747*ebfedea0SLionel Sambuc * verify_mic.c: use gss_krb5_get_subkey(), 1748*ebfedea0SLionel Sambuc support KEYTYPE_ARCFOUR_56 1749*ebfedea0SLionel Sambuc 1750*ebfedea0SLionel Sambuc * wrap.c: use gss_krb5_get_subkey(), 1751*ebfedea0SLionel Sambuc support KEYTYPE_ARCFOUR_56 1752*ebfedea0SLionel Sambuc 1753*ebfedea0SLionel Sambuc2004-11-30 Love Hörnquist Åstrand <lha@it.su.se> 1754*ebfedea0SLionel Sambuc 1755*ebfedea0SLionel Sambuc * inquire_cred.c: Reverse order of HEIMDAL_MUTEX_unlock and 1756*ebfedea0SLionel Sambuc gss_release_cred to avoid deadlock, from Luke Howard 1757*ebfedea0SLionel Sambuc <lukeh@padl.com>. 1758*ebfedea0SLionel Sambuc 1759*ebfedea0SLionel Sambuc2004-09-06 Love Hörnquist Åstrand <lha@it.su.se> 1760*ebfedea0SLionel Sambuc 1761*ebfedea0SLionel Sambuc * gss_acquire_cred.3: gss_krb5_extract_authz_data_from_sec_context 1762*ebfedea0SLionel Sambuc was renamed to gsskrb5_extract_authz_data_from_sec_context 1763*ebfedea0SLionel Sambuc 1764*ebfedea0SLionel Sambuc2004-08-07 Love Hörnquist Åstrand <lha@it.su.se> 1765*ebfedea0SLionel Sambuc 1766*ebfedea0SLionel Sambuc * unwrap.c: mutex buglet, From: Luke Howard <lukeh@PADL.COM> 1767*ebfedea0SLionel Sambuc 1768*ebfedea0SLionel Sambuc * arcfour.c: mutex buglet, From: Luke Howard <lukeh@PADL.COM> 1769*ebfedea0SLionel Sambuc 1770*ebfedea0SLionel Sambuc2004-05-06 Love Hörnquist Åstrand <lha@it.su.se> 1771*ebfedea0SLionel Sambuc 1772*ebfedea0SLionel Sambuc * gssapi.3: spelling from Josef El-Rayes <josef@FreeBSD.org> while 1773*ebfedea0SLionel Sambuc here, write some text about the SPNEGO situation 1774*ebfedea0SLionel Sambuc 1775*ebfedea0SLionel Sambuc2004-04-08 Love Hörnquist Åstrand <lha@it.su.se> 1776*ebfedea0SLionel Sambuc 1777*ebfedea0SLionel Sambuc * cfx.c: s/CTXAcceptorSubkey/CFXAcceptorSubkey/ 1778*ebfedea0SLionel Sambuc 1779*ebfedea0SLionel Sambuc2004-04-07 Love Hörnquist Åstrand <lha@it.su.se> 1780*ebfedea0SLionel Sambuc 1781*ebfedea0SLionel Sambuc * gssapi.h: add GSS_C_EXPECTING_MECH_LIST_MIC_FLAG From: Luke 1782*ebfedea0SLionel Sambuc Howard <lukeh@padl.com> 1783*ebfedea0SLionel Sambuc 1784*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_reply): use 1785*ebfedea0SLionel Sambuc _gss_spnego_require_mechlist_mic to figure out if we need to check 1786*ebfedea0SLionel Sambuc MechListMIC; From: Luke Howard <lukeh@padl.com> 1787*ebfedea0SLionel Sambuc 1788*ebfedea0SLionel Sambuc * accept_sec_context.c (send_accept): use 1789*ebfedea0SLionel Sambuc _gss_spnego_require_mechlist_mic to figure out if we need to send 1790*ebfedea0SLionel Sambuc MechListMIC; From: Luke Howard <lukeh@padl.com> 1791*ebfedea0SLionel Sambuc 1792*ebfedea0SLionel Sambuc * gssapi_locl.h: add _gss_spnego_require_mechlist_mic 1793*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@padl.com> 1794*ebfedea0SLionel Sambuc 1795*ebfedea0SLionel Sambuc * compat.c: add _gss_spnego_require_mechlist_mic for compatibility 1796*ebfedea0SLionel Sambuc with MS SPNEGO, From: Luke Howard <lukeh@padl.com> 1797*ebfedea0SLionel Sambuc 1798*ebfedea0SLionel Sambuc2004-04-05 Love Hörnquist Åstrand <lha@it.su.se> 1799*ebfedea0SLionel Sambuc 1800*ebfedea0SLionel Sambuc * accept_sec_context.c (gsskrb5_is_cfx): krb5_keyblock->keytype is 1801*ebfedea0SLionel Sambuc an enctype, not keytype 1802*ebfedea0SLionel Sambuc 1803*ebfedea0SLionel Sambuc * accept_sec_context.c: use ASN1_MALLOC_ENCODE 1804*ebfedea0SLionel Sambuc 1805*ebfedea0SLionel Sambuc * init_sec_context.c: avoid the malloc loop and just allocate the 1806*ebfedea0SLionel Sambuc propper amount of data 1807*ebfedea0SLionel Sambuc 1808*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_initial): handle mech_token better 1809*ebfedea0SLionel Sambuc 1810*ebfedea0SLionel Sambuc2004-03-19 Love Hörnquist Åstrand <lha@it.su.se> 1811*ebfedea0SLionel Sambuc 1812*ebfedea0SLionel Sambuc * gssapi.h: add gss_krb5_get_tkt_flags 1813*ebfedea0SLionel Sambuc 1814*ebfedea0SLionel Sambuc * Makefile.am: add ticket_flags.c 1815*ebfedea0SLionel Sambuc 1816*ebfedea0SLionel Sambuc * ticket_flags.c: Get ticket-flags from acceptor ticket From: Luke 1817*ebfedea0SLionel Sambuc Howard <lukeh@PADL.COM> 1818*ebfedea0SLionel Sambuc 1819*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document gss_krb5_get_tkt_flags 1820*ebfedea0SLionel Sambuc 1821*ebfedea0SLionel Sambuc2004-03-14 Love Hörnquist Åstrand <lha@it.su.se> 1822*ebfedea0SLionel Sambuc 1823*ebfedea0SLionel Sambuc * acquire_cred.c (gss_acquire_cred): check usage before even 1824*ebfedea0SLionel Sambuc bothering to process it, add both keytab and initial tgt if 1825*ebfedea0SLionel Sambuc requested 1826*ebfedea0SLionel Sambuc 1827*ebfedea0SLionel Sambuc * wrap.c: support cfx, try to handle acceptor asserted subkey 1828*ebfedea0SLionel Sambuc 1829*ebfedea0SLionel Sambuc * unwrap.c: support cfx, try to handle acceptor asserted subkey 1830*ebfedea0SLionel Sambuc 1831*ebfedea0SLionel Sambuc * verify_mic.c: support cfx 1832*ebfedea0SLionel Sambuc 1833*ebfedea0SLionel Sambuc * get_mic.c: support cfx 1834*ebfedea0SLionel Sambuc 1835*ebfedea0SLionel Sambuc * test_sequence.c: handle changed signature of 1836*ebfedea0SLionel Sambuc gssapi_msg_order_create 1837*ebfedea0SLionel Sambuc 1838*ebfedea0SLionel Sambuc * import_sec_context.c: handle acceptor asserted subkey 1839*ebfedea0SLionel Sambuc 1840*ebfedea0SLionel Sambuc * init_sec_context.c: handle acceptor asserted subkey 1841*ebfedea0SLionel Sambuc 1842*ebfedea0SLionel Sambuc * accept_sec_context.c: handle acceptor asserted subkey 1843*ebfedea0SLionel Sambuc 1844*ebfedea0SLionel Sambuc * sequence.c: add dummy use_64 argument to gssapi_msg_order_create 1845*ebfedea0SLionel Sambuc 1846*ebfedea0SLionel Sambuc * gssapi_locl.h: add partial support for CFX 1847*ebfedea0SLionel Sambuc 1848*ebfedea0SLionel Sambuc * Makefile.am (noinst_PROGRAMS) += test_cred 1849*ebfedea0SLionel Sambuc 1850*ebfedea0SLionel Sambuc * test_cred.c: gssapi credential testing 1851*ebfedea0SLionel Sambuc 1852*ebfedea0SLionel Sambuc * test_acquire_cred.c: fix comment 1853*ebfedea0SLionel Sambuc 1854*ebfedea0SLionel Sambuc2004-03-07 Love Hörnquist Åstrand <lha@it.su.se> 1855*ebfedea0SLionel Sambuc 1856*ebfedea0SLionel Sambuc * arcfour.h: drop structures for message formats, no longer used 1857*ebfedea0SLionel Sambuc 1858*ebfedea0SLionel Sambuc * arcfour.c: comment describing message formats 1859*ebfedea0SLionel Sambuc 1860*ebfedea0SLionel Sambuc * accept_sec_context.c (spnego_accept_sec_context): make sure the 1861*ebfedea0SLionel Sambuc length of the choice element doesn't overrun us 1862*ebfedea0SLionel Sambuc 1863*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_reply): make sure the length of the 1864*ebfedea0SLionel Sambuc choice element doesn't overrun us 1865*ebfedea0SLionel Sambuc 1866*ebfedea0SLionel Sambuc * spnego.asn1: move NegotiationToken to avoid warning 1867*ebfedea0SLionel Sambuc 1868*ebfedea0SLionel Sambuc * spnego.asn1: uncomment NegotiationToken 1869*ebfedea0SLionel Sambuc 1870*ebfedea0SLionel Sambuc * Makefile.am: spnego_files += asn1_NegotiationToken.x 1871*ebfedea0SLionel Sambuc 1872*ebfedea0SLionel Sambuc2004-01-25 Love Hörnquist Åstrand <lha@it.su.se> 1873*ebfedea0SLionel Sambuc 1874*ebfedea0SLionel Sambuc * gssapi.h: add gss_krb5_ccache_name 1875*ebfedea0SLionel Sambuc 1876*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_SOURCES): += ccache_name.c 1877*ebfedea0SLionel Sambuc 1878*ebfedea0SLionel Sambuc * ccache_name.c (gss_krb5_ccache_name): help function enable to 1879*ebfedea0SLionel Sambuc set krb5 name, using out_name argument makes function no longer 1880*ebfedea0SLionel Sambuc thread-safe 1881*ebfedea0SLionel Sambuc 1882*ebfedea0SLionel Sambuc * gssapi.3: add missing gss_krb5_ references 1883*ebfedea0SLionel Sambuc 1884*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document gss_krb5_ccache_name 1885*ebfedea0SLionel Sambuc 1886*ebfedea0SLionel Sambuc2003-12-12 Love Hörnquist Åstrand <lha@it.su.se> 1887*ebfedea0SLionel Sambuc 1888*ebfedea0SLionel Sambuc * cfx.c: make rrc a modulus operation if its longer then the 1889*ebfedea0SLionel Sambuc length of the message, noticed by Sam Hartman 1890*ebfedea0SLionel Sambuc 1891*ebfedea0SLionel Sambuc2003-12-07 Love Hörnquist Åstrand <lha@it.su.se> 1892*ebfedea0SLionel Sambuc 1893*ebfedea0SLionel Sambuc * accept_sec_context.c: use krb5_auth_con_addflags 1894*ebfedea0SLionel Sambuc 1895*ebfedea0SLionel Sambuc2003-12-05 Love Hörnquist Åstrand <lha@it.su.se> 1896*ebfedea0SLionel Sambuc 1897*ebfedea0SLionel Sambuc * cfx.c: Wrap token id was in wrong order, found by Sam Hartman 1898*ebfedea0SLionel Sambuc 1899*ebfedea0SLionel Sambuc2003-12-04 Love Hörnquist Åstrand <lha@it.su.se> 1900*ebfedea0SLionel Sambuc 1901*ebfedea0SLionel Sambuc * cfx.c: add AcceptorSubkey (but no code understand it yet) ignore 1902*ebfedea0SLionel Sambuc unknown token flags 1903*ebfedea0SLionel Sambuc 1904*ebfedea0SLionel Sambuc2003-11-22 Love Hörnquist Åstrand <lha@it.su.se> 1905*ebfedea0SLionel Sambuc 1906*ebfedea0SLionel Sambuc * accept_sec_context.c: Don't require timestamp to be set on 1907*ebfedea0SLionel Sambuc delegated token, its already protected by the outer token (and 1908*ebfedea0SLionel Sambuc windows doesn't alway send it) Pointed out by Zi-Bin Yang 1909*ebfedea0SLionel Sambuc <zbyang@decru.com> on heimdal-discuss 1910*ebfedea0SLionel Sambuc 1911*ebfedea0SLionel Sambuc2003-11-14 Love Hörnquist Åstrand <lha@it.su.se> 1912*ebfedea0SLionel Sambuc 1913*ebfedea0SLionel Sambuc * cfx.c: fix {} error, pointed out by Liqiang Zhu 1914*ebfedea0SLionel Sambuc 1915*ebfedea0SLionel Sambuc2003-11-10 Love Hörnquist Åstrand <lha@it.su.se> 1916*ebfedea0SLionel Sambuc 1917*ebfedea0SLionel Sambuc * cfx.c: Sequence number should be stored in bigendian order From: 1918*ebfedea0SLionel Sambuc Luke Howard <lukeh@padl.com> 1919*ebfedea0SLionel Sambuc 1920*ebfedea0SLionel Sambuc2003-11-09 Love Hörnquist Åstrand <lha@it.su.se> 1921*ebfedea0SLionel Sambuc 1922*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): don't free 1923*ebfedea0SLionel Sambuc ticket, krb5_free_ticket does that now 1924*ebfedea0SLionel Sambuc 1925*ebfedea0SLionel Sambuc2003-11-06 Love Hörnquist Åstrand <lha@it.su.se> 1926*ebfedea0SLionel Sambuc 1927*ebfedea0SLionel Sambuc * cfx.c: checksum the header last in MIC token, update to -03 1928*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@padl.com> 1929*ebfedea0SLionel Sambuc 1930*ebfedea0SLionel Sambuc2003-10-07 Love Hörnquist Åstrand <lha@it.su.se> 1931*ebfedea0SLionel Sambuc 1932*ebfedea0SLionel Sambuc * add_cred.c: If its a MEMORY cc, make a copy. We need to do this 1933*ebfedea0SLionel Sambuc since now gss_release_cred will destroy the cred. This should be 1934*ebfedea0SLionel Sambuc really be solved a better way. 1935*ebfedea0SLionel Sambuc 1936*ebfedea0SLionel Sambuc * acquire_cred.c (gss_release_cred): if its a mcc, destroy it 1937*ebfedea0SLionel Sambuc rather the just release it Found by: "Zi-Bin Yang" 1938*ebfedea0SLionel Sambuc <zbyang@decru.com> 1939*ebfedea0SLionel Sambuc 1940*ebfedea0SLionel Sambuc * acquire_cred.c (acquire_initiator_cred): use kret instead of ret 1941*ebfedea0SLionel Sambuc where appropriate 1942*ebfedea0SLionel Sambuc 1943*ebfedea0SLionel Sambuc2003-09-30 Love Hörnquist Åstrand <lha@it.su.se> 1944*ebfedea0SLionel Sambuc 1945*ebfedea0SLionel Sambuc * gss_acquire_cred.3: spelling 1946*ebfedea0SLionel Sambuc From: jmc <jmc@prioris.mini.pw.edu.pl> 1947*ebfedea0SLionel Sambuc 1948*ebfedea0SLionel Sambuc2003-09-23 Love Hörnquist Åstrand <lha@it.su.se> 1949*ebfedea0SLionel Sambuc 1950*ebfedea0SLionel Sambuc * cfx.c: - EC and RRC are big-endian, not little-endian - The 1951*ebfedea0SLionel Sambuc default is now to rotate regardless of GSS_C_DCE_STYLE. There are 1952*ebfedea0SLionel Sambuc no longer any references to GSS_C_DCE_STYLE. - rrc_rotate() 1953*ebfedea0SLionel Sambuc avoids allocating memory on the heap if rrc <= 256 1954*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@padl.com> 1955*ebfedea0SLionel Sambuc 1956*ebfedea0SLionel Sambuc2003-09-22 Love Hörnquist Åstrand <lha@it.su.se> 1957*ebfedea0SLionel Sambuc 1958*ebfedea0SLionel Sambuc * cfx.[ch]: rrc_rotate() was untested and broken, fix it. 1959*ebfedea0SLionel Sambuc Set and verify wrap Token->Filler. 1960*ebfedea0SLionel Sambuc Correct token ID for wrap tokens, 1961*ebfedea0SLionel Sambuc were accidentally swapped with delete tokens. 1962*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@PADL.COM> 1963*ebfedea0SLionel Sambuc 1964*ebfedea0SLionel Sambuc2003-09-21 Love Hörnquist Åstrand <lha@it.su.se> 1965*ebfedea0SLionel Sambuc 1966*ebfedea0SLionel Sambuc * cfx.[ch]: no ASN.1-ish header on per-message tokens 1967*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@PADL.COM> 1968*ebfedea0SLionel Sambuc 1969*ebfedea0SLionel Sambuc2003-09-19 Love Hörnquist Åstrand <lha@it.su.se> 1970*ebfedea0SLionel Sambuc 1971*ebfedea0SLionel Sambuc * arcfour.h: remove depenency on gss_arcfour_mic_token and 1972*ebfedea0SLionel Sambuc gss_arcfour_warp_token 1973*ebfedea0SLionel Sambuc 1974*ebfedea0SLionel Sambuc * arcfour.c: remove depenency on gss_arcfour_mic_token and 1975*ebfedea0SLionel Sambuc gss_arcfour_warp_token 1976*ebfedea0SLionel Sambuc 1977*ebfedea0SLionel Sambuc2003-09-18 Love Hörnquist Åstrand <lha@it.su.se> 1978*ebfedea0SLionel Sambuc 1979*ebfedea0SLionel Sambuc * 8003.c: remove #if 0'ed code 1980*ebfedea0SLionel Sambuc 1981*ebfedea0SLionel Sambuc2003-09-17 Love Hörnquist Åstrand <lha@it.su.se> 1982*ebfedea0SLionel Sambuc 1983*ebfedea0SLionel Sambuc * accept_sec_context.c (gsskrb5_accept_sec_context): set sequence 1984*ebfedea0SLionel Sambuc number when not requesting mutual auth From: Luke Howard 1985*ebfedea0SLionel Sambuc <lukeh@PADL.COM> 1986*ebfedea0SLionel Sambuc 1987*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): set sequence number when not 1988*ebfedea0SLionel Sambuc requesting mutual auth From: Luke Howard <lukeh@PADL.COM> 1989*ebfedea0SLionel Sambuc 1990*ebfedea0SLionel Sambuc2003-09-16 Love Hörnquist Åstrand <lha@it.su.se> 1991*ebfedea0SLionel Sambuc 1992*ebfedea0SLionel Sambuc * arcfour.c (*): set minor_status 1993*ebfedea0SLionel Sambuc (gss_wrap): set conf_state to conf_req_flags on success 1994*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@PADL.COM> 1995*ebfedea0SLionel Sambuc 1996*ebfedea0SLionel Sambuc * wrap.c (gss_wrap_size_limit): use existing function From: Luke 1997*ebfedea0SLionel Sambuc Howard <lukeh@PADL.COM> 1998*ebfedea0SLionel Sambuc 1999*ebfedea0SLionel Sambuc2003-09-12 Love Hörnquist Åstrand <lha@it.su.se> 2000*ebfedea0SLionel Sambuc 2001*ebfedea0SLionel Sambuc * indicate_mechs.c (gss_indicate_mechs): in case of error, free 2002*ebfedea0SLionel Sambuc mech_set 2003*ebfedea0SLionel Sambuc 2004*ebfedea0SLionel Sambuc * indicate_mechs.c (gss_indicate_mechs): add SPNEGO 2005*ebfedea0SLionel Sambuc 2006*ebfedea0SLionel Sambuc2003-09-10 Love Hörnquist Åstrand <lha@it.su.se> 2007*ebfedea0SLionel Sambuc 2008*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_initial): catch errors and return 2009*ebfedea0SLionel Sambuc them 2010*ebfedea0SLionel Sambuc 2011*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_initial): add #if 0 out version of 2012*ebfedea0SLionel Sambuc the CHOICE branch encoding, also where here, free no longer used 2013*ebfedea0SLionel Sambuc memory 2014*ebfedea0SLionel Sambuc 2015*ebfedea0SLionel Sambuc2003-09-09 Love Hörnquist Åstrand <lha@it.su.se> 2016*ebfedea0SLionel Sambuc 2017*ebfedea0SLionel Sambuc * gss_acquire_cred.3: support GSS_SPNEGO_MECHANISM 2018*ebfedea0SLionel Sambuc 2019*ebfedea0SLionel Sambuc * accept_sec_context.c: SPNEGO doesn't include gss wrapping on 2020*ebfedea0SLionel Sambuc SubsequentContextToken like the Kerberos 5 mech does. 2021*ebfedea0SLionel Sambuc 2022*ebfedea0SLionel Sambuc * init_sec_context.c (spnego_reply): SPNEGO doesn't include gss 2023*ebfedea0SLionel Sambuc wrapping on SubsequentContextToken like the Kerberos 5 mech 2024*ebfedea0SLionel Sambuc does. Lets check for it anyway. 2025*ebfedea0SLionel Sambuc 2026*ebfedea0SLionel Sambuc * accept_sec_context.c: Add support for SPNEGO on the initator 2027*ebfedea0SLionel Sambuc side. Implementation initially from Assar Westerlund, passes 2028*ebfedea0SLionel Sambuc though quite a lot of hands before I commited it. 2029*ebfedea0SLionel Sambuc 2030*ebfedea0SLionel Sambuc * init_sec_context.c: Add support for SPNEGO on the initator side. 2031*ebfedea0SLionel Sambuc Tested with ldap server on a Windows 2000 DC. Implementation 2032*ebfedea0SLionel Sambuc initially from Assar Westerlund, passes though quite a lot of 2033*ebfedea0SLionel Sambuc hands before I commited it. 2034*ebfedea0SLionel Sambuc 2035*ebfedea0SLionel Sambuc * gssapi.h: export GSS_SPNEGO_MECHANISM 2036*ebfedea0SLionel Sambuc 2037*ebfedea0SLionel Sambuc * gssapi_locl.h: include spnego_as.h add prototype for 2038*ebfedea0SLionel Sambuc gssapi_krb5_get_mech 2039*ebfedea0SLionel Sambuc 2040*ebfedea0SLionel Sambuc * decapsulate.c (gssapi_krb5_get_mech): make non static 2041*ebfedea0SLionel Sambuc 2042*ebfedea0SLionel Sambuc * Makefile.am: build SPNEGO file 2043*ebfedea0SLionel Sambuc 2044*ebfedea0SLionel Sambuc2003-09-08 Love Hörnquist Åstrand <lha@it.su.se> 2045*ebfedea0SLionel Sambuc 2046*ebfedea0SLionel Sambuc * external.c: SPENGO and IAKERB oids 2047*ebfedea0SLionel Sambuc 2048*ebfedea0SLionel Sambuc * spnego.asn1: SPENGO ASN1 2049*ebfedea0SLionel Sambuc 2050*ebfedea0SLionel Sambuc2003-09-05 Love Hörnquist Åstrand <lha@it.su.se> 2051*ebfedea0SLionel Sambuc 2052*ebfedea0SLionel Sambuc * cfx.c: RRC also need to be zero before wraping them 2053*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@PADL.COM> 2054*ebfedea0SLionel Sambuc 2055*ebfedea0SLionel Sambuc2003-09-04 Love Hörnquist Åstrand <lha@it.su.se> 2056*ebfedea0SLionel Sambuc 2057*ebfedea0SLionel Sambuc * encapsulate.c (gssapi_krb5_encap_length): don't return void 2058*ebfedea0SLionel Sambuc 2059*ebfedea0SLionel Sambuc2003-09-03 Love Hörnquist Åstrand <lha@it.su.se> 2060*ebfedea0SLionel Sambuc 2061*ebfedea0SLionel Sambuc * verify_mic.c: switch from the des_ to the DES_ api 2062*ebfedea0SLionel Sambuc 2063*ebfedea0SLionel Sambuc * get_mic.c: switch from the des_ to the DES_ api 2064*ebfedea0SLionel Sambuc 2065*ebfedea0SLionel Sambuc * unwrap.c: switch from the des_ to the DES_ api 2066*ebfedea0SLionel Sambuc 2067*ebfedea0SLionel Sambuc * wrap.c: switch from the des_ to the DES_ api 2068*ebfedea0SLionel Sambuc 2069*ebfedea0SLionel Sambuc * cfx.c: EC is not included in the checksum since the length might 2070*ebfedea0SLionel Sambuc change depending on the data. From: Luke Howard <lukeh@PADL.COM> 2071*ebfedea0SLionel Sambuc 2072*ebfedea0SLionel Sambuc * acquire_cred.c: use 2073*ebfedea0SLionel Sambuc krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free 2074*ebfedea0SLionel Sambuc 2075*ebfedea0SLionel Sambuc2003-09-01 Love Hörnquist Åstrand <lha@it.su.se> 2076*ebfedea0SLionel Sambuc 2077*ebfedea0SLionel Sambuc * copy_ccache.c: rename 2078*ebfedea0SLionel Sambuc gss_krb5_extract_authz_data_from_sec_context to 2079*ebfedea0SLionel Sambuc gsskrb5_extract_authz_data_from_sec_context 2080*ebfedea0SLionel Sambuc 2081*ebfedea0SLionel Sambuc * gssapi.h: rename gss_krb5_extract_authz_data_from_sec_context to 2082*ebfedea0SLionel Sambuc gsskrb5_extract_authz_data_from_sec_context 2083*ebfedea0SLionel Sambuc 2084*ebfedea0SLionel Sambuc2003-08-31 Love Hörnquist Åstrand <lha@it.su.se> 2085*ebfedea0SLionel Sambuc 2086*ebfedea0SLionel Sambuc * copy_ccache.c (gss_krb5_extract_authz_data_from_sec_context): 2087*ebfedea0SLionel Sambuc check that we have a ticket before we start to use it 2088*ebfedea0SLionel Sambuc 2089*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document 2090*ebfedea0SLionel Sambuc gss_krb5_extract_authz_data_from_sec_context 2091*ebfedea0SLionel Sambuc 2092*ebfedea0SLionel Sambuc * gssapi.h (gss_krb5_extract_authz_data_from_sec_context): 2093*ebfedea0SLionel Sambuc return the kerberos authorizationdata, from idea of Luke Howard 2094*ebfedea0SLionel Sambuc 2095*ebfedea0SLionel Sambuc * copy_ccache.c (gss_krb5_extract_authz_data_from_sec_context): 2096*ebfedea0SLionel Sambuc return the kerberos authorizationdata, from idea of Luke Howard 2097*ebfedea0SLionel Sambuc 2098*ebfedea0SLionel Sambuc * verify_mic.c (gss_verify_mic_internal): switch type and key 2099*ebfedea0SLionel Sambuc argument 2100*ebfedea0SLionel Sambuc 2101*ebfedea0SLionel Sambuc2003-08-30 Love Hörnquist Åstrand <lha@it.su.se> 2102*ebfedea0SLionel Sambuc 2103*ebfedea0SLionel Sambuc * cfx.[ch]: draft-ietf-krb-wg-gssapi-cfx-01.txt implemetation 2104*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@PADL.COM> 2105*ebfedea0SLionel Sambuc 2106*ebfedea0SLionel Sambuc2003-08-28 Love Hörnquist Åstrand <lha@it.su.se> 2107*ebfedea0SLionel Sambuc 2108*ebfedea0SLionel Sambuc * arcfour.c (arcfour_mic_cksum): use free_Checksum to free the 2109*ebfedea0SLionel Sambuc checksum 2110*ebfedea0SLionel Sambuc 2111*ebfedea0SLionel Sambuc * arcfour.h: swap two last arguments to verify_mic for consistency 2112*ebfedea0SLionel Sambuc with des3 2113*ebfedea0SLionel Sambuc 2114*ebfedea0SLionel Sambuc * wrap.c,unwrap.c,get_mic.c,verify_mic.c,cfx.c,cfx.h: 2115*ebfedea0SLionel Sambuc prefix cfx symbols with _gssapi_ 2116*ebfedea0SLionel Sambuc 2117*ebfedea0SLionel Sambuc * arcfour.c: release the right buffer 2118*ebfedea0SLionel Sambuc 2119*ebfedea0SLionel Sambuc * arcfour.c: rename token structure in consistency with rest of 2120*ebfedea0SLionel Sambuc GSS-API From: Luke Howard <lukeh@PADL.COM> 2121*ebfedea0SLionel Sambuc 2122*ebfedea0SLionel Sambuc * unwrap.c (unwrap_des3): use _gssapi_verify_pad 2123*ebfedea0SLionel Sambuc (unwrap_des): use _gssapi_verify_pad 2124*ebfedea0SLionel Sambuc 2125*ebfedea0SLionel Sambuc * arcfour.c (_gssapi_wrap_arcfour): set the correct padding 2126*ebfedea0SLionel Sambuc (_gssapi_unwrap_arcfour): verify and strip padding 2127*ebfedea0SLionel Sambuc 2128*ebfedea0SLionel Sambuc * gssapi_locl.h: added _gssapi_verify_pad 2129*ebfedea0SLionel Sambuc 2130*ebfedea0SLionel Sambuc * decapsulate.c (_gssapi_verify_pad): verify padding of a gss 2131*ebfedea0SLionel Sambuc wrapped message and return its length 2132*ebfedea0SLionel Sambuc 2133*ebfedea0SLionel Sambuc * arcfour.c: support KEYTYPE_ARCFOUR_56 keys, from Luke Howard 2134*ebfedea0SLionel Sambuc <lukeh@PADL.COM> 2135*ebfedea0SLionel Sambuc 2136*ebfedea0SLionel Sambuc * arcfour.c: use right seal alg, inherit keytype from parent key 2137*ebfedea0SLionel Sambuc 2138*ebfedea0SLionel Sambuc * arcfour.c: include the confounder in the checksum use the right 2139*ebfedea0SLionel Sambuc key usage number for warped/unwraped tokens 2140*ebfedea0SLionel Sambuc 2141*ebfedea0SLionel Sambuc * gssapi.h: add gss_krb5_nt_general_name as an mit compat glue 2142*ebfedea0SLionel Sambuc (same as GSS_KRB5_NT_PRINCIPAL_NAME) 2143*ebfedea0SLionel Sambuc 2144*ebfedea0SLionel Sambuc * unwrap.c: hook in arcfour unwrap 2145*ebfedea0SLionel Sambuc 2146*ebfedea0SLionel Sambuc * wrap.c: hook in arcfour wrap 2147*ebfedea0SLionel Sambuc 2148*ebfedea0SLionel Sambuc * verify_mic.c: hook in arcfour verify_mic 2149*ebfedea0SLionel Sambuc 2150*ebfedea0SLionel Sambuc * get_mic.c: hook in arcfour get_mic 2151*ebfedea0SLionel Sambuc 2152*ebfedea0SLionel Sambuc * arcfour.c: implement wrap/unwarp 2153*ebfedea0SLionel Sambuc 2154*ebfedea0SLionel Sambuc * gssapi_locl.h: add gssapi_{en,de}code_be_om_uint32 2155*ebfedea0SLionel Sambuc 2156*ebfedea0SLionel Sambuc * 8003.c: add gssapi_{en,de}code_be_om_uint32 2157*ebfedea0SLionel Sambuc 2158*ebfedea0SLionel Sambuc2003-08-27 Love Hörnquist Åstrand <lha@it.su.se> 2159*ebfedea0SLionel Sambuc 2160*ebfedea0SLionel Sambuc * arcfour.c (_gssapi_verify_mic_arcfour): Do the checksum on right 2161*ebfedea0SLionel Sambuc area. Swap filler check, it was reversed. 2162*ebfedea0SLionel Sambuc 2163*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_SOURCES): += arcfour.c 2164*ebfedea0SLionel Sambuc 2165*ebfedea0SLionel Sambuc * gssapi_locl.h: include "arcfour.h" 2166*ebfedea0SLionel Sambuc 2167*ebfedea0SLionel Sambuc * arcfour.c: arcfour gss-api mech, get_mic/verify_mic working 2168*ebfedea0SLionel Sambuc 2169*ebfedea0SLionel Sambuc * arcfour.h: arcfour gss-api mech, get_mic/verify_mic working 2170*ebfedea0SLionel Sambuc 2171*ebfedea0SLionel Sambuc2003-08-26 Love Hörnquist Åstrand <lha@it.su.se> 2172*ebfedea0SLionel Sambuc 2173*ebfedea0SLionel Sambuc * gssapi_locl.h: always include cfx.h add prototype for 2174*ebfedea0SLionel Sambuc _gssapi_decapsulate 2175*ebfedea0SLionel Sambuc 2176*ebfedea0SLionel Sambuc * cfx.[ch]: Implementation of draft-ietf-krb-wg-gssapi-cfx-00.txt 2177*ebfedea0SLionel Sambuc from Luke Howard <lukeh@PADL.COM> 2178*ebfedea0SLionel Sambuc 2179*ebfedea0SLionel Sambuc * decapsulate.c: add _gssapi_decapsulate, from Luke Howard 2180*ebfedea0SLionel Sambuc <lukeh@PADL.COM> 2181*ebfedea0SLionel Sambuc 2182*ebfedea0SLionel Sambuc2003-08-25 Love Hörnquist Åstrand <lha@it.su.se> 2183*ebfedea0SLionel Sambuc 2184*ebfedea0SLionel Sambuc * unwrap.c: encap/decap now takes a oid if the enctype/keytype is 2185*ebfedea0SLionel Sambuc arcfour, return error add hook for cfx 2186*ebfedea0SLionel Sambuc 2187*ebfedea0SLionel Sambuc * verify_mic.c: encap/decap now takes a oid if the enctype/keytype 2188*ebfedea0SLionel Sambuc is arcfour, return error add hook for cfx 2189*ebfedea0SLionel Sambuc 2190*ebfedea0SLionel Sambuc * get_mic.c: encap/decap now takes a oid if the enctype/keytype is 2191*ebfedea0SLionel Sambuc arcfour, return error add hook for cfx 2192*ebfedea0SLionel Sambuc 2193*ebfedea0SLionel Sambuc * accept_sec_context.c: encap/decap now takes a oid 2194*ebfedea0SLionel Sambuc 2195*ebfedea0SLionel Sambuc * init_sec_context.c: encap/decap now takes a oid 2196*ebfedea0SLionel Sambuc 2197*ebfedea0SLionel Sambuc * gssapi_locl.h: include cfx.h if we need it lifetime is a 2198*ebfedea0SLionel Sambuc OM_uint32, depend on gssapi interface add all new encap/decap 2199*ebfedea0SLionel Sambuc functions 2200*ebfedea0SLionel Sambuc 2201*ebfedea0SLionel Sambuc * decapsulate.c: add decap functions that doesn't take the token 2202*ebfedea0SLionel Sambuc type also make all decap function take the oid mech that they 2203*ebfedea0SLionel Sambuc should use 2204*ebfedea0SLionel Sambuc 2205*ebfedea0SLionel Sambuc * encapsulate.c: add encap functions that doesn't take the token 2206*ebfedea0SLionel Sambuc type also make all encap function take the oid mech that they 2207*ebfedea0SLionel Sambuc should use 2208*ebfedea0SLionel Sambuc 2209*ebfedea0SLionel Sambuc * sequence.c (elem_insert): fix a off by one index counter 2210*ebfedea0SLionel Sambuc 2211*ebfedea0SLionel Sambuc * inquire_cred.c (gss_inquire_cred): handle cred_handle being 2212*ebfedea0SLionel Sambuc GSS_C_NO_CREDENTIAL and use the default cred then. 2213*ebfedea0SLionel Sambuc 2214*ebfedea0SLionel Sambuc2003-08-19 Love Hörnquist Åstrand <lha@it.su.se> 2215*ebfedea0SLionel Sambuc 2216*ebfedea0SLionel Sambuc * gss_acquire_cred.3: break out extensions and document 2217*ebfedea0SLionel Sambuc gsskrb5_register_acceptor_identity 2218*ebfedea0SLionel Sambuc 2219*ebfedea0SLionel Sambuc2003-08-18 Love Hörnquist Åstrand <lha@it.su.se> 2220*ebfedea0SLionel Sambuc 2221*ebfedea0SLionel Sambuc * test_acquire_cred.c (print_time): time is returned in seconds 2222*ebfedea0SLionel Sambuc from now, not unix time 2223*ebfedea0SLionel Sambuc 2224*ebfedea0SLionel Sambuc2003-08-17 Love Hörnquist Åstrand <lha@it.su.se> 2225*ebfedea0SLionel Sambuc 2226*ebfedea0SLionel Sambuc * compat.c (check_compat): avoid leaking principal when finding a 2227*ebfedea0SLionel Sambuc match 2228*ebfedea0SLionel Sambuc 2229*ebfedea0SLionel Sambuc * address_to_krb5addr.c: sa_size argument to krb5_addr2sockaddr is 2230*ebfedea0SLionel Sambuc a krb5_socklen_t 2231*ebfedea0SLionel Sambuc 2232*ebfedea0SLionel Sambuc * acquire_cred.c (gss_acquire_cred): 4th argument to 2233*ebfedea0SLionel Sambuc gss_test_oid_set_member is a int 2234*ebfedea0SLionel Sambuc 2235*ebfedea0SLionel Sambuc2003-07-22 Love Hörnquist Åstrand <lha@it.su.se> 2236*ebfedea0SLionel Sambuc 2237*ebfedea0SLionel Sambuc * init_sec_context.c (repl_mutual): don't set kerberos error where 2238*ebfedea0SLionel Sambuc there was no kerberos error 2239*ebfedea0SLionel Sambuc 2240*ebfedea0SLionel Sambuc * gssapi_locl.h: Add destruction/creation prototypes and structure 2241*ebfedea0SLionel Sambuc for the thread specific storage. 2242*ebfedea0SLionel Sambuc 2243*ebfedea0SLionel Sambuc * display_status.c: use thread specific storage to set/get the 2244*ebfedea0SLionel Sambuc kerberos error message 2245*ebfedea0SLionel Sambuc 2246*ebfedea0SLionel Sambuc * init.c: Provide locking around the creation of the global 2247*ebfedea0SLionel Sambuc krb5_context. Add destruction/creation functions for the thread 2248*ebfedea0SLionel Sambuc specific storage that the error string handling is using. 2249*ebfedea0SLionel Sambuc 2250*ebfedea0SLionel Sambuc2003-07-20 Love Hörnquist Åstrand <lha@it.su.se> 2251*ebfedea0SLionel Sambuc 2252*ebfedea0SLionel Sambuc * gss_acquire_cred.3: add missing prototype and missing .Ft 2253*ebfedea0SLionel Sambuc arguments 2254*ebfedea0SLionel Sambuc 2255*ebfedea0SLionel Sambuc2003-06-17 Love Hörnquist Åstrand <lha@it.su.se> 2256*ebfedea0SLionel Sambuc 2257*ebfedea0SLionel Sambuc * verify_mic.c: reorder code so sequence numbers can can be used 2258*ebfedea0SLionel Sambuc 2259*ebfedea0SLionel Sambuc * unwrap.c: reorder code so sequence numbers can can be used 2260*ebfedea0SLionel Sambuc 2261*ebfedea0SLionel Sambuc * sequence.c: remove unused function, indent, add 2262*ebfedea0SLionel Sambuc gssapi_msg_order_f that filter gss flags to gss_msg_order flags 2263*ebfedea0SLionel Sambuc 2264*ebfedea0SLionel Sambuc * gssapi_locl.h: prototypes for 2265*ebfedea0SLionel Sambuc gssapi_{encode_om_uint32,decode_om_uint32} add sequence number 2266*ebfedea0SLionel Sambuc verifier prototypes 2267*ebfedea0SLionel Sambuc 2268*ebfedea0SLionel Sambuc * delete_sec_context.c: destroy sequence number verifier 2269*ebfedea0SLionel Sambuc 2270*ebfedea0SLionel Sambuc * init_sec_context.c: remember to free data use sequence number 2271*ebfedea0SLionel Sambuc verifier 2272*ebfedea0SLionel Sambuc 2273*ebfedea0SLionel Sambuc * accept_sec_context.c: don't clear output_token twice remember to 2274*ebfedea0SLionel Sambuc free data use sequence number verifier 2275*ebfedea0SLionel Sambuc 2276*ebfedea0SLionel Sambuc * 8003.c: export and rename encode_om_uint32/decode_om_uint32 and 2277*ebfedea0SLionel Sambuc start to use them 2278*ebfedea0SLionel Sambuc 2279*ebfedea0SLionel Sambuc2003-06-09 Johan Danielsson <joda@pdc.kth.se> 2280*ebfedea0SLionel Sambuc 2281*ebfedea0SLionel Sambuc * Makefile.am: can't have sequence.c in two different places 2282*ebfedea0SLionel Sambuc 2283*ebfedea0SLionel Sambuc2003-06-06 Love Hörnquist Åstrand <lha@it.su.se> 2284*ebfedea0SLionel Sambuc 2285*ebfedea0SLionel Sambuc * test_sequence.c: check rollover, print summery 2286*ebfedea0SLionel Sambuc 2287*ebfedea0SLionel Sambuc * wrap.c (sub_wrap_size): gss_wrap_size_limit() has 2288*ebfedea0SLionel Sambuc req_output_size and max_input_size around the wrong way -- it 2289*ebfedea0SLionel Sambuc returns the output token size for a given input size, rather than 2290*ebfedea0SLionel Sambuc the maximum input size for a given output token size. 2291*ebfedea0SLionel Sambuc 2292*ebfedea0SLionel Sambuc From: Luke Howard <lukeh@PADL.COM> 2293*ebfedea0SLionel Sambuc 2294*ebfedea0SLionel Sambuc2003-06-05 Love Hörnquist Åstrand <lha@it.su.se> 2295*ebfedea0SLionel Sambuc 2296*ebfedea0SLionel Sambuc * gssapi_locl.h: add prototypes for sequence.c 2297*ebfedea0SLionel Sambuc 2298*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_SOURCES): add sequence.c 2299*ebfedea0SLionel Sambuc (test_sequence): build 2300*ebfedea0SLionel Sambuc 2301*ebfedea0SLionel Sambuc * sequence.c: sequence number checks, order and replay 2302*ebfedea0SLionel Sambuc * test_sequence.c: sequence number checks, order and replay 2303*ebfedea0SLionel Sambuc 2304*ebfedea0SLionel Sambuc2003-06-03 Love Hörnquist Åstrand <lha@it.su.se> 2305*ebfedea0SLionel Sambuc 2306*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): make sure time is 2307*ebfedea0SLionel Sambuc returned in seconds from now, not in kerberos time 2308*ebfedea0SLionel Sambuc 2309*ebfedea0SLionel Sambuc * acquire_cred.c (gss_aquire_cred): make sure time is returned in 2310*ebfedea0SLionel Sambuc seconds from now, not in kerberos time 2311*ebfedea0SLionel Sambuc 2312*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): if the cred is expired before we 2313*ebfedea0SLionel Sambuc tries to create a token, fail so the peer doesn't need reject us 2314*ebfedea0SLionel Sambuc (*): make sure time is returned in seconds from now, 2315*ebfedea0SLionel Sambuc not in kerberos time 2316*ebfedea0SLionel Sambuc (repl_mutual): remember to unlock the context mutex 2317*ebfedea0SLionel Sambuc 2318*ebfedea0SLionel Sambuc * context_time.c (gss_context_time): remove unused variable 2319*ebfedea0SLionel Sambuc 2320*ebfedea0SLionel Sambuc * verify_mic.c: make sure minor_status is always set, pointed out 2321*ebfedea0SLionel Sambuc by Luke Howard <lukeh@PADL.COM> 2322*ebfedea0SLionel Sambuc 2323*ebfedea0SLionel Sambuc2003-05-21 Love Hörnquist Åstrand <lha@it.su.se> 2324*ebfedea0SLionel Sambuc 2325*ebfedea0SLionel Sambuc * *.[ch]: do some basic locking (no reference counting so contexts 2326*ebfedea0SLionel Sambuc can be removed while still used) 2327*ebfedea0SLionel Sambuc - don't export gss_ctx_id_t_desc_struct and gss_cred_id_t_desc_struct 2328*ebfedea0SLionel Sambuc - make sure all lifetime are returned in seconds left until expired, 2329*ebfedea0SLionel Sambuc not in unix epoch 2330*ebfedea0SLionel Sambuc 2331*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document argument lifetime_rec to function 2332*ebfedea0SLionel Sambuc gss_inquire_context 2333*ebfedea0SLionel Sambuc 2334*ebfedea0SLionel Sambuc2003-05-17 Love Hörnquist Åstrand <lha@it.su.se> 2335*ebfedea0SLionel Sambuc 2336*ebfedea0SLionel Sambuc * test_acquire_cred.c: test gss_add_cred more then once 2337*ebfedea0SLionel Sambuc 2338*ebfedea0SLionel Sambuc2003-05-06 Love Hörnquist Åstrand <lha@it.su.se> 2339*ebfedea0SLionel Sambuc 2340*ebfedea0SLionel Sambuc * gssapi.h: if __cplusplus, wrap the extern variable (just to be 2341*ebfedea0SLionel Sambuc safe) and functions in extern "C" { } 2342*ebfedea0SLionel Sambuc 2343*ebfedea0SLionel Sambuc2003-04-30 Love Hörnquist Åstrand <lha@it.su.se> 2344*ebfedea0SLionel Sambuc 2345*ebfedea0SLionel Sambuc * gssapi.3: more about the des3 mic mess 2346*ebfedea0SLionel Sambuc 2347*ebfedea0SLionel Sambuc * verify_mic.c (verify_mic_des3): always check if the mic is the 2348*ebfedea0SLionel Sambuc correct mic or the mic that old heimdal would have generated 2349*ebfedea0SLionel Sambuc 2350*ebfedea0SLionel Sambuc2003-04-28 Jacques Vidrine <nectar@kth.se> 2351*ebfedea0SLionel Sambuc 2352*ebfedea0SLionel Sambuc * verify_mic.c (verify_mic_des3): If MIC verification fails, 2353*ebfedea0SLionel Sambuc retry using the `old' MIC computation (with zero IV). 2354*ebfedea0SLionel Sambuc 2355*ebfedea0SLionel Sambuc2003-04-26 Love Hörnquist Åstrand <lha@it.su.se> 2356*ebfedea0SLionel Sambuc 2357*ebfedea0SLionel Sambuc * gss_acquire_cred.3: more about difference between comparing IN 2358*ebfedea0SLionel Sambuc and MN 2359*ebfedea0SLionel Sambuc 2360*ebfedea0SLionel Sambuc * gss_acquire_cred.3: more about name type and access control 2361*ebfedea0SLionel Sambuc 2362*ebfedea0SLionel Sambuc2003-04-25 Love Hörnquist Åstrand <lha@it.su.se> 2363*ebfedea0SLionel Sambuc 2364*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document gss_context_time 2365*ebfedea0SLionel Sambuc 2366*ebfedea0SLionel Sambuc * context_time.c: if lifetime of context have expired, set 2367*ebfedea0SLionel Sambuc time_rec to 0 and return GSS_S_CONTEXT_EXPIRED 2368*ebfedea0SLionel Sambuc 2369*ebfedea0SLionel Sambuc * gssapi.3: document [gssapi]correct_des3_mic 2370*ebfedea0SLionel Sambuc [gssapi]broken_des3_mic 2371*ebfedea0SLionel Sambuc 2372*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document gss_krb5_compat_des3_mic 2373*ebfedea0SLionel Sambuc 2374*ebfedea0SLionel Sambuc * compat.c (gss_krb5_compat_des3_mic): enable turning on/off des3 2375*ebfedea0SLionel Sambuc mic compat 2376*ebfedea0SLionel Sambuc (_gss_DES3_get_mic_compat): handle [gssapi]correct_des3_mic too 2377*ebfedea0SLionel Sambuc 2378*ebfedea0SLionel Sambuc * gssapi.h (gss_krb5_compat_des3_mic): new function, turn on/off 2379*ebfedea0SLionel Sambuc des3 mic compat 2380*ebfedea0SLionel Sambuc (GSS_C_KRB5_COMPAT_DES3_MIC): cpp symbol that exists if 2381*ebfedea0SLionel Sambuc gss_krb5_compat_des3_mic exists 2382*ebfedea0SLionel Sambuc 2383*ebfedea0SLionel Sambuc2003-04-24 Love Hörnquist Åstrand <lha@it.su.se> 2384*ebfedea0SLionel Sambuc 2385*ebfedea0SLionel Sambuc * Makefile.am: (libgssapi_la_LDFLAGS): update major 2386*ebfedea0SLionel Sambuc version of gssapi for incompatiblity in 3des getmic support 2387*ebfedea0SLionel Sambuc 2388*ebfedea0SLionel Sambuc2003-04-23 Love Hörnquist Åstrand <lha@it.su.se> 2389*ebfedea0SLionel Sambuc 2390*ebfedea0SLionel Sambuc * Makefile.am: test_acquire_cred_LDADD: use libgssapi.la not 2391*ebfedea0SLionel Sambuc ./libgssapi.la (make make -jN work) 2392*ebfedea0SLionel Sambuc 2393*ebfedea0SLionel Sambuc2003-04-16 Love Hörnquist Åstrand <lha@it.su.se> 2394*ebfedea0SLionel Sambuc 2395*ebfedea0SLionel Sambuc * gssapi.3: spelling 2396*ebfedea0SLionel Sambuc 2397*ebfedea0SLionel Sambuc * gss_acquire_cred.3: Change .Fd #include <header.h> to .In 2398*ebfedea0SLionel Sambuc header.h, from Thomas Klausner <wiz@netbsd.org> 2399*ebfedea0SLionel Sambuc 2400*ebfedea0SLionel Sambuc 2401*ebfedea0SLionel Sambuc2003-04-06 Love Hörnquist Åstrand <lha@it.su.se> 2402*ebfedea0SLionel Sambuc 2403*ebfedea0SLionel Sambuc * gss_acquire_cred.3: spelling 2404*ebfedea0SLionel Sambuc 2405*ebfedea0SLionel Sambuc * Makefile.am: remove stuff that sneaked in with last commit 2406*ebfedea0SLionel Sambuc 2407*ebfedea0SLionel Sambuc * acquire_cred.c (acquire_initiator_cred): if the requested name 2408*ebfedea0SLionel Sambuc isn't in the ccache, also check keytab. Extact the krbtgt for the 2409*ebfedea0SLionel Sambuc default realm to check how long the credentials will last. 2410*ebfedea0SLionel Sambuc 2411*ebfedea0SLionel Sambuc * add_cred.c (gss_add_cred): don't create a new ccache, just open 2412*ebfedea0SLionel Sambuc the old one; better check if output handle is compatible with new 2413*ebfedea0SLionel Sambuc (copied) handle 2414*ebfedea0SLionel Sambuc 2415*ebfedea0SLionel Sambuc * test_acquire_cred.c: test gss_add_cred too 2416*ebfedea0SLionel Sambuc 2417*ebfedea0SLionel Sambuc2003-04-03 Love Hörnquist Åstrand <lha@it.su.se> 2418*ebfedea0SLionel Sambuc 2419*ebfedea0SLionel Sambuc * Makefile.am: build test_acquire_cred 2420*ebfedea0SLionel Sambuc 2421*ebfedea0SLionel Sambuc * test_acquire_cred.c: simple gss_acquire_cred test 2422*ebfedea0SLionel Sambuc 2423*ebfedea0SLionel Sambuc2003-04-02 Love Hörnquist Åstrand <lha@it.su.se> 2424*ebfedea0SLionel Sambuc 2425*ebfedea0SLionel Sambuc * gss_acquire_cred.3: s/gssapi/GSS-API/ 2426*ebfedea0SLionel Sambuc 2427*ebfedea0SLionel Sambuc2003-03-19 Love Hörnquist Åstrand <lha@it.su.se> 2428*ebfedea0SLionel Sambuc 2429*ebfedea0SLionel Sambuc * gss_acquire_cred.3: document v1 interface (and that they are 2430*ebfedea0SLionel Sambuc obsolete) 2431*ebfedea0SLionel Sambuc 2432*ebfedea0SLionel Sambuc2003-03-18 Love Hörnquist Åstrand <lha@it.su.se> 2433*ebfedea0SLionel Sambuc 2434*ebfedea0SLionel Sambuc * gss_acquire_cred.3: list supported mechanism and nametypes 2435*ebfedea0SLionel Sambuc 2436*ebfedea0SLionel Sambuc2003-03-16 Love Hörnquist Åstrand <lha@it.su.se> 2437*ebfedea0SLionel Sambuc 2438*ebfedea0SLionel Sambuc * gss_acquire_cred.3: text about gss_display_name 2439*ebfedea0SLionel Sambuc 2440*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): bump to 3:6:2 2441*ebfedea0SLionel Sambuc (libgssapi_la_SOURCES): add all new functions 2442*ebfedea0SLionel Sambuc 2443*ebfedea0SLionel Sambuc * gssapi.3: now that we have a functions, uncomment the missing 2444*ebfedea0SLionel Sambuc ones 2445*ebfedea0SLionel Sambuc 2446*ebfedea0SLionel Sambuc * gss_acquire_cred.3: now that we have a functions, uncomment the 2447*ebfedea0SLionel Sambuc missing ones 2448*ebfedea0SLionel Sambuc 2449*ebfedea0SLionel Sambuc * process_context_token.c: implement gss_process_context_token 2450*ebfedea0SLionel Sambuc 2451*ebfedea0SLionel Sambuc * inquire_names_for_mech.c: implement gss_inquire_names_for_mech 2452*ebfedea0SLionel Sambuc 2453*ebfedea0SLionel Sambuc * inquire_mechs_for_name.c: implement gss_inquire_mechs_for_name 2454*ebfedea0SLionel Sambuc 2455*ebfedea0SLionel Sambuc * inquire_cred_by_mech.c: implement gss_inquire_cred_by_mech 2456*ebfedea0SLionel Sambuc 2457*ebfedea0SLionel Sambuc * add_cred.c: implement gss_add_cred 2458*ebfedea0SLionel Sambuc 2459*ebfedea0SLionel Sambuc * acquire_cred.c (gss_acquire_cred): more testing of input 2460*ebfedea0SLionel Sambuc argument, make sure output arguments are ok, since we don't know 2461*ebfedea0SLionel Sambuc the time_rec (for now), set it to time_req 2462*ebfedea0SLionel Sambuc 2463*ebfedea0SLionel Sambuc * export_sec_context.c: send lifetime, also set minor_status 2464*ebfedea0SLionel Sambuc 2465*ebfedea0SLionel Sambuc * get_mic.c: set minor_status 2466*ebfedea0SLionel Sambuc 2467*ebfedea0SLionel Sambuc * import_sec_context.c (gss_import_sec_context): add error 2468*ebfedea0SLionel Sambuc checking, pick up lifetime (if there is no lifetime, use 2469*ebfedea0SLionel Sambuc GSS_C_INDEFINITE) 2470*ebfedea0SLionel Sambuc 2471*ebfedea0SLionel Sambuc * init_sec_context.c: take care to set export value to something 2472*ebfedea0SLionel Sambuc sane before we start so caller will have harmless values in them 2473*ebfedea0SLionel Sambuc if then function fails 2474*ebfedea0SLionel Sambuc 2475*ebfedea0SLionel Sambuc * release_buffer.c (gss_release_buffer): set minor_status 2476*ebfedea0SLionel Sambuc 2477*ebfedea0SLionel Sambuc * wrap.c: make sure minor_status get set 2478*ebfedea0SLionel Sambuc 2479*ebfedea0SLionel Sambuc * verify_mic.c (gss_verify_mic_internal): rename verify_mic to 2480*ebfedea0SLionel Sambuc gss_verify_mic_internal and let it take the type as an argument, 2481*ebfedea0SLionel Sambuc (gss_verify_mic): call gss_verify_mic_internal 2482*ebfedea0SLionel Sambuc set minor_status 2483*ebfedea0SLionel Sambuc 2484*ebfedea0SLionel Sambuc * unwrap.c: set minor_status 2485*ebfedea0SLionel Sambuc 2486*ebfedea0SLionel Sambuc * test_oid_set_member.c (gss_test_oid_set_member): use 2487*ebfedea0SLionel Sambuc gss_oid_equal 2488*ebfedea0SLionel Sambuc 2489*ebfedea0SLionel Sambuc * release_oid_set.c (gss_release_oid_set): set minor_status 2490*ebfedea0SLionel Sambuc 2491*ebfedea0SLionel Sambuc * release_name.c (gss_release_name): set minor_status 2492*ebfedea0SLionel Sambuc 2493*ebfedea0SLionel Sambuc * release_cred.c (gss_release_cred): set minor_status 2494*ebfedea0SLionel Sambuc 2495*ebfedea0SLionel Sambuc * add_oid_set_member.c (gss_add_oid_set_member): set minor_status 2496*ebfedea0SLionel Sambuc 2497*ebfedea0SLionel Sambuc * compare_name.c (gss_compare_name): set minor_status 2498*ebfedea0SLionel Sambuc 2499*ebfedea0SLionel Sambuc * compat.c (check_compat): make sure ret have a defined value 2500*ebfedea0SLionel Sambuc 2501*ebfedea0SLionel Sambuc * context_time.c (gss_context_time): set minor_status 2502*ebfedea0SLionel Sambuc 2503*ebfedea0SLionel Sambuc * copy_ccache.c (gss_krb5_copy_ccache): set minor_status 2504*ebfedea0SLionel Sambuc 2505*ebfedea0SLionel Sambuc * create_emtpy_oid_set.c (gss_create_empty_oid_set): set 2506*ebfedea0SLionel Sambuc minor_status 2507*ebfedea0SLionel Sambuc 2508*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): set minor_status 2509*ebfedea0SLionel Sambuc 2510*ebfedea0SLionel Sambuc * display_name.c (gss_display_name): set minor_status 2511*ebfedea0SLionel Sambuc 2512*ebfedea0SLionel Sambuc * display_status.c (gss_display_status): use gss_oid_equal, handle 2513*ebfedea0SLionel Sambuc supplementary errors 2514*ebfedea0SLionel Sambuc 2515*ebfedea0SLionel Sambuc * duplicate_name.c (gss_duplicate_name): set minor_status 2516*ebfedea0SLionel Sambuc 2517*ebfedea0SLionel Sambuc * inquire_context.c (gss_inquire_context): set lifetime_rec now 2518*ebfedea0SLionel Sambuc when we know it, set minor_status 2519*ebfedea0SLionel Sambuc 2520*ebfedea0SLionel Sambuc * inquire_cred.c (gss_inquire_cred): take care to set export value 2521*ebfedea0SLionel Sambuc to something sane before we start so caller will have harmless 2522*ebfedea0SLionel Sambuc values in them if the function fails 2523*ebfedea0SLionel Sambuc 2524*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): take care to set 2525*ebfedea0SLionel Sambuc export value to something sane before we start so caller will have 2526*ebfedea0SLionel Sambuc harmless values in them if then function fails, set lifetime from 2527*ebfedea0SLionel Sambuc ticket expiration date 2528*ebfedea0SLionel Sambuc 2529*ebfedea0SLionel Sambuc * indicate_mechs.c (gss_indicate_mechs): use 2530*ebfedea0SLionel Sambuc gss_create_empty_oid_set and gss_add_oid_set_member 2531*ebfedea0SLionel Sambuc 2532*ebfedea0SLionel Sambuc * gssapi.h (gss_ctx_id_t_desc): store the lifetime in the cred, 2533*ebfedea0SLionel Sambuc since there is no ticket transfered in the exported context 2534*ebfedea0SLionel Sambuc 2535*ebfedea0SLionel Sambuc * export_name.c (gss_export_name): export name with 2536*ebfedea0SLionel Sambuc GSS_C_NT_EXPORT_NAME wrapping, not just the principal 2537*ebfedea0SLionel Sambuc 2538*ebfedea0SLionel Sambuc * import_name.c (import_export_name): new function, parses a 2539*ebfedea0SLionel Sambuc GSS_C_NT_EXPORT_NAME 2540*ebfedea0SLionel Sambuc (import_krb5_name): factor out common code of parsing krb5 name 2541*ebfedea0SLionel Sambuc (gss_oid_equal): rename from oid_equal 2542*ebfedea0SLionel Sambuc 2543*ebfedea0SLionel Sambuc * gssapi_locl.h: add prototypes for gss_oid_equal and 2544*ebfedea0SLionel Sambuc gss_verify_mic_internal 2545*ebfedea0SLionel Sambuc 2546*ebfedea0SLionel Sambuc * gssapi.h: comment out the argument names 2547*ebfedea0SLionel Sambuc 2548*ebfedea0SLionel Sambuc2003-03-15 Love Hörnquist Åstrand <lha@it.su.se> 2549*ebfedea0SLionel Sambuc 2550*ebfedea0SLionel Sambuc * gssapi.3: add LIST OF FUNCTIONS and copyright/license 2551*ebfedea0SLionel Sambuc 2552*ebfedea0SLionel Sambuc * Makefile.am: s/gss_aquire_cred.3/gss_acquire_cred.3/ 2553*ebfedea0SLionel Sambuc 2554*ebfedea0SLionel Sambuc * Makefile.am: man_MANS += gss_aquire_cred.3 2555*ebfedea0SLionel Sambuc 2556*ebfedea0SLionel Sambuc2003-03-14 Love Hörnquist Åstrand <lha@it.su.se> 2557*ebfedea0SLionel Sambuc 2558*ebfedea0SLionel Sambuc * gss_aquire_cred.3: the gssapi api manpage 2559*ebfedea0SLionel Sambuc 2560*ebfedea0SLionel Sambuc2003-03-03 Love Hörnquist Åstrand <lha@it.su.se> 2561*ebfedea0SLionel Sambuc 2562*ebfedea0SLionel Sambuc * inquire_context.c: (gss_inquire_context): rename argument open 2563*ebfedea0SLionel Sambuc to open_context 2564*ebfedea0SLionel Sambuc 2565*ebfedea0SLionel Sambuc * gssapi.h (gss_inquire_context): rename argument open to open_context 2566*ebfedea0SLionel Sambuc 2567*ebfedea0SLionel Sambuc2003-02-27 Love Hörnquist Åstrand <lha@it.su.se> 2568*ebfedea0SLionel Sambuc 2569*ebfedea0SLionel Sambuc * init_sec_context.c (do_delegation): remove unused variable 2570*ebfedea0SLionel Sambuc subkey 2571*ebfedea0SLionel Sambuc 2572*ebfedea0SLionel Sambuc * gssapi.3: all 0.5.x version had broken token delegation 2573*ebfedea0SLionel Sambuc 2574*ebfedea0SLionel Sambuc2003-02-21 Love Hörnquist Åstrand <lha@it.su.se> 2575*ebfedea0SLionel Sambuc 2576*ebfedea0SLionel Sambuc * (init_auth): only generate one subkey 2577*ebfedea0SLionel Sambuc 2578*ebfedea0SLionel Sambuc2003-01-27 Love Hörnquist Åstrand <lha@it.su.se> 2579*ebfedea0SLionel Sambuc 2580*ebfedea0SLionel Sambuc * verify_mic.c (verify_mic_des3): fix 3des verify_mic to conform 2581*ebfedea0SLionel Sambuc to rfc (and mit kerberos), provide backward compat hook 2582*ebfedea0SLionel Sambuc 2583*ebfedea0SLionel Sambuc * get_mic.c (mic_des3): fix 3des get_mic to conform to rfc (and 2584*ebfedea0SLionel Sambuc mit kerberos), provide backward compat hook 2585*ebfedea0SLionel Sambuc 2586*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): check if we need compat for 2587*ebfedea0SLionel Sambuc older get_mic/verify_mic 2588*ebfedea0SLionel Sambuc 2589*ebfedea0SLionel Sambuc * gssapi_locl.h: add prototype for _gss_DES3_get_mic_compat 2590*ebfedea0SLionel Sambuc 2591*ebfedea0SLionel Sambuc * gssapi.h (more_flags): add COMPAT_OLD_DES3 2592*ebfedea0SLionel Sambuc 2593*ebfedea0SLionel Sambuc * Makefile.am: add gssapi.3 and compat.c 2594*ebfedea0SLionel Sambuc 2595*ebfedea0SLionel Sambuc * gssapi.3: add gssapi COMPATIBILITY documentation 2596*ebfedea0SLionel Sambuc 2597*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): check if we need 2598*ebfedea0SLionel Sambuc compat for older get_mic/verify_mic 2599*ebfedea0SLionel Sambuc 2600*ebfedea0SLionel Sambuc * compat.c: check for compatiblity with other heimdal's 3des 2601*ebfedea0SLionel Sambuc get_mic/verify_mic 2602*ebfedea0SLionel Sambuc 2603*ebfedea0SLionel Sambuc2002-10-31 Johan Danielsson <joda@pdc.kth.se> 2604*ebfedea0SLionel Sambuc 2605*ebfedea0SLionel Sambuc * check return value from gssapi_krb5_init 2606*ebfedea0SLionel Sambuc 2607*ebfedea0SLionel Sambuc * 8003.c (gssapi_krb5_verify_8003_checksum): check size of input 2608*ebfedea0SLionel Sambuc 2609*ebfedea0SLionel Sambuc2002-09-03 Johan Danielsson <joda@pdc.kth.se> 2610*ebfedea0SLionel Sambuc 2611*ebfedea0SLionel Sambuc * wrap.c (wrap_des3): use ETYPE_DES3_CBC_NONE 2612*ebfedea0SLionel Sambuc 2613*ebfedea0SLionel Sambuc * unwrap.c (unwrap_des3): use ETYPE_DES3_CBC_NONE 2614*ebfedea0SLionel Sambuc 2615*ebfedea0SLionel Sambuc2002-09-02 Johan Danielsson <joda@pdc.kth.se> 2616*ebfedea0SLionel Sambuc 2617*ebfedea0SLionel Sambuc * init_sec_context.c: we need to generate a local subkey here 2618*ebfedea0SLionel Sambuc 2619*ebfedea0SLionel Sambuc2002-08-20 Jacques Vidrine <n@nectar.com> 2620*ebfedea0SLionel Sambuc 2621*ebfedea0SLionel Sambuc * acquire_cred.c, inquire_cred.c, release_cred.c: Use default 2622*ebfedea0SLionel Sambuc credential resolution if gss_acquire_cred is called with 2623*ebfedea0SLionel Sambuc GSS_C_NO_NAME. 2624*ebfedea0SLionel Sambuc 2625*ebfedea0SLionel Sambuc2002-06-20 Jacques Vidrine <n@nectar.com> 2626*ebfedea0SLionel Sambuc 2627*ebfedea0SLionel Sambuc * import_name.c: Compare name types by value if pointers do 2628*ebfedea0SLionel Sambuc not match. Reported by: "Douglas E. Engert" <deengert@anl.gov> 2629*ebfedea0SLionel Sambuc 2630*ebfedea0SLionel Sambuc2002-05-20 Jacques Vidrine <n@nectar.com> 2631*ebfedea0SLionel Sambuc 2632*ebfedea0SLionel Sambuc * verify_mic.c (gss_verify_mic), unwrap.c (gss_unwrap): initialize 2633*ebfedea0SLionel Sambuc the qop_state parameter. from Doug Rabson <dfr@nlsystems.com> 2634*ebfedea0SLionel Sambuc 2635*ebfedea0SLionel Sambuc2002-05-09 Jacques Vidrine <n@nectar.com> 2636*ebfedea0SLionel Sambuc 2637*ebfedea0SLionel Sambuc * acquire_cred.c: handle GSS_C_INITIATE/GSS_C_ACCEPT/GSS_C_BOTH 2638*ebfedea0SLionel Sambuc 2639*ebfedea0SLionel Sambuc2002-05-08 Jacques Vidrine <n@nectar.com> 2640*ebfedea0SLionel Sambuc 2641*ebfedea0SLionel Sambuc * acquire_cred.c: initialize gssapi; handle null desired_name 2642*ebfedea0SLionel Sambuc 2643*ebfedea0SLionel Sambuc2002-03-22 Johan Danielsson <joda@pdc.kth.se> 2644*ebfedea0SLionel Sambuc 2645*ebfedea0SLionel Sambuc * Makefile.am: remove non-functional stuff accidentally committed 2646*ebfedea0SLionel Sambuc 2647*ebfedea0SLionel Sambuc2002-03-11 Assar Westerlund <assar@sics.se> 2648*ebfedea0SLionel Sambuc 2649*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): bump version to 3:5:2 2650*ebfedea0SLionel Sambuc * 8003.c (gssapi_krb5_verify_8003_checksum): handle zero channel 2651*ebfedea0SLionel Sambuc bindings 2652*ebfedea0SLionel Sambuc 2653*ebfedea0SLionel Sambuc2001-10-31 Jacques Vidrine <n@nectar.com> 2654*ebfedea0SLionel Sambuc 2655*ebfedea0SLionel Sambuc * get_mic.c (mic_des3): MIC computation using DES3/SHA1 2656*ebfedea0SLionel Sambuc was bogusly appending the message buffer to the result, 2657*ebfedea0SLionel Sambuc overwriting a heap buffer in the process. 2658*ebfedea0SLionel Sambuc 2659*ebfedea0SLionel Sambuc2001-08-29 Assar Westerlund <assar@sics.se> 2660*ebfedea0SLionel Sambuc 2661*ebfedea0SLionel Sambuc * 8003.c (gssapi_krb5_verify_8003_checksum, 2662*ebfedea0SLionel Sambuc gssapi_krb5_create_8003_checksum): make more consistent by always 2663*ebfedea0SLionel Sambuc returning an gssapi error and setting minor status. update 2664*ebfedea0SLionel Sambuc callers 2665*ebfedea0SLionel Sambuc 2666*ebfedea0SLionel Sambuc2001-08-28 Jacques Vidrine <n@nectar.com> 2667*ebfedea0SLionel Sambuc 2668*ebfedea0SLionel Sambuc * accept_sec_context.c: Create a cache for delegated credentials 2669*ebfedea0SLionel Sambuc when needed. 2670*ebfedea0SLionel Sambuc 2671*ebfedea0SLionel Sambuc2001-08-28 Assar Westerlund <assar@sics.se> 2672*ebfedea0SLionel Sambuc 2673*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): set version to 3:4:2 2674*ebfedea0SLionel Sambuc 2675*ebfedea0SLionel Sambuc2001-08-23 Assar Westerlund <assar@sics.se> 2676*ebfedea0SLionel Sambuc 2677*ebfedea0SLionel Sambuc * *.c: handle minor_status more consistently 2678*ebfedea0SLionel Sambuc 2679*ebfedea0SLionel Sambuc * display_status.c (gss_display_status): handle krb5_get_err_text 2680*ebfedea0SLionel Sambuc failing 2681*ebfedea0SLionel Sambuc 2682*ebfedea0SLionel Sambuc2001-08-15 Johan Danielsson <joda@pdc.kth.se> 2683*ebfedea0SLionel Sambuc 2684*ebfedea0SLionel Sambuc * gssapi_locl.h: fix prototype for gssapi_krb5_init 2685*ebfedea0SLionel Sambuc 2686*ebfedea0SLionel Sambuc2001-08-13 Johan Danielsson <joda@pdc.kth.se> 2687*ebfedea0SLionel Sambuc 2688*ebfedea0SLionel Sambuc * accept_sec_context.c (gsskrb5_register_acceptor_identity): init 2689*ebfedea0SLionel Sambuc context and check return value from kt_resolve 2690*ebfedea0SLionel Sambuc 2691*ebfedea0SLionel Sambuc * init.c: return error code 2692*ebfedea0SLionel Sambuc 2693*ebfedea0SLionel Sambuc2001-07-19 Assar Westerlund <assar@sics.se> 2694*ebfedea0SLionel Sambuc 2695*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): update to 3:3:2 2696*ebfedea0SLionel Sambuc 2697*ebfedea0SLionel Sambuc2001-07-12 Assar Westerlund <assar@sics.se> 2698*ebfedea0SLionel Sambuc 2699*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LIBADD): add required library 2700*ebfedea0SLionel Sambuc dependencies 2701*ebfedea0SLionel Sambuc 2702*ebfedea0SLionel Sambuc2001-07-06 Assar Westerlund <assar@sics.se> 2703*ebfedea0SLionel Sambuc 2704*ebfedea0SLionel Sambuc * accept_sec_context.c (gsskrb5_register_acceptor_identity): set 2705*ebfedea0SLionel Sambuc the keytab to be used for gss_acquire_cred too' 2706*ebfedea0SLionel Sambuc 2707*ebfedea0SLionel Sambuc2001-07-03 Assar Westerlund <assar@sics.se> 2708*ebfedea0SLionel Sambuc 2709*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): set version to 3:2:2 2710*ebfedea0SLionel Sambuc 2711*ebfedea0SLionel Sambuc2001-06-18 Assar Westerlund <assar@sics.se> 2712*ebfedea0SLionel Sambuc 2713*ebfedea0SLionel Sambuc * wrap.c: replace gss_krb5_getsomekey with gss_krb5_get_localkey 2714*ebfedea0SLionel Sambuc and gss_krb5_get_remotekey 2715*ebfedea0SLionel Sambuc * verify_mic.c: update krb5_auth_con function names use 2716*ebfedea0SLionel Sambuc gss_krb5_get_remotekey 2717*ebfedea0SLionel Sambuc * unwrap.c: replace gss_krb5_getsomekey with gss_krb5_get_localkey 2718*ebfedea0SLionel Sambuc and gss_krb5_get_remotekey 2719*ebfedea0SLionel Sambuc * gssapi_locl.h (gss_krb5_get_remotekey, gss_krb5_get_localkey): 2720*ebfedea0SLionel Sambuc add prototypes 2721*ebfedea0SLionel Sambuc * get_mic.c: update krb5_auth_con function names. use 2722*ebfedea0SLionel Sambuc gss_krb5_get_localkey 2723*ebfedea0SLionel Sambuc * accept_sec_context.c: update krb5_auth_con function names 2724*ebfedea0SLionel Sambuc 2725*ebfedea0SLionel Sambuc2001-05-17 Assar Westerlund <assar@sics.se> 2726*ebfedea0SLionel Sambuc 2727*ebfedea0SLionel Sambuc * Makefile.am: bump version to 3:1:2 2728*ebfedea0SLionel Sambuc 2729*ebfedea0SLionel Sambuc2001-05-14 Assar Westerlund <assar@sics.se> 2730*ebfedea0SLionel Sambuc 2731*ebfedea0SLionel Sambuc * address_to_krb5addr.c: adapt to new address functions 2732*ebfedea0SLionel Sambuc 2733*ebfedea0SLionel Sambuc2001-05-11 Assar Westerlund <assar@sics.se> 2734*ebfedea0SLionel Sambuc 2735*ebfedea0SLionel Sambuc * try to return the error string from libkrb5 where applicable 2736*ebfedea0SLionel Sambuc 2737*ebfedea0SLionel Sambuc2001-05-08 Assar Westerlund <assar@sics.se> 2738*ebfedea0SLionel Sambuc 2739*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): remember to free 2740*ebfedea0SLionel Sambuc the memory used by the ticket itself. from <tmartin@mirapoint.com> 2741*ebfedea0SLionel Sambuc 2742*ebfedea0SLionel Sambuc2001-05-04 Assar Westerlund <assar@sics.se> 2743*ebfedea0SLionel Sambuc 2744*ebfedea0SLionel Sambuc * gssapi_locl.h: add config.h for completeness 2745*ebfedea0SLionel Sambuc * gssapi.h: remove config.h, this is an installed header file 2746*ebfedea0SLionel Sambuc sys/types.h is not needed either 2747*ebfedea0SLionel Sambuc 2748*ebfedea0SLionel Sambuc2001-03-12 Assar Westerlund <assar@sics.se> 2749*ebfedea0SLionel Sambuc 2750*ebfedea0SLionel Sambuc * acquire_cred.c (gss_acquire_cred): remove memory leaks. from 2751*ebfedea0SLionel Sambuc Jason R Thorpe <thorpej@zembu.com> 2752*ebfedea0SLionel Sambuc 2753*ebfedea0SLionel Sambuc2001-02-18 Assar Westerlund <assar@sics.se> 2754*ebfedea0SLionel Sambuc 2755*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): either return 2756*ebfedea0SLionel Sambuc gss_name NULL-ed or set 2757*ebfedea0SLionel Sambuc 2758*ebfedea0SLionel Sambuc * import_name.c: set minor_status in some cases where it was not 2759*ebfedea0SLionel Sambuc done 2760*ebfedea0SLionel Sambuc 2761*ebfedea0SLionel Sambuc2001-02-15 Assar Westerlund <assar@sics.se> 2762*ebfedea0SLionel Sambuc 2763*ebfedea0SLionel Sambuc * wrap.c: use krb5_generate_random_block for the confounders 2764*ebfedea0SLionel Sambuc 2765*ebfedea0SLionel Sambuc2001-01-30 Assar Westerlund <assar@sics.se> 2766*ebfedea0SLionel Sambuc 2767*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): bump version to 3:0:2 2768*ebfedea0SLionel Sambuc * acquire_cred.c, init_sec_context.c, release_cred.c: add support 2769*ebfedea0SLionel Sambuc for getting creds from a keytab, from fvdl@netbsd.org 2770*ebfedea0SLionel Sambuc 2771*ebfedea0SLionel Sambuc * copy_ccache.c: add gss_krb5_copy_ccache 2772*ebfedea0SLionel Sambuc 2773*ebfedea0SLionel Sambuc2001-01-27 Assar Westerlund <assar@sics.se> 2774*ebfedea0SLionel Sambuc 2775*ebfedea0SLionel Sambuc * get_mic.c: cast parameters to des function to non-const pointers 2776*ebfedea0SLionel Sambuc to handle the case where these functions actually take non-const 2777*ebfedea0SLionel Sambuc des_cblock * 2778*ebfedea0SLionel Sambuc 2779*ebfedea0SLionel Sambuc2001-01-09 Assar Westerlund <assar@sics.se> 2780*ebfedea0SLionel Sambuc 2781*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): use krb5_rd_cred2 2782*ebfedea0SLionel Sambuc instead of krb5_rd_cred 2783*ebfedea0SLionel Sambuc 2784*ebfedea0SLionel Sambuc2000-12-11 Assar Westerlund <assar@sics.se> 2785*ebfedea0SLionel Sambuc 2786*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): bump to 2:3:1 2787*ebfedea0SLionel Sambuc 2788*ebfedea0SLionel Sambuc2000-12-08 Assar Westerlund <assar@sics.se> 2789*ebfedea0SLionel Sambuc 2790*ebfedea0SLionel Sambuc * wrap.c (wrap_des3): use the checksum as ivec when encrypting the 2791*ebfedea0SLionel Sambuc sequence number 2792*ebfedea0SLionel Sambuc * unwrap.c (unwrap_des3): use the checksum as ivec when encrypting 2793*ebfedea0SLionel Sambuc the sequence number 2794*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): always zero fwd_data 2795*ebfedea0SLionel Sambuc 2796*ebfedea0SLionel Sambuc2000-12-06 Johan Danielsson <joda@pdc.kth.se> 2797*ebfedea0SLionel Sambuc 2798*ebfedea0SLionel Sambuc * accept_sec_context.c: de-pointerise auth_context parameter to 2799*ebfedea0SLionel Sambuc krb5_mk_rep 2800*ebfedea0SLionel Sambuc 2801*ebfedea0SLionel Sambuc2000-11-15 Assar Westerlund <assar@sics.se> 2802*ebfedea0SLionel Sambuc 2803*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): update to new 2804*ebfedea0SLionel Sambuc krb5_build_authenticator 2805*ebfedea0SLionel Sambuc 2806*ebfedea0SLionel Sambuc2000-09-19 Assar Westerlund <assar@sics.se> 2807*ebfedea0SLionel Sambuc 2808*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): bump to 2:2:1 2809*ebfedea0SLionel Sambuc 2810*ebfedea0SLionel Sambuc2000-08-27 Assar Westerlund <assar@sics.se> 2811*ebfedea0SLionel Sambuc 2812*ebfedea0SLionel Sambuc * init_sec_context.c: actually pay attention to `time_req' 2813*ebfedea0SLionel Sambuc * init_sec_context.c: re-organize. leak less memory. 2814*ebfedea0SLionel Sambuc * gssapi_locl.h (gssapi_krb5_encapsulate, gss_krb5_getsomekey): 2815*ebfedea0SLionel Sambuc update prototypes add assert.h 2816*ebfedea0SLionel Sambuc * gssapi.h (GSS_KRB5_CONF_C_QOP_DES, GSS_KRB5_CONF_C_QOP_DES3_KD): 2817*ebfedea0SLionel Sambuc add 2818*ebfedea0SLionel Sambuc * verify_mic.c: re-organize and add 3DES code 2819*ebfedea0SLionel Sambuc * wrap.c: re-organize and add 3DES code 2820*ebfedea0SLionel Sambuc * unwrap.c: re-organize and add 3DES code 2821*ebfedea0SLionel Sambuc * get_mic.c: re-organize and add 3DES code 2822*ebfedea0SLionel Sambuc * encapsulate.c (gssapi_krb5_encapsulate): do not free `in_data', 2823*ebfedea0SLionel Sambuc let the caller do that. fix the callers. 2824*ebfedea0SLionel Sambuc 2825*ebfedea0SLionel Sambuc2000-08-16 Assar Westerlund <assar@sics.se> 2826*ebfedea0SLionel Sambuc 2827*ebfedea0SLionel Sambuc * Makefile.am: bump version to 2:1:1 2828*ebfedea0SLionel Sambuc 2829*ebfedea0SLionel Sambuc2000-07-29 Assar Westerlund <assar@sics.se> 2830*ebfedea0SLionel Sambuc 2831*ebfedea0SLionel Sambuc * decapsulate.c (gssapi_krb5_verify_header): sanity-check length 2832*ebfedea0SLionel Sambuc 2833*ebfedea0SLionel Sambuc2000-07-25 Johan Danielsson <joda@pdc.kth.se> 2834*ebfedea0SLionel Sambuc 2835*ebfedea0SLionel Sambuc * Makefile.am: bump version to 2:0:1 2836*ebfedea0SLionel Sambuc 2837*ebfedea0SLionel Sambuc2000-07-22 Assar Westerlund <assar@sics.se> 2838*ebfedea0SLionel Sambuc 2839*ebfedea0SLionel Sambuc * gssapi.h: update OID for GSS_C_NT_HOSTBASED_SERVICE and other 2840*ebfedea0SLionel Sambuc details from rfc2744 2841*ebfedea0SLionel Sambuc 2842*ebfedea0SLionel Sambuc2000-06-29 Assar Westerlund <assar@sics.se> 2843*ebfedea0SLionel Sambuc 2844*ebfedea0SLionel Sambuc * address_to_krb5addr.c (gss_address_to_krb5addr): actually use 2845*ebfedea0SLionel Sambuc `int' instead of `sa_family_t' for the address family. 2846*ebfedea0SLionel Sambuc 2847*ebfedea0SLionel Sambuc2000-06-21 Assar Westerlund <assar@sics.se> 2848*ebfedea0SLionel Sambuc 2849*ebfedea0SLionel Sambuc * add support for token delegation. From Daniel Kouril 2850*ebfedea0SLionel Sambuc <kouril@ics.muni.cz> and Miroslav Ruda <ruda@ics.muni.cz> 2851*ebfedea0SLionel Sambuc 2852*ebfedea0SLionel Sambuc2000-05-15 Assar Westerlund <assar@sics.se> 2853*ebfedea0SLionel Sambuc 2854*ebfedea0SLionel Sambuc * Makefile.am (libgssapi_la_LDFLAGS): set version to 1:1:1 2855*ebfedea0SLionel Sambuc 2856*ebfedea0SLionel Sambuc2000-04-12 Assar Westerlund <assar@sics.se> 2857*ebfedea0SLionel Sambuc 2858*ebfedea0SLionel Sambuc * release_oid_set.c (gss_release_oid_set): clear set for 2859*ebfedea0SLionel Sambuc robustness. From GOMBAS Gabor <gombasg@inf.elte.hu> 2860*ebfedea0SLionel Sambuc * release_name.c (gss_release_name): reset input_name for 2861*ebfedea0SLionel Sambuc robustness. From GOMBAS Gabor <gombasg@inf.elte.hu> 2862*ebfedea0SLionel Sambuc * release_buffer.c (gss_release_buffer): set value to NULL to be 2863*ebfedea0SLionel Sambuc more robust. From GOMBAS Gabor <gombasg@inf.elte.hu> 2864*ebfedea0SLionel Sambuc * add_oid_set_member.c (gss_add_oid_set_member): actually check if 2865*ebfedea0SLionel Sambuc the oid is a member first. leave the oid_set unchanged if realloc 2866*ebfedea0SLionel Sambuc fails. 2867*ebfedea0SLionel Sambuc 2868*ebfedea0SLionel Sambuc2000-02-13 Assar Westerlund <assar@sics.se> 2869*ebfedea0SLionel Sambuc 2870*ebfedea0SLionel Sambuc * Makefile.am: set version to 1:0:1 2871*ebfedea0SLionel Sambuc 2872*ebfedea0SLionel Sambuc2000-02-12 Assar Westerlund <assar@sics.se> 2873*ebfedea0SLionel Sambuc 2874*ebfedea0SLionel Sambuc * gssapi_locl.h: add flags for import/export 2875*ebfedea0SLionel Sambuc * import_sec_context.c (import_sec_context: add flags for what 2876*ebfedea0SLionel Sambuc fields are included. do not include the authenticator for now. 2877*ebfedea0SLionel Sambuc * export_sec_context.c (export_sec_context: add flags for what 2878*ebfedea0SLionel Sambuc fields are included. do not include the authenticator for now. 2879*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): set target in 2880*ebfedea0SLionel Sambuc context_handle 2881*ebfedea0SLionel Sambuc 2882*ebfedea0SLionel Sambuc2000-02-11 Assar Westerlund <assar@sics.se> 2883*ebfedea0SLionel Sambuc 2884*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): set context to 2885*ebfedea0SLionel Sambuc GSS_C_NO_CONTEXT 2886*ebfedea0SLionel Sambuc 2887*ebfedea0SLionel Sambuc * Makefile.am: add {export,import}_sec_context.c 2888*ebfedea0SLionel Sambuc * export_sec_context.c: new file 2889*ebfedea0SLionel Sambuc * import_sec_context.c: new file 2890*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): set trans flag 2891*ebfedea0SLionel Sambuc 2892*ebfedea0SLionel Sambuc2000-02-07 Assar Westerlund <assar@sics.se> 2893*ebfedea0SLionel Sambuc 2894*ebfedea0SLionel Sambuc * Makefile.am: set version to 0:5:0 2895*ebfedea0SLionel Sambuc 2896*ebfedea0SLionel Sambuc2000-01-26 Assar Westerlund <assar@sics.se> 2897*ebfedea0SLionel Sambuc 2898*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): handle a NULL 2899*ebfedea0SLionel Sambuc output_token 2900*ebfedea0SLionel Sambuc 2901*ebfedea0SLionel Sambuc * wrap.c: update to pseudo-standard APIs for md4,md5,sha. some 2902*ebfedea0SLionel Sambuc changes to libdes calls to make them more portable. 2903*ebfedea0SLionel Sambuc * verify_mic.c: update to pseudo-standard APIs for md4,md5,sha. 2904*ebfedea0SLionel Sambuc some changes to libdes calls to make them more portable. 2905*ebfedea0SLionel Sambuc * unwrap.c: update to pseudo-standard APIs for md4,md5,sha. some 2906*ebfedea0SLionel Sambuc changes to libdes calls to make them more portable. 2907*ebfedea0SLionel Sambuc * get_mic.c: update to pseudo-standard APIs for md4,md5,sha. some 2908*ebfedea0SLionel Sambuc changes to libdes calls to make them more portable. 2909*ebfedea0SLionel Sambuc * 8003.c: update to pseudo-standard APIs for md4,md5,sha. 2910*ebfedea0SLionel Sambuc 2911*ebfedea0SLionel Sambuc2000-01-06 Assar Westerlund <assar@sics.se> 2912*ebfedea0SLionel Sambuc 2913*ebfedea0SLionel Sambuc * Makefile.am: set version to 0:4:0 2914*ebfedea0SLionel Sambuc 2915*ebfedea0SLionel Sambuc1999-12-26 Assar Westerlund <assar@sics.se> 2916*ebfedea0SLionel Sambuc 2917*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): always set 2918*ebfedea0SLionel Sambuc `output_token' 2919*ebfedea0SLionel Sambuc * init_sec_context.c (init_auth): always initialize `output_token' 2920*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): always set 2921*ebfedea0SLionel Sambuc `output_token' 2922*ebfedea0SLionel Sambuc 2923*ebfedea0SLionel Sambuc1999-12-06 Assar Westerlund <assar@sics.se> 2924*ebfedea0SLionel Sambuc 2925*ebfedea0SLionel Sambuc * Makefile.am: bump version to 0:3:0 2926*ebfedea0SLionel Sambuc 2927*ebfedea0SLionel Sambuc1999-10-20 Assar Westerlund <assar@sics.se> 2928*ebfedea0SLionel Sambuc 2929*ebfedea0SLionel Sambuc * Makefile.am: set version to 0:2:0 2930*ebfedea0SLionel Sambuc 2931*ebfedea0SLionel Sambuc1999-09-21 Assar Westerlund <assar@sics.se> 2932*ebfedea0SLionel Sambuc 2933*ebfedea0SLionel Sambuc * init_sec_context.c (gss_init_sec_context): initialize `ticket' 2934*ebfedea0SLionel Sambuc 2935*ebfedea0SLionel Sambuc * gssapi.h (gss_ctx_id_t_desc): add ticket in here. ick. 2936*ebfedea0SLionel Sambuc 2937*ebfedea0SLionel Sambuc * delete_sec_context.c (gss_delete_sec_context): free ticket 2938*ebfedea0SLionel Sambuc 2939*ebfedea0SLionel Sambuc * accept_sec_context.c (gss_accept_sec_context): stove away 2940*ebfedea0SLionel Sambuc `krb5_ticket' in context so that ugly programs such as 2941*ebfedea0SLionel Sambuc gss_nt_server can get at it. uck. 2942*ebfedea0SLionel Sambuc 2943*ebfedea0SLionel Sambuc1999-09-20 Johan Danielsson <joda@pdc.kth.se> 2944*ebfedea0SLionel Sambuc 2945*ebfedea0SLionel Sambuc * accept_sec_context.c: set minor_status 2946*ebfedea0SLionel Sambuc 2947*ebfedea0SLionel Sambuc1999-08-04 Assar Westerlund <assar@sics.se> 2948*ebfedea0SLionel Sambuc 2949*ebfedea0SLionel Sambuc * display_status.c (calling_error, routine_error): right shift the 2950*ebfedea0SLionel Sambuc code to make it possible to index into the arrays 2951*ebfedea0SLionel Sambuc 2952*ebfedea0SLionel Sambuc1999-07-28 Assar Westerlund <assar@sics.se> 2953*ebfedea0SLionel Sambuc 2954*ebfedea0SLionel Sambuc * gssapi.h (GSS_C_AF_INET6): add 2955*ebfedea0SLionel Sambuc 2956*ebfedea0SLionel Sambuc * import_name.c (import_hostbased_name): set minor_status 2957*ebfedea0SLionel Sambuc 2958*ebfedea0SLionel Sambuc1999-07-26 Assar Westerlund <assar@sics.se> 2959*ebfedea0SLionel Sambuc 2960*ebfedea0SLionel Sambuc * Makefile.am: set version to 0:1:0 2961*ebfedea0SLionel Sambuc 2962*ebfedea0SLionel SambucWed Apr 7 14:05:15 1999 Johan Danielsson <joda@hella.pdc.kth.se> 2963*ebfedea0SLionel Sambuc 2964*ebfedea0SLionel Sambuc * display_status.c: set minor_status 2965*ebfedea0SLionel Sambuc 2966*ebfedea0SLionel Sambuc * init_sec_context.c: set minor_status 2967*ebfedea0SLionel Sambuc 2968*ebfedea0SLionel Sambuc * lib/gssapi/init.c: remove donep (check gssapi_krb5_context 2969*ebfedea0SLionel Sambuc directly) 2970*ebfedea0SLionel Sambuc 2971