1*ca1c9b0cSelric2002-12-19 Johan Danielsson <joda@pdc.kth.se> 2*ca1c9b0cSelric 3*ca1c9b0cSelric * lib/krb5/mk_rep.c: free allocated storage; reported by Howard 4*ca1c9b0cSelric Chu 5*ca1c9b0cSelric 6*ca1c9b0cSelric2002-12-08 Johan Danielsson <joda@pdc.kth.se> 7*ca1c9b0cSelric 8*ca1c9b0cSelric * kdc/kdc_locl.h: remove old encrypt_v4_ticket prototype 9*ca1c9b0cSelric 10*ca1c9b0cSelric2002-12-02 Johan Danielsson <joda@pdc.kth.se> 11*ca1c9b0cSelric 12*ca1c9b0cSelric * kpasswd/kpasswdd.c (doit): initialise sa_size to size of 13*ca1c9b0cSelric sockaddr_storage 14*ca1c9b0cSelric 15*ca1c9b0cSelric * kdc/connect.c (init_socket): initialise sa_size to size of 16*ca1c9b0cSelric sockaddr_storage 17*ca1c9b0cSelric 18*ca1c9b0cSelric2002-11-15 Johan Danielsson <joda@pdc.kth.se> 19*ca1c9b0cSelric 20*ca1c9b0cSelric * lib/krb5/krb5.h: remove trailing comma in enum 21*ca1c9b0cSelric 22*ca1c9b0cSelric2002-11-07 Johan Danielsson <joda@pdc.kth.se> 23*ca1c9b0cSelric 24*ca1c9b0cSelric * kdc/524.c: implement crude b2 style (non-)conversion for use 25*ca1c9b0cSelric with afs 26*ca1c9b0cSelric 27*ca1c9b0cSelric * kdc/kerberos4.c: move encrypt_v4_ticket to 524.c, since that's 28*ca1c9b0cSelric where it's used 29*ca1c9b0cSelric 30*ca1c9b0cSelric2002-10-21 Johan Danielsson <joda@pdc.kth.se> 31*ca1c9b0cSelric 32*ca1c9b0cSelric * lib/krb5/keytab_keyfile.c: more strcspn 33*ca1c9b0cSelric 34*ca1c9b0cSelric * lib/krb5/store_emem.c (emem_store): limit how much we allocate 35*ca1c9b0cSelric (from Olaf Kirch) 36*ca1c9b0cSelric 37*ca1c9b0cSelric * lib/krb5/principal.c: don't allow trailing backslashes in 38*ca1c9b0cSelric components 39*ca1c9b0cSelric 40*ca1c9b0cSelric * kdc/connect.c: check that %-quotes are followed by two hex 41*ca1c9b0cSelric digits 42*ca1c9b0cSelric 43*ca1c9b0cSelric * lib/krb5/keytab_any.c: properly close the open keytabs (from 44*ca1c9b0cSelric Larry Greenfield) 45*ca1c9b0cSelric 46*ca1c9b0cSelric * kdc/kaserver.c: make sure life is positive (from John Godehn) 47*ca1c9b0cSelric 48*ca1c9b0cSelric2002-10-17 Johan Danielsson <joda@pdc.kth.se> 49*ca1c9b0cSelric 50*ca1c9b0cSelric * kuser/klist.c (display_tokens): allow tokens up to size of 51*ca1c9b0cSelric buffer (from Magnus Holmberg) 52*ca1c9b0cSelric 53*ca1c9b0cSelric2002-09-29 Johan Danielsson <joda@pdc.kth.se> 54*ca1c9b0cSelric 55*ca1c9b0cSelric * lib/krb5/changepw.c (process_reply): fix reply length check 56*ca1c9b0cSelric calculation (reported by various people) 57*ca1c9b0cSelric 58*ca1c9b0cSelric2002-09-24 Johan Danielsson <joda@pdc.kth.se> 59*ca1c9b0cSelric 60*ca1c9b0cSelric * lib/krb5/keytab_file.c (fkt_remove_entry): check return value 61*ca1c9b0cSelric from start_seq_get (from Wynn Wilkes) 62*ca1c9b0cSelric 63*ca1c9b0cSelric2002-09-19 Johan Danielsson <joda@pdc.kth.se> 64*ca1c9b0cSelric 65*ca1c9b0cSelric * lib/krb5/context.c (krb5_set_config_files): return ENXIO instead 66*ca1c9b0cSelric of ENOENT when "unconfigured" 67*ca1c9b0cSelric 68*ca1c9b0cSelric2002-09-16 Jacques Vidrine <nectar@kth.se> 69*ca1c9b0cSelric 70*ca1c9b0cSelric * lib/krb5/kuserok.c, lib/krb5/prompter_posix.c: use strcspn 71*ca1c9b0cSelric to convert the newline to NUL in fgets results. 72*ca1c9b0cSelric 73*ca1c9b0cSelric2002-09-13 Johan Danielsson <joda@pdc.kth.se> 74*ca1c9b0cSelric 75*ca1c9b0cSelric * kuser/kinit.1: remove unneeded Ns 76*ca1c9b0cSelric 77*ca1c9b0cSelric * lib/krb5/krb5_appdefault.3: remove extra "application" 78*ca1c9b0cSelric 79*ca1c9b0cSelric * fix-export: remove autom4ate.cache 80*ca1c9b0cSelric 81*ca1c9b0cSelric2002-09-10 Johan Danielsson <joda@pdc.kth.se> 82*ca1c9b0cSelric 83*ca1c9b0cSelric * include/make_crypto.c: don't use function macros if possible 84*ca1c9b0cSelric 85*ca1c9b0cSelric * lib/krb5/krb5_locl.h: get limits.h for UINT_MAX 86*ca1c9b0cSelric 87*ca1c9b0cSelric * include/Makefile.am: use make_crypto to create crypto-headers.h 88*ca1c9b0cSelric 89*ca1c9b0cSelric * include/make_crypto.c: crypto header generation tool 90*ca1c9b0cSelric 91*ca1c9b0cSelric * configure.in: move crypto test to just after testing for krb4, 92*ca1c9b0cSelric and move roken tests to after both, this speeds up various failure 93*ca1c9b0cSelric cases with krb4 94*ca1c9b0cSelric 95*ca1c9b0cSelric * lib/krb5/config_file.c: don't use NULL when we mean 0 96*ca1c9b0cSelric 97*ca1c9b0cSelric * configure.in: we don't set package_libdir anymore, so no point 98*ca1c9b0cSelric in testing for it 99*ca1c9b0cSelric 100*ca1c9b0cSelric * tools/Makefile.am: subst INCLUDE_des 101*ca1c9b0cSelric 102*ca1c9b0cSelric * tools/krb5-config.in: add INCLUDE_des to cflags 103*ca1c9b0cSelric 104*ca1c9b0cSelric * configure.in: use AC_CONFIG_SRCDIR 105*ca1c9b0cSelric 106*ca1c9b0cSelric * fix-export: remove some unneeded stuff 107*ca1c9b0cSelric 108*ca1c9b0cSelric * kuser/kinit.c (do_524init): free principals 109*ca1c9b0cSelric 110*ca1c9b0cSelric2002-09-09 Jacques Vidrine <nectar@kth.se> 111*ca1c9b0cSelric 112*ca1c9b0cSelric * kdc/kerberos5.c (get_pa_etype_info, fix_transited_encoding), 113*ca1c9b0cSelric kdc/kaserver.c (krb5_ret_xdr_data), 114*ca1c9b0cSelric lib/krb5/transited.c (krb5_domain_x500_decode): Validate some 115*ca1c9b0cSelric counts: Check that they are non-negative, and that they are small 116*ca1c9b0cSelric enough to avoid integer overflow when used in memory allocation 117*ca1c9b0cSelric calculations. Potential problem areas pointed out by 118*ca1c9b0cSelric Sebastian Krahmer <krahmer@suse.de>. 119*ca1c9b0cSelric 120*ca1c9b0cSelric * lib/krb5/keytab_keyfile.c (akf_add_entry): Use O_EXCL when 121*ca1c9b0cSelric creating a new keyfile. 122*ca1c9b0cSelric 123*ca1c9b0cSelric2002-09-09 Johan Danielsson <joda@pdc.kth.se> 124*ca1c9b0cSelric 125*ca1c9b0cSelric * configure.in: don't try to build pam module 126*ca1c9b0cSelric 127*ca1c9b0cSelric2002-09-05 Johan Danielsson <joda@pdc.kth.se> 128*ca1c9b0cSelric 129*ca1c9b0cSelric * appl/kf/kf.c: fix warning string 130*ca1c9b0cSelric 131*ca1c9b0cSelric * lib/krb5/log.c (krb5_vlog_msg): delay message formating till we 132*ca1c9b0cSelric know we need it 133*ca1c9b0cSelric 134*ca1c9b0cSelric2002-09-04 Assar Westerlund <assar@kth.se> 135*ca1c9b0cSelric 136*ca1c9b0cSelric * kdc/kerberos5.c (encode_reply): correct error logging 137*ca1c9b0cSelric 138*ca1c9b0cSelric2002-09-04 Johan Danielsson <joda@pdc.kth.se> 139*ca1c9b0cSelric 140*ca1c9b0cSelric * lib/krb5/sendauth.c: close ccache if we opened it 141*ca1c9b0cSelric 142*ca1c9b0cSelric * appl/kf/kf.c: handle new protocol 143*ca1c9b0cSelric 144*ca1c9b0cSelric * appl/kf/kfd.c: use krb5_err instead of sysloging directly, 145*ca1c9b0cSelric handle the new protocol, and bail out if an old client tries to 146*ca1c9b0cSelric connect 147*ca1c9b0cSelric 148*ca1c9b0cSelric * appl/kf/kf_locl.h: we need a protocol version string 149*ca1c9b0cSelric 150*ca1c9b0cSelric * lib/hdb/hdb-ldap.c: use ASN1_MALLOC_ENCODE 151*ca1c9b0cSelric 152*ca1c9b0cSelric * kdc/kerberos5.c: use ASN1_MALLOC_ENCODE 153*ca1c9b0cSelric 154*ca1c9b0cSelric * kdc/hprop.c: set AP_OPTS_USE_SUBKEY 155*ca1c9b0cSelric 156*ca1c9b0cSelric * lib/hdb/common.c: use ASN1_MALLOC_ENCODE 157*ca1c9b0cSelric 158*ca1c9b0cSelric * lib/asn1/gen.c: add convenience macro that allocates a buffer 159*ca1c9b0cSelric and encoded into that 160*ca1c9b0cSelric 161*ca1c9b0cSelric * lib/krb5/get_cred.c (init_tgs_req): use 162*ca1c9b0cSelric in_creds->session.keytype literally instead of trying to convert 163*ca1c9b0cSelric to a list of enctypes (it should already be an enctype) 164*ca1c9b0cSelric 165*ca1c9b0cSelric * lib/krb5/get_cred.c (init_tgs_req): init ret 166*ca1c9b0cSelric 167*ca1c9b0cSelric2002-09-03 Johan Danielsson <joda@pdc.kth.se> 168*ca1c9b0cSelric 169*ca1c9b0cSelric * lib/asn1/k5.asn1: remove ETYPE_DES3_CBC_NONE_IVEC 170*ca1c9b0cSelric 171*ca1c9b0cSelric * lib/krb5/krb5.h: remove ENCTYPE_DES3_CBC_NONE_IVEC 172*ca1c9b0cSelric 173*ca1c9b0cSelric * lib/krb5/crypto.c: get rid of DES3_CBC_encrypt_ivec, just use 174*ca1c9b0cSelric zero ivec in DES3_CBC_encrypt if passed ivec is NULL 175*ca1c9b0cSelric 176*ca1c9b0cSelric * lib/krb5/Makefile.am: back out 1.144, since it will re-create 177*ca1c9b0cSelric krb5-protos.h at build-time, which requires perl, which is bad 178*ca1c9b0cSelric 179*ca1c9b0cSelric * lib/krb5/get_for_creds.c (krb5_get_forwarded_creds): don't 180*ca1c9b0cSelric blindly use the local subkey 181*ca1c9b0cSelric 182*ca1c9b0cSelric * lib/krb5/crypto.c: add function krb5_crypto_getblocksize that 183*ca1c9b0cSelric extracts the required blocksize from a crypto context 184*ca1c9b0cSelric 185*ca1c9b0cSelric * lib/krb5/build_auth.c: just get the length of the encoded 186*ca1c9b0cSelric authenticator instead of trying to grow a buffer 187*ca1c9b0cSelric 188*ca1c9b0cSelric2002-09-03 Assar Westerlund <assar@kth.se> 189*ca1c9b0cSelric 190*ca1c9b0cSelric * configure.in: add --disable-mmap option, and tests for 191*ca1c9b0cSelric sys/mman.h and mmap 192*ca1c9b0cSelric 193*ca1c9b0cSelric2002-09-03 Jacques Vidrine <nectar@kth.se> 194*ca1c9b0cSelric 195*ca1c9b0cSelric * lib/krb5/changepw.c: verify lengths in response 196*ca1c9b0cSelric 197*ca1c9b0cSelric * lib/asn1/der_get.c (decode_integer, decode_unsigned): check for 198*ca1c9b0cSelric truncated integers 199*ca1c9b0cSelric 200*ca1c9b0cSelric2002-09-02 Johan Danielsson <joda@pdc.kth.se> 201*ca1c9b0cSelric 202*ca1c9b0cSelric * lib/krb5/mk_req_ext.c: generate a local subkey if 203*ca1c9b0cSelric AP_OPTS_USE_SUBKEY is set 204*ca1c9b0cSelric 205*ca1c9b0cSelric * lib/krb5/build_auth.c: we don't have enough information about 206*ca1c9b0cSelric whether to generate a local subkey here, so don't try to 207*ca1c9b0cSelric 208*ca1c9b0cSelric * lib/krb5/auth_context.c: new function 209*ca1c9b0cSelric krb5_auth_con_generatelocalsubkey 210*ca1c9b0cSelric 211*ca1c9b0cSelric * lib/krb5/get_in_tkt.c: only set kdc_sec_offset if looking at an 212*ca1c9b0cSelric initial ticket 213*ca1c9b0cSelric 214*ca1c9b0cSelric * lib/krb5/context.c (init_context_from_config_file): simplify 215*ca1c9b0cSelric initialisation of srv_lookup 216*ca1c9b0cSelric 217*ca1c9b0cSelric * lib/krb5/changepw.c (send_request): set AP_OPTS_USE_SUBKEY 218*ca1c9b0cSelric 219*ca1c9b0cSelric * lib/krb5/krb5.h: add AP_OPTS_USE_SUBKEY 220*ca1c9b0cSelric 221*ca1c9b0cSelric2002-08-30 Assar Westerlund <assar@kth.se> 222*ca1c9b0cSelric 223*ca1c9b0cSelric * lib/krb5/name-45-test.c: also test krb5_524_conv_principal 224*ca1c9b0cSelric * lib/krb5/Makefile.am (TESTS): add name-45-test 225*ca1c9b0cSelric * lib/krb5/name-45-test.c: add testcases for 226*ca1c9b0cSelric krb5_425_conv_principal 227*ca1c9b0cSelric 228*ca1c9b0cSelric2002-08-29 Assar Westerlund <assar@kth.se> 229*ca1c9b0cSelric 230*ca1c9b0cSelric * lib/krb5/parse-name-test.c: also test unparse_short functions 231*ca1c9b0cSelric * lib/asn1/asn1_print.c: use com_err/error_message API 232*ca1c9b0cSelric * lib/krb5/Makefile.am: add parse-name-test 233*ca1c9b0cSelric * lib/krb5/parse-name-test.c: add a program for testing parsing 234*ca1c9b0cSelric and unparsing principal names 235*ca1c9b0cSelric 236*ca1c9b0cSelric2002-08-28 Assar Westerlund <assar@kth.se> 237*ca1c9b0cSelric 238*ca1c9b0cSelric * kdc/config.c: add missing ifdef DAEMON 239*ca1c9b0cSelric 240*ca1c9b0cSelric2002-08-28 Johan Danielsson <joda@pdc.kth.se> 241*ca1c9b0cSelric 242*ca1c9b0cSelric * configure.in: use rk_SUNOS 243*ca1c9b0cSelric 244*ca1c9b0cSelric * kdc/config.c: add detach options 245*ca1c9b0cSelric 246*ca1c9b0cSelric * kdc/main.c: maybe detach from console? 247*ca1c9b0cSelric 248*ca1c9b0cSelric * kdc/kdc.8: markup changes 249*ca1c9b0cSelric 250*ca1c9b0cSelric * configure.in: AC_TEST_PACKAGE_NEW -> rk_TEST_PACKAGE 251*ca1c9b0cSelric 252*ca1c9b0cSelric * configure.in: use rk_TELNET, rename some other macros, and don't 253*ca1c9b0cSelric add -ldes to krb4 link command 254*ca1c9b0cSelric 255*ca1c9b0cSelric * kuser/kinit.1: whitespace fix (from NetBSD) 256*ca1c9b0cSelric 257*ca1c9b0cSelric * include/bits.c: we may need unistd.h for ssize_t 258*ca1c9b0cSelric 259*ca1c9b0cSelric2002-08-26 Assar Westerlund <assar@kth.se> 260*ca1c9b0cSelric 261*ca1c9b0cSelric * lib/krb5/principal.c (krb5_425_conv_principal_ext): lookup AAAA 262*ca1c9b0cSelric rrs before A ones when using the resolver to verify a mapping, 263*ca1c9b0cSelric also use getaddrinfo when resolver is not available 264*ca1c9b0cSelric 265*ca1c9b0cSelric * lib/hdb/keytab.c (find_db): const-correctness in parameters to 266*ca1c9b0cSelric krb5_config_get_next 267*ca1c9b0cSelric 268*ca1c9b0cSelric * lib/asn1/gen.c: include <string.h> in the generated files (for 269*ca1c9b0cSelric memset) 270*ca1c9b0cSelric 271*ca1c9b0cSelric2002-08-22 Assar Westerlund <assar@kth.se> 272*ca1c9b0cSelric 273*ca1c9b0cSelric * lib/krb5/test_get_addrs.c, lib/krb5/krbhst-test.c: make it use 274*ca1c9b0cSelric getarg so that it can handle --help and --version (and thus make 275*ca1c9b0cSelric check can pass) 276*ca1c9b0cSelric 277*ca1c9b0cSelric * lib/asn1/check-der.c: make this build again 278*ca1c9b0cSelric 279*ca1c9b0cSelric2002-08-22 Assar Westerlund <assar@kth.se> 280*ca1c9b0cSelric 281*ca1c9b0cSelric * lib/asn1/der_get.c (der_get_int): handle len == 0. based on a 282*ca1c9b0cSelric patch from Love <lha@stacken.kth.se> 283*ca1c9b0cSelric 284*ca1c9b0cSelric2002-08-22 Johan Danielsson <joda@pdc.kth.se> 285*ca1c9b0cSelric 286*ca1c9b0cSelric * lib/krb5/krb5.h: we seem to call KRB5KDC_ERR_KEY_EXP 287*ca1c9b0cSelric KRB5KDC_ERR_KEY_EXPIRED, so define the former to the latter 288*ca1c9b0cSelric 289*ca1c9b0cSelric * kdc/kdc.8: add blurb about adding and removing addresses; update 290*ca1c9b0cSelric kdc.conf section to match reality 291*ca1c9b0cSelric 292*ca1c9b0cSelric * configure.in: KRB_SENDAUTH_VLEN seems to always have existed, so 293*ca1c9b0cSelric don't define it 294*ca1c9b0cSelric 295*ca1c9b0cSelric2002-08-21 Assar Westerlund <assar@kth.se> 296*ca1c9b0cSelric 297*ca1c9b0cSelric * lib/asn1/asn1_print.c: print OIDs too, based on a patch from 298*ca1c9b0cSelric Love <lha@stacken.kth.se> 299*ca1c9b0cSelric 300*ca1c9b0cSelric2002-08-21 Johan Danielsson <joda@pdc.kth.se> 301*ca1c9b0cSelric 302*ca1c9b0cSelric * kuser/kinit.c (do_v4_fallback): don't use krb_get_pw_in_tkt2 303*ca1c9b0cSelric since it might not exist, and we don't actually care about the key 304*ca1c9b0cSelric 305*ca1c9b0cSelric2002-08-20 Johan Danielsson <joda@pdc.kth.se> 306*ca1c9b0cSelric 307*ca1c9b0cSelric * lib/krb5/krb5.conf.5: correct documentation for 308*ca1c9b0cSelric verify_ap_req_nofail 309*ca1c9b0cSelric 310*ca1c9b0cSelric * lib/krb5/log.c: rename syslog_data to avoid name conflicts (from 311*ca1c9b0cSelric Mattias Amnefelt) 312*ca1c9b0cSelric 313*ca1c9b0cSelric * kuser/klist.c (display_tokens): increase token buffer size, and 314*ca1c9b0cSelric add more checks of the kernel data (from Love) 315*ca1c9b0cSelric 316*ca1c9b0cSelric2002-08-19 Johan Danielsson <joda@pdc.kth.se> 317*ca1c9b0cSelric 318*ca1c9b0cSelric * fix-export: use make to parse Makefile.am instead of perl 319*ca1c9b0cSelric 320*ca1c9b0cSelric * configure.in: use argument-less AM_INIT_AUTOMAKE, now that it 321*ca1c9b0cSelric groks AC_INIT with package name etc. 322*ca1c9b0cSelric 323*ca1c9b0cSelric * kpasswd/kpasswdd.c: include <kadm5/private.h> 324*ca1c9b0cSelric 325*ca1c9b0cSelric * lib/asn1/asn1_print.c: include com_right.h 326*ca1c9b0cSelric 327*ca1c9b0cSelric * lib/krb5/addr_families.c: socklen_t -> krb5_socklen_t 328*ca1c9b0cSelric 329*ca1c9b0cSelric * include/bits.c: define krb5_socklen_t type; this should really 330*ca1c9b0cSelric go someplace else, but this was easy 331*ca1c9b0cSelric 332*ca1c9b0cSelric * lib/krb5/verify_krb5_conf.c: don't bail out if parsing of a file 333*ca1c9b0cSelric fails, just warn about it 334*ca1c9b0cSelric 335*ca1c9b0cSelric * kdc/log.c (kdc_openlog): no need for a config_file parameter 336*ca1c9b0cSelric 337*ca1c9b0cSelric * kdc/config.c: just treat kdc.conf like any other config file 338*ca1c9b0cSelric 339*ca1c9b0cSelric * lib/krb5/context.c (krb5_get_default_config_files): ignore 340*ca1c9b0cSelric duplicate files 341*ca1c9b0cSelric 342*ca1c9b0cSelric2002-08-16 Johan Danielsson <joda@pdc.kth.se> 343*ca1c9b0cSelric 344*ca1c9b0cSelric * lib/krb5/krb5.h: turn strings into pointers, so we can assign to 345*ca1c9b0cSelric them 346*ca1c9b0cSelric 347*ca1c9b0cSelric * lib/krb5/constants.c: turn strings into pointers, so we can 348*ca1c9b0cSelric assign to them 349*ca1c9b0cSelric 350*ca1c9b0cSelric * lib/krb5/get_addrs.c (get_addrs_int): initialise res if 351*ca1c9b0cSelric SCAN_INTERFACES is not set 352*ca1c9b0cSelric 353*ca1c9b0cSelric * lib/krb5/context.c: fix various borked stuff in previous commits 354*ca1c9b0cSelric 355*ca1c9b0cSelric2002-08-16 Jacques Vidrine <n@nectar.com> 356*ca1c9b0cSelric 357*ca1c9b0cSelric * lib/krb5/krbhst.c (kpasswd_get_next): if we fall back to using 358*ca1c9b0cSelric the `admin_server' entry for kpasswd, override the `proto' result 359*ca1c9b0cSelric to be UDP. 360*ca1c9b0cSelric 361*ca1c9b0cSelric2002-08-15 Johan Danielsson <joda@pdc.kth.se> 362*ca1c9b0cSelric 363*ca1c9b0cSelric * lib/krb5/auth_context.c: check return value of 364*ca1c9b0cSelric krb5_sockaddr2address 365*ca1c9b0cSelric 366*ca1c9b0cSelric * lib/krb5/addr_families.c: check return value of 367*ca1c9b0cSelric krb5_sockaddr2address 368*ca1c9b0cSelric 369*ca1c9b0cSelric * lib/krb5/context.c: get the default keytab from KRB5_KTNAME 370*ca1c9b0cSelric 371*ca1c9b0cSelric2002-08-14 Johan Danielsson <joda@pdc.kth.se> 372*ca1c9b0cSelric 373*ca1c9b0cSelric * lib/krb5/verify_krb5_conf.c: allow parsing of more than one file 374*ca1c9b0cSelric 375*ca1c9b0cSelric * lib/krb5/context.c: allow changing config files with the 376*ca1c9b0cSelric function krb5_set_config_files, there are also related functions 377*ca1c9b0cSelric krb5_get_default_config_files and krb5_free_config_files; these 378*ca1c9b0cSelric should work similar to their MIT counterparts 379*ca1c9b0cSelric 380*ca1c9b0cSelric * lib/krb5/config_file.c: allow the use of more than one config 381*ca1c9b0cSelric file by using the new function krb5_config_parse_file_multi 382*ca1c9b0cSelric 383*ca1c9b0cSelric2002-08-12 Johan Danielsson <joda@pdc.kth.se> 384*ca1c9b0cSelric 385*ca1c9b0cSelric * use sysconfdir instead of /etc 386*ca1c9b0cSelric 387*ca1c9b0cSelric * configure.in: require autoconf 2.53; rename dpagaix_LDFLAGS etc 388*ca1c9b0cSelric to appease automake; force sysconfdir and localstatedir to /etc 389*ca1c9b0cSelric and /var/heimdal for now 390*ca1c9b0cSelric 391*ca1c9b0cSelric * kdc/connect.c (addr_to_string): check return value of 392*ca1c9b0cSelric sockaddr2address 393*ca1c9b0cSelric 394*ca1c9b0cSelric2002-08-09 Johan Danielsson <joda@pdc.kth.se> 395*ca1c9b0cSelric 396*ca1c9b0cSelric * lib/krb5/rd_cred.c: if the remote address isn't an addrport, 397*ca1c9b0cSelric don't try comparing to one; this should make old clients work with 398*ca1c9b0cSelric new servers 399*ca1c9b0cSelric 400*ca1c9b0cSelric * lib/asn1/gen_decode.c: remove unused variable 401*ca1c9b0cSelric 402*ca1c9b0cSelric2002-07-31 Johan Danielsson <joda@pdc.kth.se> 403*ca1c9b0cSelric 404*ca1c9b0cSelric * kdc/{kerberos5,524}.c: ENOENT -> HDB_ERR_NOENTRY (from Derrick 405*ca1c9b0cSelric Brashear) 406*ca1c9b0cSelric 407*ca1c9b0cSelric * lib/krb5/principal.c: actually lower case the lower case 408*ca1c9b0cSelric instance name (spotted by Derrick Brashear) 409*ca1c9b0cSelric 410*ca1c9b0cSelric2002-07-24 Johan Danielsson <joda@pdc.kth.se> 411*ca1c9b0cSelric 412*ca1c9b0cSelric * fix-export: if DATEDVERSION is set, change the version to 413*ca1c9b0cSelric current date 414*ca1c9b0cSelric 415*ca1c9b0cSelric * configure.in: don't use AC_PROG_RANLIB, and use magic foo to set 416*ca1c9b0cSelric LTLIBOBJS 417*ca1c9b0cSelric 418*ca1c9b0cSelric2002-07-04 Johan Danielsson <joda@pdc.kth.se> 419*ca1c9b0cSelric 420*ca1c9b0cSelric * kdc/connect.c: add some cache-control-foo to the http responses 421*ca1c9b0cSelric (from Gombas Gabor) 422*ca1c9b0cSelric 423*ca1c9b0cSelric * lib/krb5/addr_families.c (krb5_print_address): don't copy size 424*ca1c9b0cSelric if ret_len == NULL 425*ca1c9b0cSelric 426*ca1c9b0cSelric2002-06-28 Johan Danielsson <joda@pdc.kth.se> 427*ca1c9b0cSelric 428*ca1c9b0cSelric * kuser/klist.c (display_tokens): don't bail out before we get 429*ca1c9b0cSelric EDOM (signaling the end of the tokens), the kernel can also return 430*ca1c9b0cSelric ENOTCONN, meaning that the index does not exist anymore (for 431*ca1c9b0cSelric example if the token has expired) 432*ca1c9b0cSelric 433*ca1c9b0cSelric2002-06-06 Johan Danielsson <joda@pdc.kth.se> 434*ca1c9b0cSelric 435*ca1c9b0cSelric * lib/krb5/changepw.c: make sure we return an error if there are 436*ca1c9b0cSelric no changepw hosts found; from Wynn Wilkes 437*ca1c9b0cSelric 438*ca1c9b0cSelric2002-05-29 Johan Danielsson <joda@pdc.kth.se> 439*ca1c9b0cSelric 440*ca1c9b0cSelric * lib/krb5/cache.c (krb5_cc_register): break out of loop when the 441*ca1c9b0cSelric same type is found; spotted by Wynn Wilkes 442*ca1c9b0cSelric 443*ca1c9b0cSelric2002-05-28 Johan Danielsson <joda@pdc.kth.se> 444*ca1c9b0cSelric 445*ca1c9b0cSelric * lib/krb5/keytab_file.c: check size of entry before trying to 446*ca1c9b0cSelric read 32-bit kvno; also fix typo in previous 447*ca1c9b0cSelric 448*ca1c9b0cSelric2002-05-24 Johan Danielsson <joda@pdc.kth.se> 449*ca1c9b0cSelric 450*ca1c9b0cSelric * include/Makefile.am: only add to INCLUDES 451*ca1c9b0cSelric 452*ca1c9b0cSelric * lib/45/mk_req.c: fix for storage change 453*ca1c9b0cSelric 454*ca1c9b0cSelric * lib/hdb/print.c: fix for storage change 455*ca1c9b0cSelric 456*ca1c9b0cSelric2002-05-15 Johan Danielsson <joda@pdc.kth.se> 457*ca1c9b0cSelric 458*ca1c9b0cSelric * kdc/kerberos5.c: don't free encrypted padata until we're really 459*ca1c9b0cSelric done with it 460*ca1c9b0cSelric 461*ca1c9b0cSelric2002-05-07 Johan Danielsson <joda@pdc.kth.se> 462*ca1c9b0cSelric 463*ca1c9b0cSelric * kdc/kerberos5.c: when decrypting pa-data, try all keys matching 464*ca1c9b0cSelric enctype 465*ca1c9b0cSelric 466*ca1c9b0cSelric * kuser/kinit.1: document -a 467*ca1c9b0cSelric 468*ca1c9b0cSelric * kuser/kinit.c: add command line switch for extra addresses 469*ca1c9b0cSelric 470*ca1c9b0cSelric2002-04-30 Johan Danielsson <joda@blubb.pdc.kth.se> 471*ca1c9b0cSelric 472*ca1c9b0cSelric * configure.in: remove some duplicate tests 473*ca1c9b0cSelric 474*ca1c9b0cSelric * configure.in: use AC_HELP_STRING 475*ca1c9b0cSelric 476*ca1c9b0cSelric2002-04-29 Johan Danielsson <joda@pdc.kth.se> 477*ca1c9b0cSelric 478*ca1c9b0cSelric * lib/krb5/crypto.c (usage2arcfour): don't abort if the usage is 479*ca1c9b0cSelric unknown 480*ca1c9b0cSelric 481*ca1c9b0cSelric2002-04-25 Johan Danielsson <joda@pdc.kth.se> 482*ca1c9b0cSelric 483*ca1c9b0cSelric * configure.in: use rk_DESTDIRS 484*ca1c9b0cSelric 485*ca1c9b0cSelric2002-04-22 Johan Danielsson <joda@pdc.kth.se> 486*ca1c9b0cSelric 487*ca1c9b0cSelric * lib/krb5/krb5_verify_user.3: make it clear that _lrealm modifies 488*ca1c9b0cSelric the principal 489*ca1c9b0cSelric 490*ca1c9b0cSelric2002-04-19 Johan Danielsson <joda@pdc.kth.se> 491*ca1c9b0cSelric 492*ca1c9b0cSelric * lib/krb5/verify_init.c: fix typo in error string 493*ca1c9b0cSelric 494*ca1c9b0cSelric2002-04-18 Johan Danielsson <joda@pdc.kth.se> 495*ca1c9b0cSelric 496*ca1c9b0cSelric * acconfig.h: remove some stuff that is defined elsewhere 497*ca1c9b0cSelric 498*ca1c9b0cSelric * lib/krb5/krb5_locl.h: include <sys/file.h> 499*ca1c9b0cSelric 500*ca1c9b0cSelric * lib/krb5/acl.c: rename acl_string parameter 501*ca1c9b0cSelric 502*ca1c9b0cSelric * lib/krb5/Makefile.am: remove __P from protos, and put parameter 503*ca1c9b0cSelric names in comments 504*ca1c9b0cSelric 505*ca1c9b0cSelric * kuser/klist.c: better align some headers 506*ca1c9b0cSelric 507*ca1c9b0cSelric * kdc/kerberos4.c: storage tweaks 508*ca1c9b0cSelric 509*ca1c9b0cSelric * kdc/kaserver.c: storage tweaks 510*ca1c9b0cSelric 511*ca1c9b0cSelric * kdc/524.c: storage tweaks 512*ca1c9b0cSelric 513*ca1c9b0cSelric * lib/krb5/keytab_krb4.c: storage tweaks 514*ca1c9b0cSelric 515*ca1c9b0cSelric * lib/krb5/keytab_keyfile.c: storage tweaks 516*ca1c9b0cSelric 517*ca1c9b0cSelric * lib/krb5/keytab_file.c: storage tweaks; also try to handle zero 518*ca1c9b0cSelric sized keytab files 519*ca1c9b0cSelric 520*ca1c9b0cSelric * lib/krb5/keytab_any.c: use KRB5_KT_END instead of KRB5_CC_END 521*ca1c9b0cSelric 522*ca1c9b0cSelric * lib/krb5/fcache.c: storage tweaks 523*ca1c9b0cSelric 524*ca1c9b0cSelric * lib/krb5/store_mem.c: make the krb5_storage opaque, and add 525*ca1c9b0cSelric function wrappers for store/fetch/seek, and also make the eof-code 526*ca1c9b0cSelric configurable 527*ca1c9b0cSelric 528*ca1c9b0cSelric * lib/krb5/store_fd.c: make the krb5_storage opaque, and add 529*ca1c9b0cSelric function wrappers for store/fetch/seek, and also make the eof-code 530*ca1c9b0cSelric configurable 531*ca1c9b0cSelric 532*ca1c9b0cSelric * lib/krb5/store_emem.c: make the krb5_storage opaque, and add 533*ca1c9b0cSelric function wrappers for store/fetch/seek, and also make the eof-code 534*ca1c9b0cSelric configurable 535*ca1c9b0cSelric 536*ca1c9b0cSelric * lib/krb5/store.c: make the krb5_storage opaque, and add function 537*ca1c9b0cSelric wrappers for store/fetch/seek, and also make the eof-code 538*ca1c9b0cSelric configurable 539*ca1c9b0cSelric 540*ca1c9b0cSelric * lib/krb5/store-int.h: make the krb5_storage opaque, and add 541*ca1c9b0cSelric function wrappers for store/fetch/seek, and also make the eof-code 542*ca1c9b0cSelric configurable 543*ca1c9b0cSelric 544*ca1c9b0cSelric * lib/krb5/krb5.h: make the krb5_storage opaque, and add function 545*ca1c9b0cSelric wrappers for store/fetch/seek, and also make the eof-code 546*ca1c9b0cSelric configurable 547*ca1c9b0cSelric 548*ca1c9b0cSelric * include/bits.c: include <sys/socket.h> to get socklen_t 549*ca1c9b0cSelric 550*ca1c9b0cSelric * kdc/kerberos5.c (get_pa_etype_info): sort ETYPE-INFOs by 551*ca1c9b0cSelric requested KDC-REQ etypes 552*ca1c9b0cSelric 553*ca1c9b0cSelric * kdc/hpropd.c: constify 554*ca1c9b0cSelric 555*ca1c9b0cSelric * kdc/hprop.c: constify 556*ca1c9b0cSelric 557*ca1c9b0cSelric * kdc/string2key.c: constify 558*ca1c9b0cSelric 559*ca1c9b0cSelric * kdc/kdc_locl.h: make port_str const 560*ca1c9b0cSelric 561*ca1c9b0cSelric * kdc/config.c: constify 562*ca1c9b0cSelric 563*ca1c9b0cSelric * lib/krb5/config_file.c: constify 564*ca1c9b0cSelric 565*ca1c9b0cSelric * kdc/kstash.c: constify 566*ca1c9b0cSelric 567*ca1c9b0cSelric * lib/krb5/verify_user.c: remove unnecessary cast 568*ca1c9b0cSelric 569*ca1c9b0cSelric * lib/krb5/recvauth.c: constify 570*ca1c9b0cSelric 571*ca1c9b0cSelric * lib/krb5/principal.c (krb5_parse_name): const qualify 572*ca1c9b0cSelric 573*ca1c9b0cSelric * lib/krb5/mcache.c (mcc_get_name): constify return type 574*ca1c9b0cSelric 575*ca1c9b0cSelric * lib/krb5/context.c (krb5_free_context): don't try to free the 576*ca1c9b0cSelric ccache prefix 577*ca1c9b0cSelric 578*ca1c9b0cSelric * lib/krb5/cache.c (krb5_cc_register): don't make a copy of the 579*ca1c9b0cSelric prefix 580*ca1c9b0cSelric 581*ca1c9b0cSelric * lib/krb5/krb5.h: constify some struct members 582*ca1c9b0cSelric 583*ca1c9b0cSelric * lib/krb5/log.c: constify 584*ca1c9b0cSelric 585*ca1c9b0cSelric * lib/krb5/init_creds_pw.c (krb5_get_init_creds_password): const 586*ca1c9b0cSelric qualify 587*ca1c9b0cSelric 588*ca1c9b0cSelric * lib/krb5/get_in_tkt.c (krb5_init_etype): constify 589*ca1c9b0cSelric 590*ca1c9b0cSelric * lib/krb5/crypto.c: constify some 591*ca1c9b0cSelric 592*ca1c9b0cSelric * lib/krb5/config_file.c: constify 593*ca1c9b0cSelric 594*ca1c9b0cSelric * lib/krb5/aname_to_localname.c (krb5_aname_to_localname): 595*ca1c9b0cSelric constify local variable 596*ca1c9b0cSelric 597*ca1c9b0cSelric * lib/krb5/addr_families.c (ipv4_sockaddr2port): constify 598*ca1c9b0cSelric 599*ca1c9b0cSelric2002-04-17 Johan Danielsson <joda@pdc.kth.se> 600*ca1c9b0cSelric 601*ca1c9b0cSelric * lib/krb5/verify_krb5_conf.c: add some log checking 602*ca1c9b0cSelric 603*ca1c9b0cSelric * lib/krb5/log.c (krb5_addlog_dest): reorganise syslog parsing 604*ca1c9b0cSelric 605*ca1c9b0cSelric2002-04-16 Johan Danielsson <joda@pdc.kth.se> 606*ca1c9b0cSelric 607*ca1c9b0cSelric * lib/krb5/crypto.c (krb5_crypto_init): check that the key size 608*ca1c9b0cSelric matches the expected length 609*ca1c9b0cSelric 610*ca1c9b0cSelric2002-03-27 Johan Danielsson <joda@pdc.kth.se> 611*ca1c9b0cSelric 612*ca1c9b0cSelric * lib/krb5/send_to_kdc.c: rename send parameter to send_data 613*ca1c9b0cSelric 614*ca1c9b0cSelric * lib/krb5/mk_error.c: rename ctime parameter to client_time 615*ca1c9b0cSelric 616*ca1c9b0cSelric2002-03-22 Johan Danielsson <joda@pdc.kth.se> 617*ca1c9b0cSelric 618*ca1c9b0cSelric * kdc/kerberos5.c (find_etype): unsigned -> krb5_enctype (from 619*ca1c9b0cSelric Reinoud Zandijk) 620*ca1c9b0cSelric 621*ca1c9b0cSelric2002-03-18 Johan Danielsson <joda@pdc.kth.se> 622*ca1c9b0cSelric 623*ca1c9b0cSelric * lib/asn1/k5.asn1: add the GSS-API checksum type here 624*ca1c9b0cSelric 625*ca1c9b0cSelric2002-03-11 Assar Westerlund <assar@sics.se> 626*ca1c9b0cSelric 627*ca1c9b0cSelric * lib/krb5/Makefile.am (libkrb5_la_LDFLAGS): bump version to 628*ca1c9b0cSelric 18:3:1 629*ca1c9b0cSelric * lib/hdb/Makefile.am (libhdb_la_LDFLAGS): bump version to 7:5:0 630*ca1c9b0cSelric * lib/asn1/Makefile.am (libasn1_la_LDFLAGS): bump version to 6:0:0 631*ca1c9b0cSelric 632*ca1c9b0cSelric2002-03-10 Assar Westerlund <assar@sics.se> 633*ca1c9b0cSelric 634*ca1c9b0cSelric * lib/krb5/rd_cred.c: handle addresses with port numbers 635*ca1c9b0cSelric 636*ca1c9b0cSelric * lib/krb5/keytab_file.c, lib/krb5/keytab.c: 637*ca1c9b0cSelric store the kvno % 256 as the byte and the complete 32 bit kvno after 638*ca1c9b0cSelric the end of the current keytab entry 639*ca1c9b0cSelric 640*ca1c9b0cSelric * lib/krb5/init_creds_pw.c: 641*ca1c9b0cSelric handle LR_PW_EXPTIME and LR_ACCT_EXPTIME in the same way 642*ca1c9b0cSelric 643*ca1c9b0cSelric * lib/krb5/get_for_creds.c (krb5_get_forwarded_creds): 644*ca1c9b0cSelric handle ports giving for the remote address 645*ca1c9b0cSelric 646*ca1c9b0cSelric * lib/krb5/get_cred.c: 647*ca1c9b0cSelric get a ticket with no addresses if no-addresses is set 648*ca1c9b0cSelric 649*ca1c9b0cSelric * lib/krb5/crypto.c: 650*ca1c9b0cSelric rename functions DES_* to krb5_* to avoid colliding with modern 651*ca1c9b0cSelric openssl 652*ca1c9b0cSelric 653*ca1c9b0cSelric * lib/krb5/addr_families.c: 654*ca1c9b0cSelric make all functions taking 'struct sockaddr' actually take a socklen_t 655*ca1c9b0cSelric instead of int and that acts as an in-out parameter (indicating the 656*ca1c9b0cSelric maximum length of the sockaddr to be written) 657*ca1c9b0cSelric 658*ca1c9b0cSelric * kdc/kerberos4.c: 659*ca1c9b0cSelric make the kvno's in the krb4 universe by the real one % 256, since they 660*ca1c9b0cSelric cannot only be 8 bit, and the v5 ones are actually 32 bits 661*ca1c9b0cSelric 662*ca1c9b0cSelric2002-02-15 Johan Danielsson <joda@pdc.kth.se> 663*ca1c9b0cSelric 664*ca1c9b0cSelric * lib/krb5/keytab_keyfile.c (akf_add_entry): don't create the file 665*ca1c9b0cSelric before we need to write to it 666*ca1c9b0cSelric (from Åke Sandgren) 667*ca1c9b0cSelric 668*ca1c9b0cSelric2002-02-14 Johan Danielsson <joda@pdc.kth.se> 669*ca1c9b0cSelric 670*ca1c9b0cSelric * configure.in: rk_RETSIGTYPE and rk_BROKEN_REALLOC are called via 671*ca1c9b0cSelric rk_ROKEN (from Gombas Gabor); find inttypes by CHECK_TYPES 672*ca1c9b0cSelric directly 673*ca1c9b0cSelric 674*ca1c9b0cSelric * lib/krb5/rd_safe.c: actually use the correct key (from Daniel 675*ca1c9b0cSelric Kouril) 676*ca1c9b0cSelric 677*ca1c9b0cSelric2002-02-12 Johan Danielsson <joda@pdc.kth.se> 678*ca1c9b0cSelric 679*ca1c9b0cSelric * lib/krb5/context.c (krb5_get_err_text): protect against NULL 680*ca1c9b0cSelric context 681*ca1c9b0cSelric 682*ca1c9b0cSelric2002-02-11 Johan Danielsson <joda@pdc.kth.se> 683*ca1c9b0cSelric 684*ca1c9b0cSelric * admin/ktutil.c: no need to use the "modify" keytab anymore 685*ca1c9b0cSelric 686*ca1c9b0cSelric * lib/krb5/keytab_any.c: implement add and remove 687*ca1c9b0cSelric 688*ca1c9b0cSelric * lib/krb5/keytab_krb4.c: implement add and remove 689*ca1c9b0cSelric 690*ca1c9b0cSelric * lib/krb5/store_emem.c (emem_free): clear memory before freeing 691*ca1c9b0cSelric (this should perhaps be selectable with a flag) 692*ca1c9b0cSelric 693*ca1c9b0cSelric2002-02-04 Johan Danielsson <joda@pdc.kth.se> 694*ca1c9b0cSelric 695*ca1c9b0cSelric * kdc/config.c (get_dbinfo): if there are database specifications 696*ca1c9b0cSelric in the config file, don't automatically try to use the default 697*ca1c9b0cSelric values (from Gombas Gabor) 698*ca1c9b0cSelric 699*ca1c9b0cSelric * lib/krb5/log.c (krb5_closelog): don't pass pointer to pointer 700*ca1c9b0cSelric (from Gombas Gabor) 701*ca1c9b0cSelric 702*ca1c9b0cSelric2002-01-30 Johan Danielsson <joda@pdc.kth.se> 703*ca1c9b0cSelric 704*ca1c9b0cSelric * admin/list.c: get the default keytab from krb5.conf, and list 705*ca1c9b0cSelric all parts of an ANY type keytab 706*ca1c9b0cSelric 707*ca1c9b0cSelric * lib/krb5/context.c: default default_keytab_modify to NULL 708*ca1c9b0cSelric 709*ca1c9b0cSelric * lib/krb5/keytab.c (krb5_kt_default_modify_name): if no modify 710*ca1c9b0cSelric name is specified take it from the first component of the default 711*ca1c9b0cSelric keytab name 712*ca1c9b0cSelric 713*ca1c9b0cSelric2002-01-29 Johan Danielsson <joda@pdc.kth.se> 714*ca1c9b0cSelric 715*ca1c9b0cSelric * lib/krb5/keytab.c: compare keytab types case insensitively 716*ca1c9b0cSelric 717*ca1c9b0cSelric2002-01-07 Assar Westerlund <assar@sics.se> 718*ca1c9b0cSelric 719*ca1c9b0cSelric * lib/krb5/crypto.c (create_checksum): make usage `unsigned' (it's 720*ca1c9b0cSelric not really a krb5_key_usage). From Ben Harris <bjh21@netbsd.org> 721*ca1c9b0cSelric * lib/krb5/get_in_tkt.c: use krb5_enctype consistently. From Ben 722*ca1c9b0cSelric Harris <bjh21@netbsd.org> 723*ca1c9b0cSelric * lib/krb5/crypto.c: use krb5_enctype consistently. From Ben 724*ca1c9b0cSelric Harris <bjh21@netbsd.org> 725*ca1c9b0cSelric * kdc/kerberos5.c: use krb5_enctype consistently. From Ben Harris 726*ca1c9b0cSelric <bjh21@netbsd.org> 727