Johan Danielsson
c5b916ca6f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
57dee8ff47
(find_keys): etypes should be int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7368 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 04:14:08 +00:00
Assar Westerlund
89d9ad5354
(find_etype): support null keys
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7154 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-17 10:35:33 +00:00
Johan Danielsson
72fc8150f1
be more informative in pa-data error messages
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6991 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-20 14:07:31 +00:00
Assar Westerlund
d50e05405a
(as_rep): add an empty X500-compress string as transited.
...
(fix_transited_encoding): check length.
From Miroslav Ruda <ruda@ics.muni.cz >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6722 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 17:14:27 +00:00
Assar Westerlund
509f66086f
(get_pa_etype_info): check return value from malloc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6392 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:26:52 +00:00
Johan Danielsson
b5697c0ca6
fix arguments to decrypt_ticket
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6055 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-27 13:50:07 +00:00
Assar Westerlund
3979b0e513
(check_tgs_flags): starttime of a validate ticket should be > than
...
current time
(*): send flags to krb5_verify_ap_req and krb5_decrypt_ticket
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6002 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-19 14:47:33 +00:00
Johan Danielsson
aaae186ab9
merge new-crypto branch
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Assar Westerlund
34ea75f10f
(check_flags): handle NULL client or server
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5311 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 19:35:53 +00:00
Assar Westerlund
1ef2bdb96d
(tgs_rep2): print the principal with mismatching kvnos
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5287 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 14:28:34 +00:00
Johan Danielsson
1cf9077163
(as_rep): set keytype to sess_ktype if ktype_is_etype
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5233 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 10:44:27 +00:00
Assar Westerlund
e80e7f73a0
(get_pa_etype_info): initialize `ret'
...
(tgs_rep2): initialize `krbtgt'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5050 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:09:57 +00:00
Johan Danielsson
40c3be460d
(check_tgs_flags): make sure kdc-req-body->rtime is not NULL; set
...
endtime to min of new starttime + old_life, and requested endtime
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4975 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-28 22:33:00 +00:00
Johan Danielsson
beeb25cdac
Optionally compare client address to addresses in ticket.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4970 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-28 19:29:43 +00:00
Johan Danielsson
f43f1bd246
Check for `encode_as_rep_as_tgs_rep' flag. Emit an error message if no
...
matching keys where found.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4723 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 05:07:04 +00:00
Johan Danielsson
21f9d06453
static
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4642 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 23:30:29 +00:00
Johan Danielsson
d9f69b31b4
fix some XXX comments
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4641 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 22:16:13 +00:00
Johan Danielsson
3acaa32a3d
Move checking of principal flags to new function `check_flags'.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4638 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 21:57:08 +00:00
Johan Danielsson
5ab42022ca
Rename PA-KEY-INFO -> ETYPE-INFO.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4618 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 00:48:46 +00:00
Johan Danielsson
05a5c19e41
(tgs_rep2): check for interesting flags on involved principals.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4614 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-20 23:48:37 +00:00
Assar Westerlund
d8eb5501ca
(get_pa_etype_info): remove gcc-ism of initializing local struct in
...
declaration.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4379 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-12 02:28:29 +00:00
Johan Danielsson
41c21a7ca4
Check at runtime whether to use enctypes instead of keytypes. If so
...
use the same value to encrypt ticket, and kdc-rep as well as `keytype'
for session key. Fix some obvious bugs with the handling of additional
tickets.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4373 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-31 16:47:31 +00:00
Johan Danielsson
b978944405
Cleanup some ktype-etype code.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4355 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-22 23:34:07 +00:00
Johan Danielsson
5281b7bbfe
If pre-authentication fails, return a list of keytypes, salttypes, and
...
salts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4350 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-22 22:35:46 +00:00
Johan Danielsson
46f727d295
Add some support for using enctypes instead of keytypes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-21 01:00:51 +00:00
Assar Westerlund
42e26f5282
(tgs_rep): initialize `i'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4302 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-20 21:58:50 +00:00
Johan Danielsson
c8c329f6bb
Process AuthorizationData.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4273 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-05 22:34:37 +00:00
Johan Danielsson
312a29e401
Add context to all krb5_config_*get_*.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4263 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-03 21:25:07 +00:00
Assar Westerlund
33247b6276
(tgs_check_authenticator): RFC1510 doesn't say that the checksum has
...
to be keyed, even though later drafts do. Accept unkeyed checksums to
be compatible with MIT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4213 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-17 01:34:25 +00:00
Johan Danielsson
1780faa5c1
Remove unused variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3974 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 01:29:08 +00:00
Assar Westerlund
3b304834e7
(encode_reply): return success
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3713 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 22:41:23 +00:00
Johan Danielsson
5c6a228b00
(find_etype) Return correct index of selected etype.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3711 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 17:01:53 +00:00
Johan Danielsson
cfccafc623
The return value to process_request should only be non-zero if there
...
was some fatal error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3681 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-28 03:56:35 +00:00
Johan Danielsson
c0147303d1
Move stuff that's in common between as_rep and tgs_rep to separate
...
functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3677 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-28 03:24:17 +00:00
Johan Danielsson
9293c68e1b
Fix user-to-user authentication.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3675 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-27 23:20:47 +00:00
Johan Danielsson
4e1ef7a3ce
Check version number of krbtgt.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3654 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-21 18:21:34 +00:00
Assar Westerlund
6b919c6819
removed all unsealing, now done by the hdb layer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3629 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-16 04:24:29 +00:00
Johan Danielsson
a3b72e2213
fix NULL e_text bug
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3611 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 22:22:37 +00:00
Assar Westerlund
1de9ecd915
fix check for keyed and collision-proof checksum
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3546 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-23 07:35:52 +00:00
Johan Danielsson
5c600d0ba3
Somewhat fix the etype usage. The list sent by the client is used to
...
select wich key to encrypt the kdc rep with (in case of as-req), and
with the server info to select the session key type. The server key
the ticket is encrypted is based purely on the keys in the database.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3533 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-22 18:28:07 +00:00
Assar Westerlund
a8948e7362
typo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3474 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-12 23:02:32 +00:00
Assar Westerlund
e985fef005
remove unneeded cast
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3470 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-11 05:46:26 +00:00
Johan Danielsson
b792574729
Don't replace transited field.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3466 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-10 19:40:40 +00:00
Johan Danielsson
ec242eb9f5
Fixes for cross-realm, including (but not limited to):
...
* allow client to be non-existant (should probably check for "local realm")
* if server isn't found and it is a request for a krbtgt, try to find
a realm on the way to the requested realm
* update the transited encoding iff client-realm != server-realm != tgt-realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-10 19:26:09 +00:00
Assar Westerlund
3e4d63e8d6
increase the arbitrary limit from 1024 to 8192
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3449 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-09 05:47:40 +00:00
Assar Westerlund
8a85f87b89
(set_salt_padata): new function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3407 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-07 20:29:19 +00:00
Johan Danielsson
b293e5caea
Check invalid flag.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3402 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-07 12:33:40 +00:00
Johan Danielsson
53f897d164
new salt format
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3319 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-31 19:35:37 +00:00
Johan Danielsson
d0762252d8
Zero and just free ap-req once.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-24 12:04:33 +00:00