tests: Use here-doc kadmin in Java test
[heimdal.git] / ChangeLog.2005
bloba594d092404c650231249ff612c0415c0d7f7588
1 2005-12-15  Love Hörnquist Åstrand  <lha@it.su.se>
3         * kdc/kerberos5.c (tgs_make_reply): less const on hdb_entry_ex to
4         make samba happy
6         * fix-export: Build kdc-private.h.
7         
8 2005-12-14  Love Hörnquist Åstrand  <lha@it.su.se>
10         * kdc/kerberos5.c (tgs_rep2): also print the principal for which
11         the enctype was missing
12         
13 2005-12-13  Love Hörnquist Åstrand <lha@it.su.se>
15         * kdc/kaserver.c: Finish up transition from hdb_entry to
16         hdb_entry_ex.
18         * kdc/kerberos4.c: Finish up transition from hdb_entry to
19         hdb_entry_ex.
21         * kdc/524.c: Finish up transition from hdb_entry to hdb_entry_ex.
23         * kdc/kerberos5.c: Finish up transition from hdb_entry with
24         hdb_entry_ex.
26         * lib/krb5/cache.c (krb5_cc_set_default_name): use
27         KRB5_DEFAULT_CCNAME.
29         * lib/krb5/krb5_locl.h: Add KRB5_DEFAULT_CCNAME, pointer to
30         default credential cache.
32         * lib/hdb/ndbm.c: memset hdb_entry_ex before use
34         * lib/hdb/db3.c: memset hdb_entry_ex before use
35         
36         * lib/hdb/db.c: memset hdb_entry_ex before use
37         
38 2005-12-12  Love Hörnquist Åstrand  <lha@it.su.se>
40         * lib/krb5/krb5.3: Add some more entrypoints.
42         * lib/krb5/changepw.c: If there is a target principal, use the
43         realm of the realm to change the password with,
45         * kuser/kinit.c: Default to use DH when fetching keys.
47         * lib/hdb, kdc, kadmin/load.c: Wrap hdb_entry with hdb_entry_ex, patch
48         originally from Andrew Bartlet
50         * lib/hdb/hdb-ldap.c: Wrap hdb_entry with hdb_entry_ex, add url
51         support, add ldapi support.
53         * kdc/kerberos5.c (tgs_make_reply): there are no such things a
54         keytypes any more, just use enctypes.
56         * kdc/kdc_locl.h: Remove private prototypes and instead include
57         <kdc-private.h>.
59         * kdc/Makefile.am: Build kdc-private.h and depend on it.
61         * kdc/config.c (configure): wrap line
63         * doc/kerberos4.texi: KDC 4 support is always compiled in.
64         
65         * TODO: Remove some stuff that have been done.
67         * Makefile.am: Split long line
69         * doc/apps.texi: Spelling, From Måns Nilsson.
71         * doc/install.texi: spelling, From Måns Nilsson
72         
73 2005-12-11  Love Hörnquist Åstrand <lha@it.su.se>
75         * lib/krb5/krb5_principal.3: Constify principal argument to on
76         krb5_principal_get_ functions.
78         * lib/krb5/principal.c: Constify principal argument to on
79         krb5_principal_get_ functions.
80         
81 2005-12-08  Love Hörnquist Åstrand  <lha@it.su.se>
83         * lib/hdb: drop convert_db, 0.0 to 0.1 transition was a long long
84         time ago
86 2005-12-05  Love Hörnquist Åstrand  <lha@it.su.se>
88         * lib/krb5/test_keytab.c: more tests, From Andrew Bartlet
90         * lib/krb5/keytab_memory.c (mkt_remove_entry): realloc can return
91         NULL on success in the case 0 entries are allocated, From Andrew
92         Bartlet
93         
94 2005-12-02  Love Hörnquist Åstrand  <lha@it.su.se>
96         * lib/krb5/acl.c (acl_parse_format): tmp needs to be freed too on
97         failure to parse format specifier.
98         
99         * lib/krb5/store-test.c: Free more of the allocated memory.
101         * lib/krb5/crypto.c (krb5_derive_key): Free more of the allocated
102         memory, this function is only used by the test program.
103         
104         * lib/krb5/parse-name-test.c: Free more of the allocated memory.
106         * lib/krb5/derived-key-test.c: Free more of the allocated memory.
107         
108 2005-12-01  Love Hörnquist Åstrand  <lha@it.su.se>
110         * doc/setup.texi: spelling, From Måns Nilsson
112         * lib/krb5/krb5_keytab.3: Memory keytab are now named and
113         refcounted.
115         * lib/krb5/test_keytab.c: Test that memory keytab are refcounted.
117         * lib/krb5/keytab_memory.c: Index by name and start reference
118         counting on entries.
119         
120 2005-11-30  Love Hörnquist Åstrand  <lha@it.su.se>
122         * lib/krb5/krb5.h (krb5_address_type): add
123         KRB5_ADDRESS_NETBIOS (20)
125         * lib/hdb/hdb.c (find_method): accept relative paths as old db
126         format too.
128         * lib/krb5/aes-test.c: Remove usage of krb5_enctype_to_keytype.
129         
130 2005-11-29  Dave Love  <fx@gnu.org>
132         * kcm/connect.c (kcm_loop): Use HAVE_DOOR_CREATE, not HAVE_DOORS.
133         
134 2005-11-29  Love Hörnquist Åstrand  <lha@it.su.se>
136         * lib/krb5/verify_krb5_conf.c (libdefaults_entries): add
137         default_cc_name
139         * lib/hdb/hdb.c: Only match db databases on filename starting with
140         '/'.
142         * lib/krb5/rd_req.c (krb5_verify_ap_re2): check timestamp in
143         authenticator
145         * lib/krb5/rd_req.c (check_transited): explain the TR-type 0
146         better and why it matters.
148         * lib/krb5/test_cc.c: test krb5_cc_get_prefix_ops
150         * lib/krb5/cache.c (krb5_cc_get_prefix_ops): change the behavior
151         to return NULL when its not found, and fcc when the name starts
152         with a '/'. Almost matches behavior in other parts of the code,
153         but can't really do that since the name passed in to this function
154         may only contain the prefix itself without the colon.
156         * lib/krb5/cache.c (krb5_cc_get_prefix_ops): if there are not
157         colon (:) in the name, its a file credential cache
159         * lib/hdb/db3.c (hdb_db_create): use calloc to callocate memory
161         * lib/hdb/ndbm.c (hdb_ndbm_create): use calloc to allocate memory
163         * lib/hdb/db.c (hdb_db_create): use calloc to allocate memory
165 2005-11-28  Love Hörnquist Åstrand  <lha@it.su.se>
167         * lib/krb5/get_for_creds.c (krb5_get_forwarded_creds): use session
168         key for delegated credentials
170         * kdc/kerberos5.c (_kdc_as_rep): add comment when we send
171         ETYPE-INFO and ETYPE-INFO2, from Andrew Bartlett
172         
173 2005-11-25  Love Hörnquist Åstrand <lha@it.su.se>
175         * lib/krb5/keytab.c (krb5_kt_get_full_name): new function
176         
177 2005-11-24  Love Hörnquist Åstrand  <lha@it.su.se>
179         * lib/krb5/test_crypto.c: Split encryption and s2k iterations to
180         diffrent counters, 38seconds of aes256 s2k is way too long.
182         * lib/krb5/test_crypto.c: Add timing code for s2k function.
184 2005-11-07  Love Hörnquist Åstrand  <lha@it.su.se>
185         
186         * kdc/kerberos5.c: Print the time the principal expired, based on
187         patch from Andrew Bartlett.
188         
189 2005-11-01  Love Hörnquist Åstrand  <lha@it.su.se>
191         * lib/krb5/cache.c (krb5_cc_get_full_name): Add
192         
193 2005-11-01  Love Hörnquist Åstrand  <lha@it.su.se>
195         * configure.in: Spelling, From Michael Banck <mbanck@debian.org>
196         
197 2005-10-30  Love Hörnquist Åstrand  <lha@it.su.se>
199         * kcm/headers.h: Maybe include <sys/param.h>.
201 2005-10-27  Love Hörnquist Åstrand  <lha@it.su.se>
203         * lib/krb5/ticket.c (krb5_ticket_get_authorization_data_type):
204         understand KRB5_AUTHDATA_IF_RELEVANT and KRB5_AUTHDATA_AND_OR (but
205         have KRB5_AUTHDATA_KDC_ISSUED commented out for now)
206         
207 2005-10-26  Love Hörnquist Åstrand  <lha@it.su.se>
209         * kuser/klist.c: In the list caches view, rename the Status field
210         to Expires.
212         * lib/krb5/krb5_encrypt.3: Fix mdoc for
213         krb5_encrypt_EncryptedData, Johnny Lam <jlam@pkgsrc.org>
214         
215 2005-10-25  Love Hörnquist Åstrand  <lha@it.su.se>
217         * appl/test/gssapi_client.c: Check return value from asprintf
218         instead of string != NULL since it undefined behavior on
219         Linux. From Björn Sandell
220         
221 2005-10-21  Love Hörnquist Åstrand <lha@it.su.se>
223         * lib/krb5/pkinit.c (_krb5_dh_group_ok): if not enough bits are
224         generated from the DH groups, fail.
226         * kdc/pkinit.c (get_dh_param): Pass down config so this function
227         can check pkinit_dh_min_bits
229         * kdc/config.c: Fill in pkinit_dh_min_bits from configuration
230         file.
232         * kdc/kdc.h: Add pkinit_dh_min_bits to krb5_kdc_configuration.
233         
234 2005-10-20  Love Hörnquist Åstrand  <lha@it.su.se>
236         * lib/krb5/pkinit.c: Add option to require binding between reply
237         and response for the win2k version of the protocol.
238         
239 2005-10-19  Love Hörnquist Åstrand  <lha@it.su.se>
241         * doc/programming.texi: Text about Kerberos errors.
242         
243         * lib/krb5/pkinit.c: Try both ReplyKey and ReplyKey-Win2k for the
244         Windows case to support the updated -09 protocol (using
245         asChecksum). Tell KDC we support this by sending
246         KRB5-PADATA-PK-AS-09-BINDING in the pa-data.
247         
248         * lib/krb5/test_cc.c: Test copy FILE -> FILE, and MEMORY -> MEMORY
249         too.
251         * lib/krb5/test_cc.c: Test krb5_cc_copy_cache and
252         krb5_cc_cache_match.
254         * lib/krb5/cache.c (krb5_cc_cache_match): add function that
255         iterates over all credential caches for a user and returns a
256         match.
257         
258         * lib/krb5/krb5_ccache.3: Add krb5_cc_start_seq_get and an
259         example.
261 2005-10-18  Love Hörnquist Åstrand  <lha@it.su.se>
263         * doc/programming.texi: Try to explain krb5_ccache, krb5_principal
264         and errors.
265         
266 2005-10-13  Love Hörnquist Åstrand  <lha@it.su.se>
268         * lib/krb5/krb5_get_credentials.3: Add example how to use
269         krb5_get_credentials.
270         
271 2005-10-12  Love Hörnquist Åstrand  <lha@it.su.se>
273         * lib/krb5/init_creds.c: Rename private to opt_private.
275         * lib/krb5/init_creds_pw.c: Rename private to opt_private.
277         * lib/krb5/pkinit.c: rename element private to opt_private to make
278         c++ picky compilers less upset.
280         * lib/krb5/krb5.h (krb5_get_init_creds_opt): rename element
281         private to opt_private to make c++ picky compilers less upset.
282         
283 2005-10-08  Love Hörnquist Åstrand  <lha@it.su.se>
285         * lib/krb5/krbhst.c (_krb5_krbhost_info_move): new function
286         (_krb5_free_krbhst_info): expose to internal use
287         
288         * lib/krb5/init_creds_pw.c: Prepare to pass down a
289         krb5_krbhst_info into the pre-auth mechs
291         * lib/krb5/pkinit.c: Inline short functions, share more code,
292         rename COMPAT_27 to COMPAT_IETF, pass down a krb5_krbhst_info for
293         verification of KDC info, and general cleaning up.
294         
295 2005-10-07  Love Hörnquist Åstrand  <lha@it.su.se>
297         * lib/krb5/Makefile.am: Install krb5.moduli in sysconfdir.
299         * lib/krb5/krb5_locl.h: rename moduli file to SYSCONFDIR
300         "/krb5.moduli"
302         * lib/krb5/krb5_locl.h: Add forward declaration for
303         krb5_dh_moduli.  Add define for MODULI_FILE.
305         * kdc/pkinit.c: Removing PK-INIT-19 support.
307         * lib/krb5/pkinit.c: Removing PK-INIT-19 support.
309         * lib/krb5/pkinit.c (_krb5_dh_group_ok): return DH group name on
310         success.
311         (krb5_get_init_creds_opt_set_pkinit): use moduli file if it exists
313         * kdc/pkinit.c: Save DH group name and print it on success.
315         * lib/krb5/pkinit.c (_krb5_dh_group_ok): if q is zero, ignore it.
317         * kdc/pkinit.c: Check dh group parameters from client.
319         * lib/krb5/krb5_err.et: Match error code with pk-init-27.
321         * lib/krb5/pkinit.c: Update error codes. Add name to group. Change
322         return value of _krb5_dh_group_ok.
324         * lib/krb5/pkinit.c: Add support for reading a moduli-file for DH
325         parameters.
326         
327 2005-10-06  Love Hörnquist Åstrand  <lha@it.su.se>
329         * kuser/klist.1: Document --list-caches
331         * kuser/klist.c: Change short flag of --list-caches to -l (-v is
332         already used).
334 2005-10-03  Love Hörnquist Åstrand  <lha@it.su.se>
336         * lib/krb5/kerberos.8: RFC 1510 was obsoleted by 4120.
337         
338         * lib/krb5/acache.c (init_ccapi): return kerberos errors, callers
339         expect it
340         (acc_get_cache_first): don't leak memory or abort on malloc
341         failure
342         
343 2005-10-02  Love Hörnquist Åstrand  <lha@it.su.se>
345         * lib/krb5/kerberos.8: Update text about Kerberos RFC's.
346         
347 2005-10-01  Love Hörnquist Åstrand  <lha@it.su.se>
349         * kuser/klist.c: Add option --list-caches that lists the avaible
350         caches and their status.
352         $ klist --list-caches
353           Principal        Cache name               Status
354         lha@E.KTH.SE     2                        Valid
355         lha@SU.SE        1                        Expired
356         lha/root@SU.SE   0                        Expired
357         lha@N.L.NXS.SE   Initial default ccache   Expired
358         
359 2005-09-30  Love Hörnquist Åstrand  <lha@it.su.se>
360         
361         * lib/krb5/keytab_keyfile.c: Use all DES keys, not just
362         des-cbc-md5, verify that they all are the same.
364         * lib/krb5/mcache.c Implement the cache iteration functions.
366         * lib/krb5/acache.c: Implement the cache iteration functions.
368         * lib/krb5/test_cc.c: Test the new cache iteration functions.
370         * lib/krb5/cache.c: Add cache iteration funcations. Add internal
371         allocation function for the memory of a krb5_ccache, and use it.
373         * lib/krb5/krb5.h (krb5_cc_ops): add cache iteration functions
374         
375 2005-09-25  Love Hörnquist Åstrand  <lha@it.su.se>
377         * lib/krb5/krb5_mk_req.3: Remove leftovers, remove extra space.
379         * kdc/kerberos5.c: More verbose PK-INIT logging.
381         * kdc/pkinit.c: The public DH key is encoded as an INTEGER in
382         subjectPublicKey.  Don't verify OID's for now.
383         
384         * lib/krb5/pkinit.c: Support cached DH variable (still need to
385         store it though), don't check the oid of the DH signedData for
386         now.
387         
388 2005-09-22 Love Hörnquist Åstrand <lha@it.su.se>
390         * lib/krb5/rd_cred.c (krb5_rd_cred): try both the session key and
391         the sender subkey. Both RFC1510 and RFC4120 say that you have to
392         use the session key, Heimdal uses subkey.
393         
394 2005-09-21  Love Hörnquist Åstrand  <lha@it.su.se>
396         * lib/krb5/pkinit.c: Don't check oid's too closely, they change in
397         Windows Vista.
398         
399 2005-09-20  Love Hörnquist Åstrand  <lha@it.su.se>
401         * lib/krb5/pkinit.c: Disable sending -19, fix parsing -27 of the
402         protocol.
404         * kdc/pkinit.c: Support PK-INIT-27 DH (and remove -19)
406         * lib/krb5/pkinit.c (pk_verify_chain_standard): set cert to NULL
407         to make sure its not freed.
408         
409 2005-09-19  Love Hörnquist Åstrand  <lha@it.su.se>
411         * lib/krb5/crypto.c (krb5_DES_string_to_key): If the opaque length
412         it set to 1, and content is 0x01, use the afs3 string-to-key.
414         * kdc/kerberos5.c (make_etype_info2_entry): When its a afs3-salted
415         key, use send the opaque, length 1 (with content set to 0x01) in
416         ETYPE-INFO2-ENTRY.
418         * lib/krb5/kcm.c: Remove signedness warnings.
419         
420 2005-09-15  Love Hörnquist Åstrand  <lha@it.su.se>
422         * configure.in: Use libtool's default values for building
423         shared/static libaries, ie remove AC_ENABLE_SHARED(no), solves
424         building problems users have on Mac OS X.
425         
426 2005-09-08  Love Hörnquist Åstrand  <lha@it.su.se>
428         * lib/krb5/changepw.c: Constify password.
429         
430 2005-09-05  Love Hörnquist Åstrand  <lha@it.su.se>
432         * lib/krb5/krb5_mk_req.3: Document krb5_rd_req.
433         
434         * lib/krb5/Makefile.am: MAN_mans+= krb5_mk_req.3
435         
436         * lib/krb5/krb5_mk_req.3: Document krb5_mk_req, krb5_mk_req_exact,
437         krb5_mk_req_extended, krb5_rd_req, krb5_rd_req_with_keyblock,
438         krb5_mk_rep, krb5_mk_rep_exact, krb5_mk_rep_extended, krb5_rd_rep,
439         krb5_build_ap_req, krb5_verify_ap_req.
440         
441 2005-09-01  Love Hörnquist Åstrand  <lha@it.su.se>
443         * kdc/kerberos5.c (make_etype_info_entry): Dont send salttype at
444         all, use KRB5-PADATA-AFS3-SALT
445         
446 2005-08-31  Love Hörnquist Åstrand  <lha@it.su.se>
448         * kdc/kerberos5.c (log_timestamp): endtime, not endtype
449         
450 2005-08-30  Love Hörnquist Åstrand  <lha@it.su.se>
452         * configure.in: Check for <sys/ucred.h>.
454         * kcm/connect.c (update_client_creds): in case there is no
455         UCRED_VERSION, skip LOCAL_PEERCRED
456         
457         * kcm/headers.h: include <sys/ucred.h>
458         
459 2005-08-27 Love Hörnquist Åstrand <lha@it.su.se>
461         * lib/krb5/rd_req.c (check_transited): Allow empty content of type
462         0 because that is was Microsoft generates in their TGT.
464         * kdc/kerberos5.c (fix_transited_encoding): Allow empty content of
465         type 0 because that is was Microsoft enerates in their TGT.
467 2005-08-26  Love Hörnquist Åstrand  <lha@it.su.se>
469         * doc/intro.texi: RFC 4120 replaces RFC 1510
470         
471 2005-08-25  Love Hörnquist Åstrand  <lha@it.su.se>
473         * configure.in: Add --disable-afs-support.
475 2005-08-23  Love Hörnquist Åstrand  <lha@it.su.se>
477         * lib/krb5/Makefile.am: Add test_hostname to check_PROGRAMS but
478         not TESTS, I have no same dns to use.
480         * lib/krb5/test_hostname.c: Testprogram for krb5_expand_hostname()
481         and krb5_expand_hostname_realms().
482         
483         * configure.in: Build KCM if we have doors or unix sockets.
485         * lib/krb5/principal.c (krb5_425_conv_principal_ex2): Remove
486         shadowing variable.
488         * lib/krb5/get_host_realm.c (dns_find_realm): Fix const warnings,
489         plug memory leak. From: Stefan Metzmacher <metze@samba.org>
490         
491         * lib/krb5/krb5_config.3: Document what happens with NULL to
492         krb5_config_free_strings
493         (nothing). Mdoc nit.
494         
495 2005-08-22 Love Hörnquist Åstrand  <lha@it.su.se>
497         * kuser/klist.c (check_for_tgt): Re-order code so it only free the
498         credential if one was returned.
499         
500         * lib/krb5/test_crypto_wrapping.c: Fix printing of size_t.
502 2005-08-19  Love Hörnquist Åstrand  <lha@it.su.se>
504         * lib/hdb/dbinfo.c: provide interface to find databases
506         * lib/hdb/mkey.c: hdb_seal_key_mkey): dont double encrypt keys
508 2005-08-15  Love Hörnquist Åstrand  <lha@it.su.se>
510         * kdc/kdc_locl.h: Update prototype for _kdc_pk_mk_pa_reply.
512 2005-08-13  Love Hörnquist Åstrand  <lha@it.su.se>
514         * lib/krb5/init_creds_pw.c: Save the request buffer so that
515         pre-auth mechanism that needs it can verify the reply.
517 2005-08-12  Love Hörnquist Åstrand  <lha@it.su.se>
518         
519         * lib/krb5/test_mem.c: Rename logf to avoid shadowing.
520         
521         * lib/krb5/krb5_keytab.3: Fix the version number for
522         fcc-mit-ticketflags.
524         * lib/krb5/fcache.c: Revert previous, I was confused.
525         
526         * lib/krb5/krb5_keytab.3: Document fcc-mit-ticketflags in
527         COMPATIBILITY section.
528         
529         * lib/krb5/fcache.c (fcc_store_cred): default to MIT style ticket
530         flags.
532         * kdc/pkinit.c (pk_mk_pa_reply_enckey): add missing break;
534         * lib/krb5/krb5_create_checksum.3: Update prototype for
535         krb5_create_checksum.
536         
537         * kdc/pkinit.c: Make compile.
538         
539         * lib/krb5/pkinit.c: Implement verification of asChecksum, now
540         client side code is using -27 of the pk-init draft.
541         
542         * kdc/kdc_locl.h: update prototype for _kdc_as_rep
544         * kdc/pkinit.c: Fill in asChecksum, we now implements -27 in the KDC.
545         
546         * kdc/process.c: Pass down the request buffer to _kdc_as_rep().
548         * kdc/kerberos5.c (_kdc_as_rep): Pass down the request buffer to
549         _kdc_pk_mk_pa_reply.
551 2005-08-11  Love Hörnquist Åstrand  <lha@it.su.se>
553         * lib/hdb/ext.c: HDB extensions access glue.
555         * kcm/acquire.c: Use krb5_set_password instead of
556         krb5_change_password.
558         * configure.in: Add tests/Makefile and tests/db/Makefile.
560         * NEWS: New ASN.1 compiler
562         * lib/hdb/Makefile.am: Build extensions.
564         * lib/hdb/print.c: Print extensions.
566         * lib/hdb/hdb_err.et: Add error "Entry contains unknown mandatory
567         extension".
569         * lib/hdb/hdb.h: Update interface version (and indent).
570         
571         * lib/hdb/hdb.asn1: Add support for HDB-extension.
573 2005-08-10  Love Hörnquist Åstrand  <lha@it.su.se>
575         * lib/krb5/test_pkinit_dh2key.c: add tests vectors from
576         "Liqiang(Larry) Zhu" <lzhu@windows.microsoft.com>
578         * lib/hdb/mkey.c: Expose the crypto operations on the master key.
580         * lib/krb5/test_pkinit_dh2key.c: even more bits, not done yet
581         
582 2005-08-09  Love Hörnquist Åstrand  <lha@it.su.se>
584         * kdc/kerberos5.c (_kdc_as_rep): preserve the error code in the
585         ENC-TS case.  From: Andrew Bartlett <abartlet@samba.org>
587         * kdc/kerberos5.c (tgs_rep2): only needs to log "Failed to verify
588         authenticator" once, its already done by
589         tgs_check_authenticator().
590         
591         * kdc/kerberos5.c: Indent strings.
593         * kdc/kerberos5.c (log_timestamp): avoid shadow warnings From:
594         Andrew Bartlett <abartlet@samba.org>
595         
596         * lib/krb5/verify_user.c: Add krb5_verify_opt_alloc and
597         krb5_verify_opt_free.
598         
599         * lib/krb5/krb5_verify_user.3: Document krb5_verify_opt_alloc and
600         krb5_verify_opt_free.
602         * lib/hdb/db3.c (DB_open): catch errors from the d->open calls
603         instead of letting them slip though to d->cursor. Bug repport from
604         Andrew Bartlett <abartlet@samba.org>
606 2005-07-29  Love Hörnquist Åstrand  <lha@it.su.se>
608         * kdc/Makefile.am (kdc_LDADD): add LDADD
609         
610 2005-07-28  Love Hörnquist Åstrand  <lha@it.su.se>
612         * kdc/kerberos5.c (_kdc_as_rep): log what enctypes was using in
613         ENC-TS preauth, both for failure and success.
615         * kdc/hprop.c: Use the _krb5_krb_life_to_time function from
616         libkrb5 instead of including our own here too.
618         * kdc/kerberos5.c: indent printf strings
620         * lib/hdb/mkey.c (hdb_unseal_key_mkey): try to unseal key with
621         keyusage 0 in case the key was encrypted with MIT Kerberos (old
622         patch from Johan)
624 2005-07-26  Love Hörnquist Åstrand  <lha@it.su.se>
626         * kdc/pkinit.c: update to pkinit-27
628 2005-07-23  Love Hörnquist Åstrand  <lha@it.su.se>
630         * lib/krb5/pkinit.c: Adapt to IMPLICIT changes in CMS module.
632 2005-07-20  Love Hörnquist Åstrand  <lha@it.su.se>
634         * lib/krb5/test_pkinit_dh2key.c: framework for testing
635         _krb5_pk_octetstring2key
637         * kpasswd/kpasswdd.c (doit): krb5_addr2sockaddr takes a
638         krb5_socklen_t
640         * kdc/connect.c (de_http): sscanf takes a char *, not unsigned
641         ditto, cast approriately
643         * lib/krb5/crypto.c (_krb5_pk_octetstring2key): make sha1 output
644         unsigned char to match openssl
646 2005-07-14  Love Hörnquist Åstrand  <lha@it.su.se>
648         * lib/hdb/common.c: Check encoder lengths from ASN1_MALLOC_ENCODE.
650 2005-07-13  Love Hörnquist Åstrand  <lha@it.su.se>
652         * lib/krb5/rd_cred.c (krb5_rd_cred): don't leak memory
654         * lib/krb5/get_cred.c (krb5_get_credentials_with_flags): only call
655         krb5_cc_retrieve_cred once, and plug memory leak.
657 2005-07-13  Love Hörnquist Åstrand  <lha@it.su.se>
659         * lib/hdb/Makefile.am: the new asn.1 compiler includes the modules
660         name in the depend file
662         * lib/krb5/keytab_file.c (fkt_start_seq_get_int): check return
663         value from krb5_storage_from_fd
665         * lib/krb5/pkinit.c (pk_rd_pa_reply_dh): client do not contribute
666         to the DH when the server doesn't support the cached DH request.
668         * lib/krb5/crypto.c (_krb5_pk_octetstring2key): fix arguments
670 2005-07-12  Love Hörnquist Åstrand  <lha@it.su.se>
672         * lib/krb5/pkinit.c: clean up pk-init DH support, not finished
673         yet; improve error reporting
675         * lib/krb5/crypto.c (_krb5_pk_octetstring2key): string2key
676         function used in pk-init-25
678         * configure.in: Use a configure switch to turn on PK-INIT, not by
679         detecting existence of the new ASN.1 library.
681         * lib/asn1: Much improved ASN.1 compiler from joda-choice-branch.
683         Highlighs for the compiler is support for CHOICE and in general better
684         support for tags. This compiler support most of what is needed for
685         PK-INIT, LDAP, X.509, PKCS-12 and many other protocols.
687 2005-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
689         * lib/asn1: make scope variables unique to avoid shadow warnings
691 2005-07-09  Love Hörnquist Åstrand  <lha@it.su.se>
693         * lib/krb5/krb5.h: comment out paramenter name in typedef
694         functions to avoid shadow warnings
696         * lib/krb5/crypto.c: make input data to krb5_encrypt{,_ivec} const
698         * kuser/klist.c: If there are no addresses, print addressless
699         instead of nothing.
701         * lib/krb5/Makefile.am (TESTS): add test_crypto_wrapping
703         * lib/krb5/crypto.c (wrapped_length): the underived encrypted
704         types checksum are all unkeyed (matches the code in
705         encrypt_internal() and encrypt_internal_special())
707         * lib/krb5/test_crypto_wrapping.c: ETYPE_ARCFOUR_HMAC_MD5_56 isn't
708         not supported
710         * lib/krb5/test_crypto_wrapping.c: test encryption wrapping
712         * lib/krb5/test_crypto.c (time_encryption): free cleartext buffer
714 2005-07-08  Love Hörnquist Åstrand  <lha@it.su.se>
716         * configure.in: run AM_INIT_AUTOMAKE before AM_PROG_CC_C_O
717         otherwise am_aux_dir will be expanded using ac_aux_dir before the
718         later is set.
720         * configure.in: check for strings.h explicitly instead of
721         depending on AC_HEADER_STDC to check it for us
723 2005-07-07  Assar Westerlund  <assar@kth.se>
725         * configure.in: add AM_PROG_CC_C_O for automake 1.9
727 2005-07-06  Love Hörnquist Åstrand  <lha@it.su.se>
729         * lib/krb5/keytab.c (krb5_kt_get_entry): clear error string when
730         returning a new error
731         
732         * lib/krb5/keytab.c: krb5_kt_close frees all resources, even on
733         error.
735         * lib/krb5/verify_init.c (krb5_verify_init_creds): `entry' unused,
736         remove From: "Henry B. Hotz" <hotz@jpl.nasa.gov>
738 2005-07-05  Love Hörnquist Åstrand  <lha@it.su.se>
740         * doc/win2k.texi: arcfour-hmac-md5 support for windows cross was
741         added in w2k3-sp1 From David Love
742         
743         * doc/setup.texi: document kadmin command password-quality instead
744         of the not installed test_pw_quality
745         
746         * lib/krb5/krb5_get_init_creds.3: Spelling, from David Love
747         
748         * fix-export: build kdc-protos.h
750 2005-07-01  Love Hörnquist Åstrand  <lha@it.su.se>
751         
752         * kdc: prefix pkinit symbols with _kdc
754         * kuser/kinit.c: avoid shadowing variables
755         
756         * kuser: s/optind/optidx/
758         * kdc: adapt pkinit code to libkdc split
760 2005-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
762         * tools/Makefile.am: add depency on LIB_dlopen and LIB_door_create
763         
764         * tools/krb5-config.in: add depency on LIB_dlopen and LIB_door_create
765         
766         * kdc/kdc_locl.h: indent, remove dup prototypes
767         
768         * kdc/libkdc: don't pollute namespace, generate public headerfile
770         * lib/krb5/principal.c: add krb5_425_conv_principal_ext2 that work
771         just like krb5_425_conv_principal_ext but takes a context variable
772         for the verification function
773         
774         * kdc/Makefile.am: there is no export script, not pretend there is
776         * kdc: Merge in the libkdc/kdc configuration split from Andrew
777         Bartlet <abartlet@samba.org>
779         * lib/krb5/crypto.c: optionally compile in support for afs string2key
780         
781         * configure.in: add --disable-afs-string-to-key to allow removal
782         of support for afs string2key (and dependency on crypt)
784 2005-06-29  Love Hörnquist Åstrand  <lha@it.su.se>
786         * kdc/kerberos5.c: Add logging of all timestamps in AS-REQ and
787         TGS-REQ, for auditing
789         * kdc/kerberos5.c (as_req): print the supported encryption types
790         so its possible to know what clients to update.
791         (find_rpath): return const char * and update callers.
793 2005-06-28  Luke Howard  <lukeh@padl.com>
795         * kcm/connect.c: fix arguments to kcm_log() when reporting
796           sendmsg() error
798         * kcm/connect.c: don't send socket address in msghdr, it
799           returns an already connected error on Linux
801 2005-06-24  Love Hörnquist Åstrand  <lha@it.su.se>
803         * kdc/524.c: Always include <krb5-v4compat.h>.
805 2005-06-23  Love Hörnquist Åstrand  <lha@it.su.se>
807         * doc/intro.texi: no more libdes, gssapi lib is complete
808         
809         * lib/krb5/krb5.conf.5: Documentation for password quality
810         control. From: "James F. Hranicky" <jfh@cise.ufl.edu>
812         * lib/krb5/verify_krb5_conf.c (password_quality_entries): add
813         min_length and min_classes
815         * kdc/kaserver.c: log the kaserver requests, avoid shadowing
816         variables
818         * lib/hdb/db3.c (DB_open): in case of error, close database
820         * lib/hdb/ndbm.c (NDBM_open): in case of error, close database
822         * lib/hdb/db.c (DB_open): in case of error, close database
824 2005-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
826         * kcm/kcm.8: fix example
828 2005-06-17  Love Hörnquist Åstrand  <lha@it.su.se>
830         * lib/krb5/rd_rep.c: indent
832         * lib/krb5/rd_rep.c (krb5_rd_rep): check if
833         KRB5_AUTH_CONTEXT_DO_TIME set and use that as a que that timestamp
834         should be checked, DCE-STYLE gssapi needs to be able to tweek this
836         * kdc/string2key.c: rename optind to optidx
838         * lib/hdb/convert_db.c: rename optind to optidx
840         * lib/hdb/keytab.c: const poison, add a unconst where needed
842         * lib/krb5/crypto.c (krb5_string_to_key): unconst password
844         * lib/asn1/k5.asn1: rename pvno to krb5-pvno
846         * lib/krb5/get_in_tkt_with_keytab.c (krb5_keytab_key_proc):
847         unconst argument
849         * lib/krb5/verify_krb5_conf.c: rename optind to optidx
851         * lib/krb5/transited.c: rename the temporary string variable to
852         `str'
854         * lib/krb5/test_crypto.c: rename optind to optidx
856         * lib/krb5/test_alname.c: rename optind to optidx
858         * lib/krb5/store.c: unconst argument to krb5_store (XXX this
859         should be fixed, krb5_store doesn't need to modify its argument)
861         * lib/krb5/send_to_kdc.c (krb5_sendto): remove shadowing
862         unnessecery variable ret
864         * lib/krb5/rd_cred.c (krb5_rd_cred): remove shadowing unnessecery
865         variable len
867         * lib/krb5/prog_setup.c: rename optind to optidx
869         * lib/krb5/padata.c: rename variable index to idx
871         * lib/krb5/log.c: rename variable time to timestr to avoid
872         shadowing
874         * lib/krb5/krbhst.c (krb5_krbhst_init_flags): rename variable to
875         avoid shadowing
877         * lib/krb5/krbhst-test.c: rename optind to optidx
879         * lib/krb5/kcm.c: unconst argumen to connect, unconst argument to
880         krb5_store (XXX this should be fixed, krb5_store doesn't need to
881         modify its argument)
883         * lib/krb5/init_creds_pw.c (default_s2k_func): unconst password
885         * lib/krb5/crypto.c: rename `encrypt' to avoid shadow warning
886         
887 2005-06-16  Love Hörnquist Åstrand  <lha@it.su.se>
889         * lib/krb5/principal.c: rename index to idx
890         
891         * lib/krb5/mk_error.c: use rk_UNCONST
892         
893         * lib/krb5/fcache.c: rename to avoid shadowing
895         * lib/krb5/config_file.c: rename to avoid shadowing
896         
897         * lib/krb5/cache.c (_krb5_expand_default_cc_name): just copy the
898         string instead of losing const
900         * lib/krb5/addr_families.c: use rk_UNCONST to silence const
901         warning
903         * lib/krb5/addr_families.c: rename sin to sin4
905         * lib/asn1/asn1_print.c: rename optind to optidx, remove shadowed
906         variables
908         * lib/asn1/main.c: rename optind to optidx
910         * lib/asn1/gen_copy.c: rename to avoid shadowing
912         * lib/asn1/gen_locl.h: rename function filename to get_filename
914         * lib/asn1/lex.l: use get_filename
916         * lib/asn1/gen.c: rename function filename to get_filename
918         * lib/krb5/acache.c: use HAVE_DLOPEN around cc_handle
919         
920         * configure.in: add headers and prototypes to logwtmp, logout and
921         openpty checks
923         * configure.in: include headerfiles and set prototype for tgetent
924         
925         * kdc/kerberos5.c (make_etype_info2_entry): NUL terminate the
926         string
928         * kdc/kerberos5.c: replace strndup with inline copy, free data on
929         failure
931         * lib/krb5/cache.c (_krb5_expand_default_cc_name): replace strndup
932         with inline copy
934         * lib/krb5/log.c: rename close and log to avoid shadow warnings
935         
936         * lib/krb5/get_in_tkt.c: rename index to i to avoid shadowing
938         * lib/krb5/get_for_creds.c (krb5_get_forwarded_creds): rename two
939         of the local `realm' to srealm to avoid shadowing
940         
941         * kdc/kerberos5.c (tgs_rep2): rename one of the tkey to uukey to
942         avoid shadow warning
944         * kdc/kerberos5.c (tgs_rep2): rename loop to nloop to avoid shadow
945         warning
947 2005-06-15  Love Hörnquist Åstrand  <lha@it.su.se>
949         * Release 0.7, see branch
950         
951 2005-06-14  Love Hörnquist Åstrand  <lha@it.su.se>
953         * lib/krb5/Makefile.am: TESTS += test_mem libkrb5_la_SOURCES +=
954         kcm.h
955         
956         * kuser/kinit.c (main): catch KRB5_CONFIG_BADFORMAT from
957         krb5_init_context
959         * kdc/main.c (main): catch KRB5_CONFIG_BADFORMAT from
960         krb5_init_context
962         * lib/krb5/verify_krb5_conf.c (main): catch KRB5_CONFIG_BADFORMAT
963         from krb5_init_context From: Mathias Feiler
964         <feiler@uni-hohenheim.de>
966         * lib/krb5/verify_krb5_conf.c: Add more missig entires, from
967         Mathias Feiler <feiler@uni-hohenheim.de>
969 2005-06-11  Love Hörnquist Åstrand  <lha@it.su.se>
971         * kdc/pkinit.c (pk_principal_from_X509): remember to free
972         KRB5PrincipalName
974         * lib/krb5/log.c (krb5_closelog): free all content in
975         krb5_log_facility
977 2005-06-08  Love Hörnquist Åstrand  <lha@it.su.se>
979         * kdc/524.c: init kvno to please gcc
981         * kdc/kaserver.c (do_authenticate): check return value from
982         unparse_auth_args
984 2005-06-07  Dave Love  <fx@gnu.org>
986         * doc/setup.texi: Spelling.
987         
988         * doc/programming.texi: Spelling.
990 2005-06-02  Dave Love  <fx@gnu.org>
992         * kcm/connect.c (kcm_door_server): Make static.
994         * kcm/kcm_locl.h (disallow_getting_krbtgt): Declare.
996 2005-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
998         * kdc/mit_dump.c (mit_prop_dump): cast argument to
999         krb5_parse_principal to avoid warning
1001         * kdc/mit_dump.c: rename KRB5_TL_MOD_PRINC to
1002         mit_KRB5_TL_MOD_PRINC to hint its a constant originating from mit
1003         codebase
1005 2005-06-01  Love Hörnquist Åstrand  <lha@it.su.se>
1007         * lib/krb5/store.c: If we are allocating 0 entires, avoid failing
1008         if ALLOC returns NULL
1010         * lib/krb5/verify_krb5_conf.c: Check for [kdc]v4-realm
1011         
1012         * lib/krb5/cache.c: When returning a new error code, set error
1013         string.
1015 2005-05-31  Love Hörnquist Åstrand  <lha@it.su.se>
1017         * lib/krb5/keytab_file.c: Adapt to changed signature of
1018         _krb5_xunlock, clear more error string where needed.
1020         * lib/krb5/fcache.c (_krb5_xunlock): catch the error and turn it
1021         into something sensable
1023 2005-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
1024         
1025         * kdc/kerberos5.c (tgs_make_reply): copy ok-as-delegate flag from
1026         server entry to encrypted ticket flags
1028 2005-05-30  Johan Danielsson  <joda@pdc.kth.se>
1030         * kdc/connect.c: rename sendlength to prependlength (which
1031         hopefully better represents its purpose), and change type to
1032         krb5_boolean
1034         * kdc/connect.c: log signal causing exit
1035         
1036         * kdc/main.c (sigterm): set exit_flag to signal causing exit;
1037         (main): trap SIGXCPU
1039 2005-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
1041         * kcm/kcm.8: document --disallow-getting-krbtgt and --door-path
1043         * kcm/protocol.c (kcm_op_retrieve): check server for krbtgt, not
1044         client
1046         * kcm/main.c: ignore SIGPIPE
1048         * kcm/protocol.c: Add option to disallow getting krbtgt out from
1049         from KCM. KCM will do the fetching part itself.
1050         
1051         * kcm/config.c: Add option to disallow getting krbtgt out from
1052         from KCM. KCM will do the fetching part itself.
1054 2005-05-30  Luke Howard <lukeh@padl.com>
1056         * kcm/events.c: if credentials have expired when attempting
1057         to renew, attempt to reacquire them using initial creds
1059 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
1061         * lib/krb5/krb5_principal.3: Spelling, from Björn Sandell
1062         
1063         * doc/setup.texi: spelling, from Björn Sandell
1065         * lib/krb5/name-45-test.c: XXX don't run the test unless the
1066         machine is in kth.se or su.se because it depends on local resolver
1067         configuration.
1069         * lib/hdb/hdb.c: provde RTLD_NOW and RTLD_GLOBAL if they don't
1070         exists
1072         * kcm/connect.c: fix doors support, fix signedness warnings
1074         * kcm/config.c: add --door-path=
1075         
1076         * configure.in: comment what the "detect doors on solaris"
1077         fragment tries to do
1079         * kcm/acquire.c (generate_random_pw): fix signed-ness warnings
1081         * kcm/connect.c (update_client_creds): fix compile error in the
1082         getpeerucred case
1084         * lib/krb5/test_cc.c: change format for expantion variables in
1085         default_cc_name to %{variable} to not confuse them with shell
1086         ditto
1088         * kcm/headers.h: Maybe include <door.h>.
1090         * kcm/kcm_locl.h: add extern door_path;
1092         * configure.in: detect doors using door_create
1093         
1094         * kcm/Makefile.am: add dependcy on kcm_protos.h add lib depency on
1095         LIB_door_create
1097         * lib/krb5/kcm.h: add _PATH_KCM_DOOR, default path to kcm door
1099         * lib/krb5/kcm.c: use [libdefaults]kcm_door to find the door to
1100         kcm
1102         * lib/krb5/Makefile.am: libkrb5_la_LIBADD += LIB_door_create
1103         
1104         * lib/krb5/krb5_locl.h: Maybe include <sys/mman.h>, maybe include
1105         <door.h>.
1107         * lib/krb5/kcm.c (kcm_send_request): add support for doing a door
1108         call to kcm
1110         * lib/asn1: prefix Der_class with ASN1_C_ to avoid problems with
1111         system headerfiles that pollute the name space
1113         * kcm/kcm.8: change format for expantion variables in
1114         default_cc_name to %{variable} to not confuse them with shell
1115         ditto
1117         * lib/krb5/krb5.conf.5: change format for expantion variables in
1118         default_cc_name to %{variable} to not confuse them with shell
1119         ditto
1121         * lib/krb5/cache.c (_krb5_expand_default_cc_name): change format
1122         for expantion variables to %{variable} to not confuse them with
1123         shell ditto
1124         
1125         * kcm/connect.c: add LOCAL_PEERCRED and experimental doors support
1127 2005-05-27  Love Hörnquist Åstrand  <lha@it.su.se>
1129         * appl/kf/kfd.c: case uid_t to unsigned long in printf format
1131 2005-05-25  Love Hörnquist Åstrand  <lha@it.su.se>
1133         * lib/krb5/krb5_auth_context.3: remove trailing space
1135 2005-05-24  Love Hörnquist Åstrand  <lha@it.su.se>
1137         * kcm/connect.c (do_request): use sendmsg to send the reply
1138         
1139         * fix-export: add make_proto for kcm/kcm_protos.h
1140         
1141         * kcm/kcm_locl.h: remove prototypes and add <kcm_protos.h>
1143         * kcm/Makefile.am (kcm_SOURCES): add headerfiles
1144         (kcm_protos.h): generate prototypes
1146         * kcm/protocol.c: fix error in last commit, use right function
1148         * kcm/headers.h: include <ucred.h> if we have getpeerucred
1150         * configure.in: check for functions getpeerucred and getpeereid
1152         * kcm/connect.c (update_client_creds): add support for
1153         getpeerucred and getpeereid
1155         * lib/krb5/kcm.c (kcm_alloc): allow kcm socket to be configured by
1156         [libdefaults]kcm_socket=/path
1158 2005-05-24  David Love  <fx@gnu.org>
1160         * kcm/kcm.8: KRB5CCNAME needs an literal uid, not ${uid}, spelling
1162 2005-05-23  Love Hörnquist Åstrand  <lha@it.su.se>
1164         * kcm/protocol.c: Merge the description and function jumptables
1165         into one structure.  Use the length of the array when checking if
1166         opcode is value, not a constant.
1168         * kcm/kcm_locl.h: struct kcm_op: jumptable structure
1170         * kcm/main.c: move declaration of detach_from_console away from
1171         here to kcm_locl.h, Don't test HAVE_DAEMON since roken supplies it.
1172         
1173         * kcm/kcm_locl.h: move declaration of detach_from_console here
1174         
1175         * kdc/config.c: Don't test HAVE_DAEMON since roken supplies it.
1176         
1177 2005-05-23  Dave Love  <fx@gnu.org>
1179         * kcm/config.c: Don't test HAVE_DAEMON since roken supplies it.
1181         * kdc/main.c: Don't test HAVE_DAEMON since roken supplies it.
1183 2005-05-23  Love Hörnquist Åstrand  <lha@it.su.se>
1185         * lib/krb5/krb5_keytab.3: document WRFILE and JAVA14
1187 2005-05-20  Love Hörnquist Åstrand  <lha@it.su.se>
1189         * lib/krb5/krbhst.c (srv_get_hosts): if srv_get_hosts failes,
1190         return and ignore the error
1192         * lib/krb5/krbhst.c (srv_find_realm): make sure `res' and `count'
1193         have good values
1194         
1195         * lib/krb5/test_keytab.c: tests all keytab format
1196         
1197 2005-05-19  Love Hörnquist Åstrand  <lha@it.su.se>
1199         * lib/krb5/pkinit.c (_krb5_pk_rd_pa_reply): non non asn1 decoding
1200         errors, fail. Make sure we free memory on error.
1201         (pk_verify_chain_standard): make sure we provide good errors.
1203         * lib/krb5/verify_krb5_conf.c: add missing options, prompted by
1204         James F. Hranicky mail to heimdal-discuss
1206         * lib/krb5/verify_krb5_conf.c: add pkinit and password quailty
1207         check options
1209         * lib/krb5/pkinit.c (pk_verify_chain_standard): store better error
1210         message in the context for certificate errors.
1211         
1212         * lib/krb5/keytab.c (krb5_kt_free_entry): zero out content of all
1213         krb5_free_x_content like functions to make sure data doesnt get
1214         reused, idea from Wynn Wilkes <wwilkes@vintela.com>
1216         * configure.in: depend on automake 1.8, we don't test anything
1217         older
1219         * lib/krb5/init_creds_pw.c (process_pa_data_to_md): add comment
1220         that the caller always free out_md; remove comment about memory,
1221         it doesn't happen.
1222         (init_cred_loop): free ctx->as_req.padata when its reset (From Wynn
1223         Wilkes <wwilkes@vintela.com>), move a comment close the the code
1225         * lib/krb5/keytab_krb4.c (fkt_remove_entry): need to call
1226         krb5_kt_free_entry after each krb5_kt_next_entry.
1228         * lib/krb5/keytab_file.c (fkt_remove_entry): need to call
1229         krb5_kt_free_entry after each fkt_next_entry_int. From: Wynn
1230         Wilkes <wwilkes@vintela.com>
1232 2005-05-18  Love Hörnquist Åstrand  <lha@it.su.se>
1234         * lib/krb5/Makefile.am: TESTS += test_keytab
1236         * lib/krb5/keytab_krb4.c (krb4_kt_remove_entry): plug memory leaks,
1237         avoid crashing on empty keytab
1239         * lib/krb5/krb5_keytab.3: document behavior of
1240         krb5_kt_remove_entry
1242         * lib/krb5/keytab_memory.c (mkt_remove_entry): check if there
1243         isn't any entries in the keytab before removing any since that
1244         leads to bad pointer arithmetic and crashing. From: Wynn Wilkes
1245         <wwilkes@vintela.com>.  Make the function return KRB5_KT_NOTFOUND
1246         if the entry wasn't in the keytab (just like the filebased
1247         keytab).
1249         * lib/krb5/test_keytab.c: test memory corruption in MEMORY keytab
1251         * lib/krb5{addr_families,context,creds,free,keyblock,
1252         mit_glue,rd_error}.c:zero out content of all krb5_free_x_content
1253         like functions to make sure data doesnt get reused, idea from
1254         Wynn Wilkes <wwilkes@vintela.com>
1256         * lib/krb5/krb5_get_credentials.3: document KRB5_GC_EXPIRED_OK
1257         
1258         * lib/krb5/krb5.3: add krb5_cc_new_unique
1260 2005-05-17  Love Hörnquist Åstrand  <lha@it.su.se>
1262         * lib/krb5/fcache.c (fcc_get_first): check return value from
1263         malloc, memset the structure, make sure cursor doesn't point to
1264         freed memory on failure.  From: Wynn Wilkes <wwilkes@vintela.com>
1266         * lib/krb5/krb5_auth_context.3: document
1267         KRB5_AUTH_CONTEXT_CLEAR_FORWARDED_CRED
1269         * lib/krb5/get_cred.c: Remove expired credentials, based on
1270         patches and comments from Anders Magnusson <ragge@ltu.se> and Wynn
1271         Wilkes <wwilkes@vintela.com>
1273         * lib/krb5/get_for_creds.c (krb5_get_forwarded_creds): honor
1274         KRB5_AUTH_CONTEXT_CLEAR_FORWARDED_CRED and create unencrypted
1275         (ENCTYPE_NULL) credentials. for use with old mit server and java based
1276         ones as they can't handle encrypted KRB-CRED. Note that the option
1277         needs to turned on because if the consumer sends the KRB-CRED in
1278         clear bad things will happen.
1280         * lib/krb5/context.c (krb5_init_context): register krb5_javakt_ops
1282         * lib/krb5/krb5.h: KRB5_GC_EXPIRED_OK: expired credentials is ok
1283         to return from krb5_get_credentials.
1284         KRB5_AUTH_CONTEXT_CLEAR_FORWARDED_CRED: make forward credentials
1285         be unencrypted, for compatibility with mit kerberos and java
1286         kerberos. krb5_javakt_ops: export
1288 2005-05-16  Love Hörnquist Åstrand  <lha@it.su.se>
1290         * lib/krb5/keytab_file.c: Add new keytab file format JAVA14 that
1291         doesn't the use extended kvnos, as hinted, this is needed for
1292         Java's Kerberos implementation.
1294 2005-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
1296         * lib/krb5/pkinit.c: handle pkinit-9, pkinit-19, and pkinit-25
1297         enckey, still no DH
1298         
1299         * kdc/pkinit.c: handle pkinit-9, pkinit-19, and pkinit-25 enckey,
1300         still no DH
1302         * kdc/kerberos5.c (as_rep): search for pkinit-9, pkinit-19, and
1303         pkinit-25 pa-data, return empty pkinit pa-data in the
1304         PREAUTH_REQUIRED krb-error
1306         * doc/ack.texi: add pkinit people
1308         * lib/krb5/krb5_storage.3: document krb5_storage_is_flags
1310         * lib/krb5/{krb5_compare_creds.3,krb5_get_init_creds.3,
1311         krb5_krbhst_init.3,krb5_storage.3}:
1312         make more pretty, from Björn Sandell
1314 2005-05-09  Dave Love  <fx@gnu.org>
1316         * doc/setup.texi: Fix and clarify password quality check examples.
1317         
1318 2005-05-09  Love Hörnquist Åstrand  <lha@it.su.se>
1320         * lib/krb5/kuserok.c (krb5_kuserok): use POSIX_GETPWNAM_R instead
1321         of HAVE_GETPWNAM_R From: Dave Love <d.love@dl.ac.uk>
1323 2005-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
1325         * lib/krb5/addr_families.c (krb5_print_address): catch when the
1326         unknown adress don't fit. From Björn Sandell <biorn@dce.chalmers.se>
1328 2005-05-05  Dave Love  <d.love@dl.ac.uk>
1330         * configure.in: fix type right test, include <termios.h> for
1331         sys/strtty.h, not sys/ptyvar.h
1332         
1333 2005-05-05  Love Hörnquist Åstrand  <lha@it.su.se>
1335         * lib/krb5/krb5.conf.5: spelling
1337 2005-05-04  Love Hörnquist Åstrand  <lha@it.su.se>
1339         * lib/krb5/krb5.conf.5: expand on what "trailing component" means
1340         
1341 2005-05-04  Johan Danielsson  <joda@pdc.kth.se>
1343         * lib/krb5/rd_cred.c: put address comparison in separate function
1344         
1345         * lib/krb5/krb5_kuserok.3: check the user's ~/.k5login.d directory
1346         for access files, all of which is handled like the regular
1347         ~/.k5login
1349         * lib/krb5/kuserok.c: check the user's ~/.k5login.d directory for
1350         access files, all of which is handled like the regular ~/.k5login
1351         
1352 2005-05-03  Love Hörnquist Åstrand  <lha@it.su.se>
1354         * doc/ack.texi: Clearify what version of libdes we are using and
1355         who's code in it we are using.
1356         
1357         * kcm/kcm.8: more text about usage
1358         
1359         * kcm/Makefile.am: man_MANS += kcm.8
1361         * kcm/kcm.8: initial manpage
1363         * configure.in: if we have a $srcdir/lib/asn1/pkcs12.asn1, define
1364         PKINIT
1365         
1366 2005-05-02  Dave Love  <fx@gnu.org>
1368         * configure.in: sys/tty.h (for sys/ptyvar.h) might need termios.h.
1370 2005-05-02  Love Hörnquist Åstrand  <lha@it.su.se>
1372         * tools/krb5-config.in: add com_err to required libs
1373         
1374         * lib/krb5/pkinit.c (krb5_ui_method_read_string): use the fill in
1375         length
1377         * lib/krb5/init_creds_pw.c: Now that we fixed the signed-ness of
1378         nonce for windows, remove the code that removed the signed
1379         bit. Instead add comment that they still need to be the same
1380         (Kerberos protocol nonce and pk-init nonce) for Windows.
1381         
1382 2005-05-02  David Love  <fx@gnu.org>
1384         * lib/krb5/crypto.c: Don't declare des_salt &c as static with
1385         incomplete type (invalid in c89, at least).
1386         
1387 2005-05-02  Love Hörnquist Åstrand  <lha@it.su.se>
1389         * lib/krb5/krb5_locl.h: include <crypt.h>
1391 2005-05-02  David Love  <fx@gnu.org>
1393         * kcm/connect.c (init_socket): rename variable sun to un to avoid
1394         namespace collision.
1395         (handle_stream): Cast arg of krb5_warnx.
1397 2005-04-30  Love Hörnquist Åstrand  <lha@it.su.se>
1399         * lib/krb5/init_creds_pw.c: if we are using PKINIT, strip of the
1400         highest bit to make windows PK-INIT happy. Also make the nonces
1401         the same, again for windows, they are using pk-init-9.
1402         
1403         XXX check if it isn't the that nonce is an unsigned variable so
1404         its just a asn1 mismatch.
1406         * kdc/pkinit.c: pass a NULL prompter data to _krb5_pk_load_openssl_id
1407         
1408         * kuser/kinit.c: krb5_get_init_creds_opt_set_pkinit
1409         
1410         * lib/krb5/pkinit.c: Pass prompter data to the prompter function,
1411         implement a UI prompter function wrapping the kerberos prompter
1412         function so that the the OpenSSL ENGINE can ask for a password
1413         when loading the private key. From: Douglas E. Engert
1415         * lib/krb5: add <err.h> in test programs
1416         
1417         * configure.in: sys/ptyvar.h might need <sys/tty.h>
1418         
1419         * lib/krb5/Makefile.am: use LIB_com_err for libkrb5.la
1421 2005-04-29  Love Hörnquist Åstrand  <lha@it.su.se>
1423         * lib/asn1/Makefile.am: use $(LIB_com_err)
1424         
1425 2005-04-28  Love Hörnquist Åstrand  <lha@it.su.se>
1427         * lib/krb5/context.c (krb5_set_config_files): ignore permission
1428         denied on configuration files, user might not be allowed to read
1429         /var/heimdal/kdc.conf
1431 2005-04-26  Dave Love  <fx@gnu.org>
1433         * lib/krb5/krb5_locl.h: define _POSIX_PTHREAD_SEMANTICS so we get
1434         posix getpwnam_r
1436 2005-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
1438         * lib/asn1/gen_glue.c: switch the units variable to a
1439         function. gcc-4.1 needs the size of the structure if its defined
1440         as extern struct units foo_units[] an we don't want to include
1441         <parse_units.h> in the generate headerfile
1443 2005-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
1445         * lib/hdb/hdb.schema: add EQUALITY rule for krb5ValidStart,
1446         krb5ValidEnd, krb5PasswordEnd From Howard Chu
1448 2005-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
1450         * doc/whatis.texi: comment out docbook stuff for now
1451         
1452         * kuser/klist.c: use strlcpy
1453         
1454         * doc/ack.texi: we no longer use eay libdes, make acknowledgment
1455         still be there, but claim that we no longer use it. Mark editline
1456         to be a modified version as required by the license.
1457         
1458         * lib/krb5/pkinit.c: use the unexported oid_to_enctype function
1459         
1460         * lib/krb5/crypto.c: unexport the oid_to_enctype function, not for
1461         external consumers
1463         * kdc/Makefile.am: always add kaserver
1464         
1465         * lib/krb5/krb5_ccache.3: document krb5_cc_new_unique
1467         * lib/krb5/cache.c (krb5_cc_new_unique): new function to create a
1468         new credential cache
1470         * kdc/headers.h: don't include kerberos 4 headers here
1472         * kdc/hpropd.c: include kerberos 4 headers here
1474         * kdc/connect.c: add kaserver support independ of having krb4
1475         support
1476         
1477         * kdc/config.c: add kaserver support unconditionally, make kdc
1478         only fail to start when there are no v4 realm configured and
1479         krb4/kaserver is turned on
1481         * kdc/kaserver.c: Use the new Kerberos 4 functions in libkrb5 and
1482         so kaserver support is always compiled in (still default disabled)
1483         
1484         * lib/krb5/v4_glue.c: simplify error handling
1486         * doc/whatis.texi: add docbook version macro of @sub
1487         
1488         * doc/heimdal.texi: change the wrapping around the Top node to
1489         ifnottex, make html generation work
1491         * lib/krb5/krb5_krbhst_init.3: spelling, from Björn Sandell
1492         <biorn@dce.chalmers.se>
1494         * lib/krb5/krb5_get_krbhst.3: spelling, from Björn Sandell
1495         <biorn@dce.chalmers.se>
1497         * lib/krb5/krb5_data.3: spelling, from Björn Sandell
1498         <biorn@dce.chalmers.se>
1500         * lib/krb5/krb5_aname_to_localname.3: spelling, from Björn Sandell
1501         <biorn@dce.chalmers.se>
1503         * lib/krb5/krb5_address.3: spelling, from Björn Sandell
1504         <biorn@dce.chalmers.se>
1506 2005-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
1508         * kdc/config.c: Use the new Kerberos 4 functions in libkrb5 and so
1509         kerberos 4 is always compiled in (still default disabled)
1511         * kdc/kerberos4.c: Use the new Kerberos 4 functions in libkrb5 and
1512         so kerberos 4 is always compiled in (still default disabled)
1514         * lib/krb5/krb5_locl.h: forward declaration of _krb5_krb_auth_data
1515         
1516         * lib/krb5/convert_creds.c: Move the kerberos v4 replacement
1517         functions to v4_glue.c
1519         * lib/krb5/v4_glue.c: Implement enough of kerberos 4 protocol to
1520         be a KDC, move the v4 bits over here
1521         
1522         * lib/krb5/krb5-v4compat.h: add more v4 defines
1523         
1524 2005-04-22  Love Hörnquist Åstrand  <lha@it.su.se>
1526         * kpasswd/kpasswdd.c: Support multi-realms databases, requires
1527         that all the realms are configured on the KDC in krb5.conf with
1528         [libdefaults]default_realm stanzas.
1530 2005-04-21  Love Hörnquist Åstrand  <lha@it.su.se>
1532         * kdc/kerberos5.c: spell succeeded correctly, From Sean Chittenden
1534         * lib/krb5/addr_families.c: catch two more snprintf problems
1535         
1536 2005-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
1538         * lib/hdb/Makefile.am: this lib include com_err, add -com_err to
1539         CHECK_SYMBOLS
1541         * appl/test/http_client.c: cast ssize_t to unsigned long, fix
1542         printf format
1544 2005-04-19  Love Hörnquist Åstrand  <lha@it.su.se>
1546         * lib/krb5/kuserok.c: use asprintf to avoid truncating pathnames
1547         
1548         * lib/krb5/get_host_realm.c: check return value of snprintf
1549         
1550         * lib/krb5/test_addr.c: check address truncation
1551         
1552         * lib/krb5/addr_families.c: check return values from snprintf and
1553         clean up semantics of ret_len
1555         * lib/krb5/krb5_address.3: clarify what ret_len is in
1556         krb5_print_address
1558         * lib/krb5/test_kuserok.c: add --version and --help
1559         
1560         * lib/krb5/kuserok.c: use getpwnamn_r if it exists
1562         * lib/krb5/Makefile.am: noinst_PROGRAMS += test_kuserok
1564         * lib/krb5/test_kuserok.c: test program for krb5_kuserok
1566 2005-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
1568         * lib/krb5/acache.c (acc_resolve): if open_default_ccache failed
1569         with ccErrCCacheNotFound try again with create_default_ccache,
1570         this fixes the problem where the security server apperenly haven't
1571         started yet on Mac OS X
1572         
1573         * lib/krb5/get_default_principal.c
1574         (_krb5_get_default_principal_local): add, for use of functions
1575         that in ccache layer to avoid recursive calls.
1576         
1577         * lib/hdb/hdb-ldap.c: drop <ctype.h>, no longer use any of the is*
1578         macros in this file
1580         * include/make_crypto.c: cast to unsigned char to make sure its
1581         not negative when passing it to is* functions
1583 2005-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
1585         * doc/programming.texi: remove manpage macro, add some more
1586         references to manpages
1588         * doc/heimdal.texi: define manpage macro
1589         
1590         * doc/setup.texi: document new password policy code
1591         
1592         * kpasswd/kpasswdd.c: add verifier libraries with
1593         kadm5_add_passwd_quality_verifier
1595         * lib/krb5/krb5_keyblock.3: document krb5_keyblock_init
1596         
1597 2005-04-14  Love Hörnquist Åstrand  <lha@it.su.se>
1599         * kdc/kaserver.c: AUTHENTICATE and AUTHENTICATE_V2 is almost the
1600         same, and clients
1601         (klog) can deal with that the kaserver returns the same thing for
1602         both
1604         * lib/krb5/keyblock.c: Add krb5_keyblock_init to allocate an fill
1605         in a keyblock from key data.
1606         
1607 2005-04-12  Love Hörnquist Åstrand  <lha@it.su.se>
1609         * configure.in: rk_WIN32_EXPORT for roken
1611 2005-04-10  Love Hörnquist Åstrand  <lha@it.su.se>
1612         
1613         * appl/test/gssapi_server.c: print out client principla of
1614         delegated credential
1616 2005-04-07  Love Hörnquist Åstrand  <lha@it.su.se>
1618         * lib/krb5/init_creds_pw.c (process_pa_data_to_key): also check
1619         for KRB5_PADATA_PK_AS_REP_19, From: Douglas Engert
1621 2005-04-07  Love Hörnquist Åstrand  <lha@it.su.se>
1622         
1623         * .cvsignore: ignore more generate files
1624         
1625 2005-04-04  Love Hörnquist Åstrand  <lha@it.su.se>
1627         * lib/asn1/check-der.c: use size_t, print size_t by casting to
1628         unsigned long
1629         
1630         * lib/krb5/test_crypto.c: print size_t by casting to unsigned long
1631         
1632         * lib/krb5/acache.c: Argument to create_new_ccache is a principal,
1633         not a credential cache name.  Clean up lossage related to this
1634         problem.
1636         * lib/hdb/Makefile.am: CHECK_SYMBOLS += HDBFlags2int
1637         
1638         * lib/krb5/addr_families.c
1639         (krb5_address_prefixlen_boundary,krb5_free_address):
1640         use find_atype when we are dealing with a kerberos address type
1642         * lib/krb5/aes-test.c: size_t vs int + fix printf
1643         
1644         * lib/krb5/pkinit.c: Since the decode can't make out the diffrence
1645         between PA-PK-AS-REP-19 and PA-PK-AS-REQ-Win2k, try harder to
1646         verify both cases
1648 2005-04-03  Love Hörnquist Åstrand  <lha@it.su.se>
1650         * appl/test/uu_client.c: print size_t by casting to unsigned long
1651         
1652 2005-04-01 Johan Danielsson <joda@pdc.kth.se>
1654         * kdc/kerberos4.c (do_version4): check client and server max_life
1655         
1656         * kdc/kaserver.c (do_getticket): check client max_life
1657         
1658 2005-03-31  Love  <lha@kth.se>
1660         * lib/krb5/verify_krb5_conf.c: const poison
1662         * lib/krb5/test_alname.c: const poison
1664         * lib/asn1/main.c: const poison
1666         * lib/krb5/test_addr.c: test parse IPv6 RANGE addresses
1668         * lib/krb5/addr_families.c: implement mask boundary for IPv6
1670         * lib/asn1/gen.c: avoid const string warnings steming from
1671         writeable-string
1673 2005-03-28  Love Hörnquist Åstrand  <lha@it.su.se>
1675         * lib/krb5/Makefile.am: TESTS += test_addr
1677         * lib/krb5/test_addr.c: simple test for addresses
1678         
1679         * lib/krb5/addr_families.c: make RANGE parse prefixlen style
1680         addresses too, fix printing of RANGE addresses, add
1681         krb5_address_prefixlen_boundary
1683         * lib/krb5/krb5_keytab.3: stop memory leak in example, expand on
1684         wildcards
1686 2005-03-26  Love Hörnquist Åstrand  <lha@it.su.se>
1688         * lib/krb5/krb5_principal.3: spelling, from Tomas Olsson
1690         * lib/krb5/krb5_warn.3: spelling, from Tomas Olsson
1692 2005-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1694         * lib/krb5/acache.c: add mutex for global variables, clean up
1695         returned error codes, implement storing addresses into the ccapi
1697         * appl/test/gssapi_server.c: free memory, make error strings match
1698         
1699         * appl/test/gssapi_server.c: use print_gss_name, print server name
1700         too
1702         * appl/test/gss_common.h (print_gss_name): common code for
1703         printing gss name
1705         * appl/test/gss_common.c (print_gss_name): common code for
1706         printing gss name
1708         * appl/test/http_client.c: Make constent with rest of the gssapi
1709         test programs
1711 2005-03-17  Love Hörnquist Åstrand  <lha@it.su.se>
1713         * lib/hdb/keys.c: AES is enabled by default, remove ifdefs
1714         
1715         * lib/krb5/crypto.c: AES is enabled by default, remove ifdefs
1716         
1717         * lib/krb5/aes-test.c: use hex encoder from roken AES is enabled
1718         by default, remove ifdefs
1720         * kdc/kerberos5.c: AES is enabled by default, remove ifdefs
1722 2005-03-16  Love Hörnquist Åstrand  <lha@it.su.se>
1724         * doc/setup.texi: Add some text about modifying the database
1725         
1726 2005-03-15  Love Hörnquist Åstrand  <lha@it.su.se>
1728         * kuser/kinit.c: widen lifetime/renewal warning text field, also
1729         make use of unparse_time_approx, no need to be specific to the
1730         second when ticket needs to be renewed or their lifetime.
1732         * doc/heimdal.texi: copyright maintenance, drop eay, use updated
1733         UCB license
1735         * lib/krb5/crypto.c: more static and unsigned issues
1737         * lib/krb5/crypto.c: fix signedness issues, prompted by report of
1738         Magnus Ahltorp
1740 2005-03-13  Love Hörnquist Åstrand  <lha@it.su.se>
1742         * lib/krb5/krb5_keytab.3: more text about how to free returned
1743         resources
1745 2005-03-10  Love Hörnquist Åstrand  <lha@it.su.se>
1747         * lib/krb5/pkinit.c: handle the -25 generation path
1749         * lib/krb5/pkinit.c: use KRB5_PADATA_PK_AS_REQ_19
1750         
1751         * lib/krb5/pkinit.c: fold in pk-init-25 asn1 changes
1752         
1753 2005-03-09  Love Hörnquist Åstrand  <lha@it.su.se>
1755         * kdc/pkinit.c: use generated oid's
1756         
1757         * lib/krb5/pkinit.c: use generated oid's
1758         
1759 2005-03-08  Love Hörnquist Åstrand  <lha@it.su.se>
1761         * kdc/pkinit.c: update to the asn1 structures used in -25's
1763         * lib/krb5/pkinit.c: update to the asn1 structures used in -25's
1765 2005-03-04  Love Hörnquist Åstrand  <lha@it.su.se>
1766         
1767         * lib/hdb/hdb-ldap.c: use the newly written hex function from
1768         roken and remove the old implementation
1770 2005-03-01  Love Hörnquist Åstrand  <lha@it.su.se>
1772         * appl/test/http_client.c: allow specifing port to connect to
1774 2005-02-24  Love Hörnquist Åstrand  <lha@it.su.se>
1776         * lib/krb5/Makefile.am: bump version to 21:0:4
1778         * lib/hdb/Makefile.am: bump version to 8:0:1
1779         
1780         * lib/asn1/Makefile.am: bump version to 7:0:1
1782 2005-02-23  Love Hörnquist Åstrand  <lha@it.su.se>
1784         * lib/krb5/crypto.c (DES_string_to_key_int): must check for weak
1785         keys after doing the DES_cbc_cksum
1787 2005-02-19  Luke Howard  <lukeh@padl.com>
1789         * lib/krb5/krbhst.c: set KD_CONFIG after calling
1790           config_get_hosts() in kpasswd_get_next()
1791           From: Wynn Wilkes <wynnw@vintela.com>
1793 2005-02-15  Love Hörnquist Åstrand  <lha@it.su.se>
1795         * lib/hdb/db3.c (DB_open): correct the check for O_RDONLY
1796         From: Chaskiel M Grundman <cg2v@andrew.cmu.edu>
1798 2005-02-09  Love Hörnquist Åstrand  <lha@it.su.se>
1800         * lib/krb5/crypto.c (krb5_random_to_key): cast size_t to int to
1801         make %d work
1803 2005-02-08  Love Hörnquist Åstrand  <lha@it.su.se>
1805         * lib/krb5/keytab.c (krb5_kt_get_entry): tell what enctype the
1806         caller requested to provide the user with a glue what the caller
1807         was asking for.
1809 2005-02-05  Luke Howard  <lukeh@padl.com>
1811         * lib/krb5/kcm.c: add _krb5_kcm_is_running, _krb5_kcm_noop
1813         * kcm/acquire.c: don't leak salt if keyproc called multiple
1814           times
1816         * kcm/config.c: allow KCM system ccache to be configured from
1817           krb5.conf, in the system_ccache stanza of [kcm]
1819 2005-02-03  Love Hörnquist Åstrand  <lha@it.su.se>
1821         * kcm/protocol.c: use -1 as the invalid pid number
1823         * kcm/connect.c: support SCM_CREDS (for NetBSD)
1825         * kcm/Makefile.am: LDADD += LIB_pidfile
1826         
1827         * kcm/connect.c: make it possible to build on systems without
1828         SO_PEERCRED (still doesn't work)
1830         * kcm/config.c: cast argument to isdigit to unsigned char
1831         
1832         * lib/krb5/krb5.conf.5: document large_msg_size
1834         * lib/krb5/context.c (init_context_from_config_file): init
1835         large_msg_size to 6000
1837         * lib/krb5/krb5.h (krb5_context_data): add large_msg_size,
1838         threshold where we start to use transport protocols without tiny
1839         max data transport sizes.
1841         * lib/krb5/kcm.h: drop prototypes, they all live in krb5-private.h
1842         by now
1844 2005-02-02  Luke Howard  <lukeh@padl.com>
1846         * configure.in: generate kcm/Makefile
1848         * Makefile.am: recurse into kcm/ if KCM defined
1850         * kcm: add KCM daemon
1852 2005-02-02  Love Hörnquist Åstrand  <lha@it.su.se>
1854         * lib/krb5/send_to_kdc.c (send_and_recv_udp): make private again
1856         * lib/krb5/kcm.c: use AF_UNIX like the rest of the codebase, add
1857         some more error strings
1859 2005-02-02  Luke Howard  <lukeh@padl.com>
1861         * configure.in: add --enable-kcm option for Kerberos
1862           Credentials Manager (KCM)
1864         * lib/krb5/Makefile.am: add kcm.c
1866         * lib/krb5/cache.c: use cc_retrieve_cred if present rather
1867           than enumerating ccache
1869         * lib/krb5/context.c: register KCM cc_ops
1871         * lib/krb5/get_cred.c: pass all options to cc_retrieve_cred
1873         * lib/krb5/init_creds_pw.c: add krb5_get_init_creds_keyblock
1875         * lib/krb5/kcm.[ch]: add initial implementation of KCM
1876           client library
1878         * lib/krb5/krb5.h: fix cc_retrieve prototype, add KCM cc_ops
1880         * lib/krb5/send_to_kdc.c: add _krb5_send_and_recv_tcp
1882         * lib/krb5/store.c: add krb5_store_creds_tag, krb5_ret_creds_tag
1884 2005-01-24  Luke Howard  <lukeh@padl.com>
1886         * lib/krb5/init_creds_pw.c: allow NULL in_options to be passed
1887           krb5_get_init_creds_password()
1889         * kdc/kerberos5.c: don't crash when logging no server etype
1890           support if client == NULL
1892 2005-01-17  Love Hörnquist Åstrand  <lha@it.su.se>
1894         * kdc/kstash.c: s/random_key/random_key_flag/, From Dave Love
1895         <d.love@dl.ac.uk>
1897 2005-01-12  Love Hörnquist Åstrand  <lha@it.su.se>
1899         * doc/apps.texi: Texinfo fixes. Text about irix 6.5 using
1900         PAM. From: Dave Love <d.love@dl.ac.uk>
1902 2005-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
1904         * lib/krb5/verify_krb5_conf.c: cast argument to isdigit to
1905         unsigned char
1907         * lib/krb5/keytab_keyfile.c: cast argument to toupper to unsigned
1908         char
1910         * lib/asn1/hash.c (hashcaseadd): cast argument to toupper to
1911         unsigned char
1913         * appl/kf/kfd.c (kfd_match_version): cast argument to islower to
1914         unsigned char
1916         * lib/krb5/krb5.3: drop krb5_{checksum,enctype}_is_disabled
1918         * lib/krb5/krb5_encrypt.3: drop krb5_enctype_is_disabled, more
1919         text about krb5_enctype_valid
1921         * lib/krb5/krb5_create_checksum.3: drop
1922         krb5_checksum_is_disabled
1924         * lib/krb5/crypto.c: drop krb5_{checksum,enctype}_isdisabled
1925         
1926         * lib/krb5/context.c: krb5_enctype_is_disabled is the same thing
1927         as krb5_enctype_valid, so use the later since its older and the
1928         api doesn't really need another entry point
1930         * lib/krb5/rd_req.c: krb5_enctype_is_disabled is the same thing as
1931         krb5_enctype_valid, so use the later since its older and the api
1932         doesn't really need another entry point
1934         * kdc/kerberos5.c: krb5_enctype_is_disabled is the same thing as
1935         krb5_enctype_valid, so use the later since its older and the api
1936         doesn't really need another entry point
1938 2005-01-05  Love Hörnquist Åstrand  <lha@it.su.se>
1940         * kpasswd/kpasswdd.8: document --addresses, controls what
1941         addresses kpasswd should listen too
1943         * kpasswd/kpasswdd.c: add --addresses, controls what addresses
1944         kpasswd should listen too
1946         * lib/krb5/addr_families.c (krb5_parse_address): filter out dup
1947         addresses from getaddrinfo
1949         * kpasswd/kpasswd.1: document -c
1951         * kpasswd/kpasswd.c: allow specifying a credential cache to use
1952         for the admin principal
1954         * include/bits.c: constify to avoid warning with -Wwrite-string
1955         
1956         * NEWS: add 0.6.2 and 0.6.3 items
1957         
1958         * lib/krb5/krb5_keyblock.3: document krb5_generate_subkey_extended
1960         * lib/krb5/krb5_is_thread_safe.3: document function
1962         * lib/krb5/Makefile.am (man_MANS) += krb5_is_thread_safe.3
1963         
1964         * lib/krb5/context.c (krb5_is_thread_safe): return TRUE is the
1965         library was compiled with multithreading support. If not,
1966         application must global lock the library, it it uses threads that
1967         call kerberos functions at the same time.
1968         
1969 2005-01-05  Luke Howard  <lukeh@padl.com>
1971         * lib/krb5/auth_context.c: use krb5_generate_subkey_extended()
1973         * lib/krb5/appdefault.c: remove redundant KRB5_LIB_FUNCTION
1975         * lib/krb5/build_auth.c: support for enctype negotiation
1976           (client sends EtypeList in Authenticator authz data)
1978         * lib/krb5/context.c: mutex should be destroyed last in
1979           krb5_free_context()
1981         * lib/krb5/generate_subkey.c: add krb5_generate_subkey_extended(),
1982           set *subkey to NULL if key geneartion fails
1984         * lib/krb5/krb5.h: add KRB5_KU_PA_SERVER_REFERRAL_DATA
1986         * lib/krb5/mk_req_ext.c: support ETYPE_ARCFOUR_HMAC_MD5_56
1988         * lib/krb5/rd_req.c: support for enctype negotiation
1989           (client sends EtypeList in Authenticator authz data)
1991 2005-01-04  Luke Howard  <lukeh@padl.com>
1993         * lib/asn1/k5.asn1: add authorization data types for enctype
1994         negotiation implementation
1996 2005-01-04  Love Hörnquist Åstrand  <lha@it.su.se>
1998         * lib/krb5/changepw.c (change_password_loop): on failing to find a
1999         kdc, set result_code to KRB5_KPASSWD_HARDERROR
2000         
2001 2005-01-01  Love Hörnquist Åstrand  <lha@it.su.se>
2003         * doc/heimdal.texi: Happy New Year
2004