Commit Graph

3020 Commits

Author SHA1 Message Date
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
Assar Westerlund
2754e0f93c (asn1_files): add $(EXEEXT)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6266 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:27:05 +00:00
Assar Westerlund
dbaadb6d3c (USE_RESOLVER): try to define only if we have a libresolv (currently
by checking for res_search)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6256 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-20 23:57:34 +00:00
Johan Danielsson
b53166b10e (get_cred_cache): figure out principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6251 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-17 14:36:51 +00:00
Assar Westerlund
38294ebfae (swap_u_int32_t): only define when used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6246 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-14 15:23:19 +00:00
Johan Danielsson
cbc6d8e2ed fix past-o
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6203 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-11 12:06:15 +00:00
Assar Westerlund
30f9781488 (krb5_sendauth): handle ccache == NULL by setting the default ccache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6191 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-10 03:46:38 +00:00
Assar Westerlund
adc6425e1c (main): handle the case of no master key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6179 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-09 22:47:47 +00:00
Assar Westerlund
f4893f23f7 (init_as_req): interpret `addrs' being an empty sit of list as to not
ask for any addresses.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6168 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-09 08:49:20 +00:00
Assar Westerlund
cd5b62a486 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6164 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 02:29:49 +00:00
Assar Westerlund
52422fccdf also try <db.h> with DB_DBM_HSEARCH == 1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6163 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 02:25:22 +00:00
Assar Westerlund
46533b9069 (k_hasafs): ifdef a variable properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6162 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 02:24:32 +00:00
Assar Westerlund
db544b1edc (strnlen): update prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6151 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-07 23:56:25 +00:00