Commit Graph

3332 Commits

Author SHA1 Message Date
Assar Westerlund
6d5871d904 (readv): error check malloc properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6401 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:35:07 +00:00
Assar Westerlund
b68a6ee7f1 (unparse_name): error check malloc properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6400 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:34:20 +00:00
Assar Westerlund
5a2a11f6e6 (krb5_init_etype): error check malloc properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6399 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:33:32 +00:00
Assar Westerlund
9230f6de40 (*): do some malloc return-value checks properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6397 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:32:51 +00:00
Assar Westerlund
d1e9257fda (hdb_process_master_key): simplify by using krb5_data_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6396 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:31:49 +00:00
Assar Westerlund
b7f8d1d2a5 (hdb_process_master_key): check return value from malloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6395 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:30:37 +00:00
Assar Westerlund
85fea37f1e (statement): use asprintf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6394 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:30:04 +00:00
Assar Westerlund
8c03752be7 (decode_type): fix generation of decoding information for
TSequenceOf.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6393 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:28:55 +00:00
Assar Westerlund
6c9520273d (copy_octet_string): don't fail if length == 0 and malloc returns NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6388 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-02 21:35:12 +00:00
Assar Westerlund
022ae5ecc6 (ipv6_parse_addr): implement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6385 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-29 02:11:46 +00:00
Assar Westerlund
a41ab60051 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6384 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-28 18:33:40 +00:00
Assar Westerlund
a7904acbad (kadm5_s_randkey_principal): nuke old mkvno, otherwise hdb will think
that the new random keys are already encrypted which will cause lots
of confusion later.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6383 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-28 18:33:24 +00:00
Assar Westerlund
8a80d1a936 (krb5_rd_cred): compare the sender's address as an addrport one
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6376 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:19:51 +00:00
Assar Westerlund
5178d921b9 (KRB5_ADDRESS_ADDRPORT, KRB5_ADDRESS_IPPORT): add
(krb5_auth_context): add local and remote port


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6375 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:19:09 +00:00
Assar Westerlund
3e3591b1a0 (krb5_get_forwarded_creds): get the local and remote address and add
them to the krb-cred packet


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6374 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:18:24 +00:00
Assar Westerlund
3016410999 save the local and remove ports in the auth_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6373 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:11:04 +00:00
Assar Westerlund
f7ad9e28eb (krb5_make_addrport): create an address of type KRB5_ADDRESS_ADDRPORT
from (addr, port)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6372 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:10:42 +00:00
Assar Westerlund
70fe4312c6 (krb5_sockaddr2port): new function for grabbing the port number out of
the sockaddr


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6371 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:10:15 +00:00
Assar Westerlund
8335186d31 (parse_list): handle blank lines at another place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6364 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 16:37:32 +00:00
Assar Westerlund
0d49ab4e1f *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6359 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:43:31 +00:00
Assar Westerlund
2dbeee4ddc (acc_units): move the special case of 0 -> 1 to parse_something to
avoid having it happen at the end of the string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6358 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:41:35 +00:00
Assar Westerlund
86d38a634d add test of -1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6357 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:39:42 +00:00
Assar Westerlund
7d1092fd56 (_kadm5_setup_entry): handle 0 == unlimited correctly. From Michal
Vocu <michal@karlin.mff.cuni.cz>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6350 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 11:55:24 +00:00
Assar Westerlund
2a50031890 (get_cred_cache): you cannot reuse the cred cache if the principals
are different.  close and NULL the old one so that we create a new one.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6349 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 10:19:40 +00:00
Assar Westerlund
93875f023f *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6330 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-16 10:26:21 +00:00
Assar Westerlund
6b2db73d73 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6328 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 04:38:33 +00:00
Assar Westerlund
e80311c0f6 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6326 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:55:01 +00:00
Assar Westerlund
7f1fb98d62 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6321 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:15:57 +00:00
Assar Westerlund
5f9743814e add get_default_username
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6320 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:14:11 +00:00
Assar Westerlund
0b1eb0e088 new file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6319 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:09:35 +00:00
Assar Westerlund
4270c96bb8 (get_default_username): add prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6318 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:47:41 +00:00
Assar Westerlund
a26b5a8e0a add get_default_username
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6317 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:47:26 +00:00
Assar Westerlund
f67bbf1a82 rewrite to use get_default_username
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6316 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:47:11 +00:00
Assar Westerlund
62bdd58c11 add n-fold-test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6315 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:46:46 +00:00
Assar Westerlund
5df21ee4a4 (get_cred_cache): use get_default_username
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6314 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:46:25 +00:00
Assar Westerlund
1bd4c85715 make it solaris make vpath-safe
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6305 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-13 05:54:30 +00:00
Assar Westerlund
39ad11070e (realm_of_cell): rename to _kafs_realm_of_cell and un-staticize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6303 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 22:41:41 +00:00
Assar Westerlund
5fc1487dfb (ipv6_uninteresting): don't consider the loopback address as
uninteresting


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6302 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 06:19:43 +00:00
Assar Westerlund
02689992d9 new magic flag to get loopback address if there are no other
addresses.
(krb5_get_all_client_addrs): use that flag


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6301 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 06:17:36 +00:00
Assar Westerlund
6decfa4dc7 (swap_u_int32_t): add _CRAY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6300 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 05:36:31 +00:00
Assar Westerlund
f1d99aa1e9 (add1): joda-fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6297 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-04 19:56:58 +00:00
Assar Westerlund
f2cf913bd2 (HMAC_SHA1_DES3_checksum): don't include the length
(checksum_sha1, checksum_hmac_sha1_des3): blocksize should be 64
(encrypt_internal_derived): don't include the length and don't
decrease by the checksum size twice
(_get_derived_key): the constant should be 5 bytes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6295 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-03 23:06:10 +00:00
Assar Westerlund
03adfaa3b1 (DES3_postproc): new version that does the right thing
(*): don't put and recover length in 3DES encoding
other small fixes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6294 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-03 17:36:04 +00:00
Assar Westerlund
60af6a3d15 (create_principal): if there's no default entry the mask should be
zero


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6280 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-23 06:45:18 +00:00
Assar Westerlund
31423b5edb (krb5_get_host_realm): don't free if we didn't manage to set anything
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6272 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 13:18:55 +00:00
Assar Westerlund
fa88e29d84 (verify_checksum): call (*ct->checksum) directly, avoiding redundant
lookups and memory leaks


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6271 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 12:46:38 +00:00
Assar Westerlund
641c286e2e (krb5_auth_con_setaddrs_from_fd): free local and remote addresses
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6270 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:57:46 +00:00
Assar Westerlund
d5e0df8565 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6269 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:31:55 +00:00
Assar Westerlund
fdbb09f0e3 (get_logname): also try $USERNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6268 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:28:40 +00:00
Assar Westerlund
2029da488e (get_cred_cache): use $USERNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6267 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:27:43 +00:00