Commit Graph

682 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
5d190295aa add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
b6b6ef861a use new DES_ api
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:48:53 +00:00
Love Hörnquist Åstrand
54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +00:00
Love Hörnquist Åstrand
3779c3d612 use DES_KEY_SZ instead of sizeof(des_block)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 03:12:32 +00:00
Love Hörnquist Åstrand
d1bbbff72f use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
compare a uint32_t with 0xffffffff instead of -1


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:17:09 +00:00
Love Hörnquist Åstrand
378d92a693 (main): avoid const warning by using a extra variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 03:01:58 +00:00
Love Hörnquist Åstrand
1eb16a5ad2 (handle_tcp): handle recvfrom returning 0 (connection closed)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12619 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 20:36:07 +00:00
Love Hörnquist Åstrand
2a54d3bcb1 (grow_descr): increment the size after we succeed to allocate the space
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 20:15:39 +00:00
Love Hörnquist Åstrand
fca60360bd (configure): remove only set variable 'e'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12570 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 17:10:56 +00:00
Love Hörnquist Åstrand
c997f14ac2 (init_socket): sockaddr size argument to krb5_addr2sockaddr is a
krb5_addr2sockaddr *


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12569 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 17:08:17 +00:00
Love Hörnquist Åstrand
814929f329 (as_rep): remove usused variable
(tgs_rep2): don't use a temporary ret-variable, ret is reset later


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12568 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:50:20 +00:00
Love Hörnquist Åstrand
dab18270d4 (*): handle krb5_unparse_name returning non-zero
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 15:59:37 +00:00
Love Hörnquist Åstrand
5b1231ff3a add support for KRB5_PADATA_ETYPE_INFO2
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-23 18:56:59 +00:00
Love Hörnquist Åstrand
23489a2cc1 fix mdoc problem, from netbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12277 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-14 21:49:33 +00:00
Love Hörnquist Åstrand
262b7dcbf4 (v4_prop_dump): limit strings length, from openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-28 11:35:55 +00:00
Love Hörnquist Åstrand
75252da59e s/strcat/strlcat/, inspired from openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 15:46:32 +00:00
Love Hörnquist Åstrand
b27ea1a8b6 fix some more memory leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12019 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-15 11:07:39 +00:00
Love Hörnquist Åstrand
62fb84849a s/kerberos/Kerberos/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-06 17:53:05 +00:00
Love Hörnquist Åstrand
b7a5930e84 (as_rep): when the second enctype_to_string failes, remember to free
memory from the first enctype_to_string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-28 17:38:42 +00:00
Johan Danielsson
259e666f95 print the used enctype for kerberos 5 keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-25 12:28:52 +00:00
Love Hörnquist Åstrand
89542e627c 524 is independent of kerberos 4, so move out from #ifdef KRB4
enable_v4_cross_realm since 524 needs it


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 00:23:06 +00:00
Love Hörnquist Åstrand
39bc5eff7a 524 is independent of kerberos 4, so move out enable_v4_cross_realm
since 524 needs it


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 00:22:23 +00:00
Assar Westerlund
99059a6c8e document --kerberos4-cross-realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-17 05:42:33 +00:00
Assar Westerlund
f348b5e16e pay attention to enable_v4_cross_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-17 05:37:55 +00:00
Assar Westerlund
8e42028a0a (enable_v4_cross_realm): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11807 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-17 05:36:20 +00:00
Assar Westerlund
f643967982 (encode_524_response): check the enable_v4_cross_realm flag before
giving out v4 tickets for foreign v5 principals


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-17 05:35:47 +00:00
Assar Westerlund
4482a36786 add --enable-kerberos4-cross-realm option (default to off)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-17 05:34:11 +00:00
Love Hörnquist Åstrand
e5a2a37af1 better/difrent english
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-14 15:25:16 +00:00
Love Hörnquist Åstrand
5612c9889e . -> .\n
copyright/license


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-14 14:11:46 +00:00
Love Hörnquist Åstrand
88d0cbb1b2 changed configuration file -> restart kdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11715 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-14 14:07:40 +00:00
Love Hörnquist Åstrand
14e488c11f add krb4 into the most error messages written to the logfile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-14 13:53:00 +00:00
Love Hörnquist Åstrand
2c9f5a3058 s/intialize/initialize, from <jmc@prioris.mini.pw.edu.pl>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-18 15:39:10 +00:00
Love Hörnquist Åstrand
aa25cfcafa add copyright/license statment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-16 21:10:32 +00:00
Love Hörnquist Åstrand
8998f51418 spelling, from jmc <jmc@prioris.mini.pw.edu.pl>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-04 21:48:01 +00:00
Love Hörnquist Åstrand
34cbf40caa s/databases/a database/
s/Not/not/


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11631 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-31 22:25:09 +00:00
Love Hörnquist Åstrand
a9aa4b4eaf add missing .
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11630 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-31 22:15:24 +00:00
Love Hörnquist Åstrand
1f0aaff6f6 (encode_524_response): its 2b not b2
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-23 14:59:21 +00:00
Love Hörnquist Åstrand
2d078d467a always include kerberos4.c and 524.c in kdc_SOURCES to support 524
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:47:06 +00:00
Love Hörnquist Åstrand
ec1a8d0763 always compile in support for 524
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:45:11 +00:00
Love Hörnquist Åstrand
ccdf3df70e move out krb/524 protos from under #ifdef KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11572 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:44:38 +00:00
Love Hörnquist Åstrand
146162e8c5 export encode_v4_ticket() and get_des_key() even when we build without
kerberos 4, 524 needs them


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11571 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:36:34 +00:00
Johan Danielsson
a2434c987d remove old encrypt_v4_ticket prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-08 18:27:40 +00:00
Johan Danielsson
bcfd1e0ca0 (init_socket): initialise sa_size to size of sockaddr_storage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-02 14:31:01 +00:00
Johan Danielsson
669fa4d24c implement crude b2 style (non-)conversion for use with afs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11538 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-07 10:07:55 +00:00
Johan Danielsson
fa0524600b move encrypt_v4_ticket to 524.c, since that's where it's used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11537 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-07 10:05:23 +00:00
Johan Danielsson
6dc8410423 check that %-quotes are followed by two hex digits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:12:59 +00:00
Johan Danielsson
73f54b2e7f make sure life is positive (from John Godehn)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 12:59:41 +00:00
Johan Danielsson
69cc215e6f don't need des.h here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:04:46 +00:00
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