Commit Graph

1777 Commits

Author SHA1 Message Date
Assar Westerlund
08af8561a0 (krb5_checksum, krb5_keyusage): add compatibility names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 00:50:58 +00:00
Assar Westerlund
b201faa9a6 (create_checksum): change so that `type == 0' means pick from the
`crypto' (context) and otherwise use that type.  this is not a large
change in practice and allows callers to specify the exact checksum
algorithm to use


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 00:49:12 +00:00
Assar Westerlund
414594d275 (get_cred_kdc): add support for falling back to KRB5_KU_AP_REQ_AUTH
when KRB5_KU_TGS_REQ_AUTH gives `bad integrity'.  this helps for
talking to old (pre 0.3d) KDCs


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-13 04:29:36 +00:00
Assar Westerlund
dc52d6bfd6 add documentation for forwardable, proxiable, date_format, srv_lookup,
srv_try_txt, scan_interfaces, fcache_version.  from thorpej@netbsd.org


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 08:11:48 +00:00
Assar Westerlund
d915d3228e add derived-key-test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9746 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 07:45:20 +00:00
Assar Westerlund
b189bcf5fe new tests on key derivation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 07:44:52 +00:00
Assar Westerlund
42a66c6903 (krb5_derive_key): new function, used by derived-key-test.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9744 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 07:44:05 +00:00
Assar Westerlund
7fa065136e more test vectors from same source
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 07:42:30 +00:00
Assar Westerlund
028f806fc1 add new test vectors posted by Ken Raeburn <raeburn@mit.edu> in
<tx1bsra8919.fsf@raeburn.org> to ietf-krb-wg@anl.gov


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9742 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 07:42:05 +00:00
Assar Westerlund
293dc11acc (krb5_enctype): remove trailing comma
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-06 20:26:49 +00:00
Assar Westerlund
81aa7f506c (krb5_enctype): add ENCTYPE_* aliases for compatibility with MIT krb5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-04 02:13:14 +00:00
Johan Danielsson
ef9185aa47 (krb5_init_ets): use krb5_add_et_list
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-28 20:03:47 +00:00
Johan Danielsson
528de21014 implement krb5_get_cred_from_kdc_opt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-27 20:52:03 +00:00
Assar Westerlund
3ec01acc28 add blank lines to make make-proto happier
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9708 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:51:48 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
7eb8627661 (_warnerr): add printf attributes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9689 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:36:00 +00:00
Assar Westerlund
00c631c64b (krb5_sendto): loop over all address returned by getaddrinfo before
trying the next kdc.  from thorpej@netbsd.org


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:35:22 +00:00
Assar Westerlund
59b418d21a fix default_realm in example
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:32:58 +00:00
Assar Westerlund
2aefcf796c try to use handle using openssl instead of libdes better. based on patches from GOMBAS Gabor <gombasg@inf.elte.hu> and Brian May <bam@snoopy.apana.org.au>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:20:54 +00:00
Assar Westerlund
94e0e02022 add krb5_keytab.3, from <lha@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9640 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 18:17:46 +00:00
Assar Westerlund
5761d220bb (decrypt_internal_derived): check that there's enough data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9622 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 17:10:55 +00:00
Assar Westerlund
f2fb74821c (libkrb5_la_LDFLAGS): bump version to 15:0:0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 01:50:52 +00:00
Assar Westerlund
68f0dcb65c (fd_fetch, fd_store): use net_{read,write} to make sure of not
dropping data when doing it over a socket.  (this might break when
used with ordinary files on win32)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-29 02:32:35 +00:00
Assar Westerlund
59a594bad4 use the openssl api for md4/md5/sha. handle openssl/*.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-29 02:09:01 +00:00
Assar Westerlund
5108851012 add krb5_context.3 and krb5_init_context.3, from <lha@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9540 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-28 21:39:29 +00:00
Assar Westerlund
110867f97a add krb5_auth_context.3, from <lha@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9538 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-28 19:47:33 +00:00
Assar Westerlund
975b67e2d1 remove all dependencies on libkrb
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9533 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-28 00:20:24 +00:00
Johan Danielsson
918f97ddd5 don't warn if the port name can't be found, nobody cares anyway
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9521 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-27 19:24:34 +00:00
Assar Westerlund
123f083d26 mdoc fixed from ru@freebsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-26 22:46:29 +00:00
Assar Westerlund
7ff3f957b7 add err.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 12:45:15 +00:00
Assar Westerlund
3bc8d109ae add err.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9492 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 11:20:32 +00:00
Assar Westerlund
7fe46fddf5 document admin_server and kpasswd_server for realms
document capath better


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-19 04:53:24 +00:00
Assar Westerlund
6cce09faf2 (krb5_get_krb_changepw_hst): preferably look at kpasswd_server before
admin_server


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-19 04:30:54 +00:00
Assar Westerlund
0e38b0e07e (get_cred_from_kdc_flags): look in [libdefaults]capath for better hint
of realm to send request to.  this allows the client to specify `realm
routing information' in case it cannot be done at the server (which is
preferred)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-19 04:29:44 +00:00
Assar Westerlund
c87dc9d5f6 (krb5_rd_priv): handle no sequence number as zero when we were
expecting a sequence number.  MIT krb5 cannot generate a sequence
number of zero, instead generating no sequence number


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9484 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-19 04:27:09 +00:00
Assar Westerlund
2b112c9a06 (krb5_rd_safe): handle no sequence number as zero when we were
expecting a sequence number.  MIT krb5 cannot generate a sequence
number of zero, instead generating no sequence number


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-19 04:25:37 +00:00
Assar Westerlund
900f796154 (krb5_appdefault_string): fix condition
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9468 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-10 00:19:58 +00:00
Johan Danielsson
2d6e40ea23 typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-05 16:29:42 +00:00
Johan Danielsson
e3c1ad6145 not much point in setting the anonymous flag here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-05 16:27:39 +00:00
Johan Danielsson
963cf3e7b1 document appdefault_time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9456 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-05 16:26:52 +00:00
Johan Danielsson
30830ecdb1 use krb5_get_init_creds_opt_set_default_flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-04 17:40:00 +00:00
Johan Danielsson
3ecafbe396 new function krb5_get_init_creds_opt_set_default_flags to set options
from krb5.conf


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-04 17:02:58 +00:00
Johan Danielsson
9a756dba9f make this match the MIT function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-04 16:19:00 +00:00
Johan Danielsson
55a3098f04 (krb5_appdefault_string): handle NULL def_val
(krb5_appdefault_time): new function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-04 16:03:03 +00:00
Assar Westerlund
633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Assar Westerlund
a7f81756f8 (krb5_program_setup): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:03:17 +00:00
Johan Danielsson
86a18b0d35 always build keytab_krb4.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9402 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 17:12:21 +00:00
Johan Danielsson
489076ea0e always register the krb4 keytab functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 17:11:51 +00:00
Johan Danielsson
18fa488dac declare krb4_ftk_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 17:11:12 +00:00
Johan Danielsson
fb0b98c204 We don't really need to include krb.h here, since we only use the
principal size macros, so define these here. Theoretically someone
could have a krb4 system where these values are != 40, but this is
unlikely, and krb5_524_conv_principal also assume they are 40.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 17:10:40 +00:00