Love Hörnquist Åstrand
5a9da5632c
(_krb5_mk_req_internal): Indent and remove unused code block.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16798 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-19 20:33:13 +00:00
Love Hörnquist Åstrand
4740e4a03a
(_krb5_mk_req_internal): on failure, goto error handling.
...
Fixes Coverity NetBSD CID 2591 by catching a failing krb5_copy_keyblock()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-19 20:30:34 +00:00
Love Hörnquist Åstrand
4e8e0a32a2
(krb5_rd_priv): reset outdata before returning error or success
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16796 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-18 22:15:57 +00:00
Love Hörnquist Åstrand
ddaa580f35
(krb5_rd_safe): reset outdata before returning error or success
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-18 22:15:28 +00:00
Love Hörnquist Åstrand
544071b438
(krb5_read_message): reset out data before return error or success,
...
fixes many Coverity bugs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16794 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-18 22:13:45 +00:00
Love Hörnquist Åstrand
08687cb067
(krb5_free_addresses): reset val,len in address when free-ing.
...
Fixes Coverity NetBSD bug #2605
(krb5_parse_address): reset val,len before possibly return errors
Fixes Coverity NetBSD bug #2605
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-17 22:12:13 +00:00
Love Hörnquist Åstrand
e1bd6f1007
(recv_loop): it should never happen, but make sure nbytes > 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-07 19:39:59 +00:00
Love Hörnquist Åstrand
ac1c623242
(add_addrs): handle the case where addr->len == 0 and n == 0, then
...
realloc might return NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-07 19:38:09 +00:00
Love Hörnquist Åstrand
203072d917
(decrypt_*): handle the case where the plaintext is 0 bytes long,
...
realloc might then return NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-07 19:34:55 +00:00
Love Hörnquist Åstrand
5cca9c04e6
Drop krb5_string_to_key_derived.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 15:02:37 +00:00
Love Hörnquist Åstrand
b9b27743b2
Remove krb5_string_to_key_derived.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 15:01:22 +00:00
Love Hörnquist Åstrand
d86be025ae
(AES_string_to_key): drop _krb5_PKCS5_PBKDF2 and use PKCS5_PBKDF2_HMAC_SHA1
...
instead.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:52:57 +00:00
Love Hörnquist Åstrand
cbd4c81a98
reformat, avoid free-ing un-init'd memory
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16780 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:51:39 +00:00
Love Hörnquist Åstrand
6e877e22b1
Only use PKCS5_PBKDF2_HMAC_SHA1.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:43:27 +00:00
Love Hörnquist Åstrand
a1cba64cac
Document that applications want to use krb5_get_error_message, add example.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-18 10:00:59 +00:00
Love Hörnquist Åstrand
5cebb7986f
(krb5_generate_random_block): check return value from RAND_bytes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-16 10:10:59 +00:00
Love Hörnquist Åstrand
e4531fd61d
Change indentation, update (c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16746 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-16 07:49:23 +00:00
Love Hörnquist Åstrand
9f095696c7
Make struct krb5_dh_moduli available when compiling w/o pkinit.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16736 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-14 10:08:29 +00:00
Love Hörnquist Åstrand
1b1e73d1ff
update to new paChecksum definition, update the dhgroup handling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-13 11:51:23 +00:00
Love Hörnquist Åstrand
46882d6c08
Add new (-34) pk-init error codes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-13 11:28:22 +00:00
Love Hörnquist Åstrand
fbf63feaeb
Move Configurable options to last in the file.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-09 11:36:27 +00:00
Love Hörnquist Åstrand
9c6c230c49
Wrap KRB5_ADDRESSLESS_DEFAULT with #ifndef
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-09 11:35:25 +00:00
Love Hörnquist Åstrand
4ecc7c1493
Revert previous commit.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:50:37 +00:00
Love Hörnquist Åstrand
07bb0509dd
(krb5_get_error_message): peek inside the context and make a copy of
...
the error string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16696 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:47:01 +00:00
Love Hörnquist Åstrand
713880c9a3
update (c) and .Dd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16695 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:41:00 +00:00
Love Hörnquist Åstrand
d353b1f751
Document krb5_get_error_message.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16694 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:40:25 +00:00
Love Hörnquist Åstrand
7b20682f7b
(krb5_get_error_message): new function, and combination of
...
krb5_get_error_string and krb5_get_err_text
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16693 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:36:45 +00:00
Love Hörnquist Åstrand
c5fe204436
sort, and krb5_get_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16692 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:33:14 +00:00
Love Hörnquist Åstrand
0562239eb9
(krb5_get_init_creds_opt_set_default_flags): Use
...
KRB5_ADDRESSLESS_DEFAULT when checking [appdefault]no-addresses.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16689 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:42:31 +00:00
Love Hörnquist Åstrand
2b37c08fa7
(get_cred_from_kdc_flags): Use KRB5_ADDRESSLESS_DEFAULT when checking
...
[appdefault]no-addresses.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:41:02 +00:00
Love Hörnquist Åstrand
1bb5af8ef5
(krb5_get_forwarded_creds): Use [appdefault]no-addresses before
...
checking if the krbtgt is address-less, use KRB5_ADDRESSLESS_DEFAULT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:37:29 +00:00
Love Hörnquist Åstrand
99dd89912c
Introduce KRB5_ADDRESSLESS_DEFAULT that controlls all address-less behavior.
...
Defaults to false.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16686 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:27:40 +00:00
Love Hörnquist Åstrand
e02cf71271
main is not a KRB5_LIB_FUNCTION
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-01 12:45:13 +00:00
Love Hörnquist Åstrand
bbebb7cc34
(krb5_mk_priv): abort if ASN1_MALLOC_ENCODE failes to produce the
...
matching lenghts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-01 12:39:26 +00:00
Love Hörnquist Åstrand
8bd0927d3b
(krb5_cc_set_default_name): use KRB5_DEFAULT_CCNAME.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 15:42:36 +00:00
Love Hörnquist Åstrand
2c7a8bc348
Add KRB5_DEFAULT_CCNAME, pointer to default credential cache.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16397 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 15:40:50 +00:00
Love Hörnquist Åstrand
498d67f815
Add some more entrypoints.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:50:28 +00:00
Love Hörnquist Åstrand
b15b04eadd
If there is a target principal, use the realm of the realm to change
...
the password with,
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:48:57 +00:00
Love Hörnquist Åstrand
a28a141ec2
Constify principal argument to on krb5_principal_get_ functions.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-11 17:48:38 +00:00
Love Hörnquist Åstrand
a7589e6109
more tests, From Andrew Bartlet
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 18:44:02 +00:00
Love Hörnquist Åstrand
08b361da54
(mkt_remove_entry): realloc can return NULL on success in the case 0
...
entries are allocated, From Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 18:39:46 +00:00
Love Hörnquist Åstrand
828197fc78
(acl_parse_format): tmp needs to be freed too on failure to parse
...
format specifier.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16345 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 15:33:47 +00:00
Love Hörnquist Åstrand
2b64016a93
Free more of the allocated memory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16344 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 15:15:43 +00:00
Love Hörnquist Åstrand
eb0369c938
(krb5_derive_key): Free more of the allocated memory, this function is
...
only used by the test program.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16343 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 14:47:44 +00:00
Love Hörnquist Åstrand
e4794726e4
Free more of the allocated memory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 14:14:43 +00:00
Love Hörnquist Åstrand
bc23e0056b
Memory keytab are now named and refcounted.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 12:41:22 +00:00
Love Hörnquist Åstrand
76fe170bdd
Test that memory keytab are refcounted.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 12:40:50 +00:00
Love Hörnquist Åstrand
b6037cc29a
Index by name and start reference counting on entries.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 12:40:22 +00:00
Love Hörnquist Åstrand
d6931c3fea
(krb5_address_type): add KRB5_ADDRESS_NETBIOS (20)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-30 15:20:32 +00:00
Love Hörnquist Åstrand
116c7fa6f6
Remove usage of krb5_enctype_to_keytype.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-30 11:25:45 +00:00