Commit Graph

602 Commits

Author SHA1 Message Date
Assar Westerlund
c597d7cb0f printf size_t correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-23 05:13:17 +00:00
Assar Westerlund
a72c878c4f (valid_princ): use TRUE/FALSE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-20 09:34:42 +00:00
Johan Danielsson
2499b84bc7 add realm override option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-18 09:54:15 +00:00
Johan Danielsson
4526cd826e more free's
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-18 09:37:33 +00:00
Assar Westerlund
9b8ad9f282 set and use INCLUDE_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 08:31:31 +00:00
Assar Westerlund
aad564d1c2 re-write the handling of crypto libraries. try to use the one of
openssl's libcrypto or krb4's libdes that has all the required
functionality (md4, md5, sha1, des, rc4).  if there is no such
library, the included lib/des is built.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-22 20:30:33 +00:00
Assar Westerlund
7d75a2a5f5 include libutil.h if it exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10515 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 23:09:03 +00:00
Assar Westerlund
4d28b080a6 (get_des_key): check for null keys even if is_server
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 23:00:16 +00:00
Assar Westerlund
ec8233054e (do_request): print size_t's correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10508 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 10:10:25 +00:00
Johan Danielsson
0e1cd9e55f fix prototype for get_des_key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10499 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-17 07:49:23 +00:00
Johan Danielsson
04c7a2f78d fix call to get_des_key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10498 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-17 07:49:01 +00:00
Johan Danielsson
3e1b5578a6 (get_des_key): if getting a key for a server, return any des-key not
just keys that can be string-to-keyed by the client


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-17 07:48:24 +00:00
Johan Danielsson
8f3756d7e5 add comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-10 14:02:57 +00:00
Assar Westerlund
f26c83b3fa try to update it with the code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10357 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-19 16:33:26 +00:00
Assar Westerlund
d0cf56e249 (usage): clarify a tiny bit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-19 16:29:35 +00:00
Assar Westerlund
55780d09e4 simple spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-12 02:26:44 +00:00
Johan Danielsson
f2b24f8055 remove v4 master key handling; remove old v4-db and ka-db flags; add
defaults for v4_realm and afs_cell


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-11 19:30:48 +00:00
Johan Danielsson
f18cc03cc0 missed to commit these
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 19:14:58 +00:00
Johan Danielsson
0e956aef0c formatting changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 18:02:34 +00:00
Johan Danielsson
2b67390d1d always include kaserver support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 16:32:19 +00:00
Assar Westerlund
ae46eb241e (do_524): fix typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-29 17:38:31 +00:00
Johan Danielsson
b1f6a2dd75 don't send more data than required
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-29 16:27:55 +00:00
Assar Westerlund
2b908e60eb add a define for des_new_random_key when using openssl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-24 00:04:11 +00:00
Assar Westerlund
2fb88a72e0 update to new krb5_auth_con* names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 04:08:37 +00:00
Assar Westerlund
dfdc3fd8f8 writes -> write
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 03:26:51 +00:00
Johan Danielsson
776835b929 fix for broken mdoc.old grog test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-08 21:35:32 +00:00
Assar Westerlund
32975edd28 (tgs_rep2): alloc and free csec and cusec properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-22 20:16:22 +00:00
Johan Danielsson
cb475ef9b2 actually check the ticket addresses
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-17 07:13:43 +00:00
Johan Danielsson
7becb13b02 pass context to krb5_domain_x500_decode
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 11:33:19 +00:00
Assar Westerlund
22a4752877 adapt to changing address functions
use LR_TYPE


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9943 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:18:25 +00:00
Assar Westerlund
3b36617ac6 adapt to changing address functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:18:11 +00:00
Assar Westerlund
49abdf5d33 new krb5_config_parse_file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9941 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:17:58 +00:00
Assar Westerlund
f45a473448 new krb5_sockaddr2address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9940 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:17:47 +00:00
Assar Westerlund
b507b4516a (tsg_rep): fix typo in variable name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-12 15:19:40 +00:00
Johan Danielsson
3c09910254 don't use NULL where we mean 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 11:52:06 +00:00
Johan Danielsson
0cf3d16107 put referral test code in separate function, and test for
KRB5_NT_SRV_INST


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 11:30:11 +00:00
Assar Westerlund
0cf2f48820 (configure): call free_getarg_strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:34:33 +00:00
Assar Westerlund
25ad02d691 mdoc fixes from ru@freebsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-02 08:59:23 +00:00
Assar Westerlund
06d2baa47b (tgs_rep2): return a reference to a krbtgt for the right realm if we
fail to find a non-krbtgt service in the database and the second
component does a succesful non-dns lookup to get the real realm (which
has to be different from the originally-supplied realm).  this should
help windows 2000 clients that always start their lookups in `their'
realm and do not have any idea of how to map hostnames into realms


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9824 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-29 11:02:49 +00:00
Assar Westerlund
b06fd720d9 (is_krbtgt): rename to get_krbtgt_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-29 10:41:48 +00:00
Assar Westerlund
63b7a66e28 (tgs_rep): call tgs_rep2 properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 03:01:58 +00:00
Assar Westerlund
dd38d687f6 (tgs_rep2): try to set sec and usec in error replies
(*): update callers of krb5_km_error
(check_tgs_flags): handle renews requesting non-renewable tickets


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9763 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 00:55:15 +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
594fe33695 fix a few kdc_log format types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9684 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:29:18 +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
28160c99b9 printf format fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-12 17:13:13 +00:00
Assar Westerlund
8aac280e14 update to new db_fetch4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9636 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 10:49:43 +00:00
Assar Westerlund
9451280638 (v4_get_masterkey): check kdb_verify_master_key properly
(kdb_prop): decrypt key properly


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 03:40:00 +00:00
Assar Westerlund
d2ae43cdc4 handle building with KRB4
always try to decrypt v4 data with the master key
leave it up to the v5 how to encrypt with that master key


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9628 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-05 03:05:31 +00:00
Assar Westerlund
74fd83ce59 include file name in error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9621 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 17:08:35 +00:00