Commit Graph

634 Commits

Author SHA1 Message Date
Jacques A. Vidrine 3d7ec07178 We need <limits.h> now for UINT_MAX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11413 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-09 14:16:55 +00:00
Jacques A. Vidrine 9849899e7f Validate some counts that may be received from the network:
Check that they are non-negative, and that they are small enough to
avoid integer overflow when used in memory allocation calculations.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11411 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-09 14:03:03 +00:00
Assar Westerlund 73aa6bce70 (encode_reply): correct error logging
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-05 02:55:01 +00:00
Johan Danielsson 9dbccbeb68 use ASN1_MALLOC_ENCODE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11375 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 18:42:22 +00:00
Johan Danielsson 03b00835b5 set AP_OPTS_USE_SUBKEY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11374 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 18:19:41 +00:00
Assar Westerlund 68a70a156f add missing ifdef DAEMON
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11308 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-29 01:51:07 +00:00
Johan Danielsson b94f52a528 invert detach flag meaning to lessen the confusion
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11298 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 21:27:16 +00:00
Johan Danielsson d8d14738e2 add detach options
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 21:26:43 +00:00
Johan Danielsson 71d5ee0ce2 maybe detach from console?
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11296 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 21:12:03 +00:00
Johan Danielsson d272c5c219 markup changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11295 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 21:09:05 +00:00
Johan Danielsson f781cef162 add blurb about adding and removing addresses; update kdc.conf section
to match reality


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-22 09:55:00 +00:00
Johan Danielsson 2c147bd837 more ws
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11177 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:18:38 +00:00
Johan Danielsson 879fc6b8bc more, mostly whitespace, fixes from Thomas Klasusner
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:07:29 +00:00
Johan Danielsson 747a00df69 remove Ns before comma (from Thomas Klausner)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11175 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 16:37:20 +00:00
Johan Danielsson 8ef0cefbd8 update protos
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 12:18:07 +00:00
Johan Danielsson b0ef62525d (kdc_openlog): no need for a config_file parameter
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 12:17:49 +00:00
Johan Danielsson cd299be4f8 just treat kdc.conf like any other config file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 12:16:59 +00:00
Johan Danielsson 62bff3a986 (addr_to_string): check return value of sockaddr2address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-12 13:29:48 +00:00
Johan Danielsson 47b7f07d33 ENOENT -> HDB_ERR_NOENTRY (from Derrick Brashear)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11063 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-31 09:43:20 +00:00
Johan Danielsson 56967035b9 add some cache-control-foo to the http responses (from Gombas Gabor)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-04 14:53:11 +00:00
Johan Danielsson a3ff467dc7 don't free encrypted padata until we're really done with it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10980 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-15 14:24:17 +00:00
Johan Danielsson f446478772 when decrypting pa-data, try all keys matching enctype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-07 10:27:35 +00:00
Johan Danielsson f5c1154132 storage tweaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 16:08:24 +00:00
Johan Danielsson 7b3d5dbb6e (get_pa_etype_info): sort ETYPE-INFOs by requested KDC-REQ etypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 10:24:49 +00:00
Johan Danielsson fc4f2a6921 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 10:18:50 +00:00
Johan Danielsson d1927c345d make port_str const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 10:17:49 +00:00
Johan Danielsson e165bc3f98 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:47:25 +00:00
Johan Danielsson e93c997617 (find_etype): unsigned -> krb5_enctype (from Reinoud Zandijk)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-22 12:12:44 +00:00
Assar Westerlund c672a244ba make the kvno's in the krb4 universe by the real one % 256, since they
cannot only be 8 bit, and the v5 ones are actually 32 bits


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:05:57 +00:00
Johan Danielsson c2cde6766e (get_dbinfo): if there are database specifications in the config file,
don't automatically try to use the default values (from Gombas Gabor)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-04 10:53:48 +00:00
Assar Westerlund 1633b94ab9 mdoc fixes (refer correctly to programs). from Ruslan Ermilov <ru@FreeBSD.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10812 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-01-24 15:30:49 +00:00
Assar Westerlund 9f1c66fe5f use krb5_enctype consistently. From Ben Harris <bjh21@netbsd.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-01-06 23:10:06 +00:00
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