Commit Graph

102 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
abe49e97aa (init_tgs_req): if subkey not avaible, use session key for authorization-data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-21 21:39:27 +00:00
Love Hörnquist Åstrand
91351971f7 add KRB5_LIB_FUNCTION to all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Love Hörnquist Åstrand
111658f363 s/krb5_mk_req_internal/_&/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13624 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-23 12:07:23 +00:00
Love Hörnquist Åstrand
74ee19a354 (make_pa_tgs_req): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:59:37 +00:00
Love Hörnquist Åstrand
ff5bd23572 rename get_krbtgt to _krb5_get_krbtgt and export it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-05 14:08:04 +00:00
Johan Danielsson
e7a40f2d44 get capath info from [capaths] section
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-20 16:40:14 +00:00
Johan Danielsson
7bfff16231 krb5_princ_realm -> krb5_principal_get_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13023 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-20 16:38:53 +00:00
Love Hörnquist Åstrand
1a22071676 (init_tgs_req): make generation of subkey optional on configuration parameter
[realms]realm={tgs_require_subkey=bool}
defaults to off. The RFC1510 weakly defines the correct behavior,
so old DCE secd apparently required the subkey to be there, and MS will
use it when its there. But the request isn't encrypted in the subkey,
so you get to choose if you want to talk to a MS mdc or a old DCE secd.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 16:25:14 +00:00
Love Hörnquist Åstrand
283630104a prefix libasn1 types with heim_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 14:05:49 +00:00
Love Hörnquist Åstrand
63711b92db (init_tgs_req): in case of error, don't free in the req_body addresses
since they where pass in by caller
(find_cred): use krb5_cc_clear_mcred


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12423 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:28:34 +00:00
Johan Danielsson
6a8ce7e86f (init_tgs_req): init ret
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 21:12:46 +00:00
Johan Danielsson
ddc308c36f use ASN1_MALLOC_ENCODE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 16:26:05 +00:00
Johan Danielsson
9012f55e7c (init_tgs_req): use in_creds->session.keytype literally instead of
trying to convert to a list of enctypes (it should already be an
enctype)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 12:04:19 +00:00
Assar Westerlund
7985d3edff get a ticket with no addresses if no-addresses is set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:11:29 +00:00
Assar Westerlund
47db784d92 (get_cred_kdc_la): fix typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-03 18:45:03 +00:00
Johan Danielsson
c1943c71a9 (get_cred_kdc_la): treat no addresses as wildcard
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10240 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 22:30:07 +00:00
Assar Westerlund
d27aa3b62e add some krb5_{set,clear}_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Assar Westerlund
414594d275 (get_cred_kdc): add support for falling back to KRB5_KU_AP_REQ_AUTH
when KRB5_KU_TGS_REQ_AUTH gives `bad integrity'.  this helps for
talking to old (pre 0.3d) KDCs


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-13 04:29:36 +00:00
Johan Danielsson
528de21014 implement krb5_get_cred_from_kdc_opt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-27 20:52:03 +00:00
Assar Westerlund
0e38b0e07e (get_cred_from_kdc_flags): look in [libdefaults]capath for better hint
of realm to send request to.  this allows the client to specify `realm
routing information' in case it cannot be done at the server (which is
preferred)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-19 04:29:44 +00:00
Assar Westerlund
f54138e6a4 (make_pa_tgs_req): update to new krb5_mk_req_internal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9170 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 07:03:03 +00:00
Assar Westerlund
accdd87f82 check return value from krb5_crypto_init
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-18 06:50:26 +00:00
Assar Westerlund
1f76dd87f2 (get_cred_from_kdc_flags): remove unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8850 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 05:31:16 +00:00
Assar Westerlund
49df34b1d3 be more careful of not returning creds at all when an error is
returned


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8701 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-19 01:25:59 +00:00
Johan Danielsson
def1f13529 pa_* -> KRB5_PADATA_*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-19 15:28:48 +00:00
Assar Westerlund
118976b768 (get_cred_kdc): update call of _krb5_extract_ticket
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8015 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-04 15:58:02 +00:00
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
7d24f6e41b (init_tgs_req): use krb5_keytype_to_enctypes_default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7302 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-04 01:57:17 +00:00
Assar Westerlund
17c9fd68e4 (get_cred_from_kdc_flags): allocate and free `*out_creds' properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6065 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 02:08:51 +00:00
Assar Westerlund
9fc8830e95 (make_pa_tgs_req): remove old kludge for secd
(init_tgs_req): add all supported enctypes for the keytype in
`in_creds->session.keytype' if it's set


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6050 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-25 17:42:11 +00:00
Assar Westerlund
633d4621b3 (init_tgs_req): re-structure a little bit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5940 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-11 23:13:39 +00:00
Assar Westerlund
f6e5c6cbae (init_tgs_req): some more error checking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5939 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-11 22:53:45 +00:00
Johan Danielsson
35c4556927 (get_cred_kdc_la): pass context to krb5_get_all_client_addrs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5839 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 18:24:35 +00:00
Johan Danielsson
0db5658a4e (get_cred_kdc, get_cred_kdc_la): make out_creds pointer;
(krb5_get_kdc_cred): allocate out_creds; (get_cred_from_kdc_flags):
free more memory


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5832 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 17:32:39 +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
039540695f KRB5_TGS_NAME: use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5304 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 18:28:46 +00:00
Assar Westerlund
84f21a8ac8 re-structure code.
remove limits on ASN1 generated bits.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5215 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 05:54:37 +00:00
Assar Westerlund
cad841807e (add_cred): add termination NULL pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5190 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-07 16:55:35 +00:00
Johan Danielsson
6230f70c98 Better error if local tgt couldn't be found.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4878 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-15 17:39:12 +00:00
Johan Danielsson
440bf6aeb6 Use krb5_decode_Enc{AS,TGS}RepPart.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4363 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-31 16:31:51 +00:00
Johan Danielsson
2298d9a00c part1 -> kdc_rep, part2 -> enc_part
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4335 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-21 02:13:17 +00:00
Johan Danielsson
8fd8b388f2 Fixes to send authorization-data to the KDC.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4329 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-21 00:45:11 +00:00
Johan Danielsson
d0c101b4cd some cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4272 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-05 21:34:35 +00:00
Assar Westerlund
b2593f7032 use krb5_keytype_to_enctypes to be MIT-compatible
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4184 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-11 06:35:36 +00:00
Assar Westerlund
7f4b2465f9 (make_pa_tgs_req): added comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4072 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 06:16:16 +00:00
Assar Westerlund
f1bd45f22d handle the case of a specific keytype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4014 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 06:25:28 +00:00
Johan Danielsson
d8335a9401 remove unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3963 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 00:28:11 +00:00
Johan Danielsson
8cdd4cecc6 Don't write user-to-user tickets to the cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3922 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 04:14:38 +00:00
Johan Danielsson
b7ebe1debf Rename krb5_free_keyblock to krb5_free_keyblock_contents.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3917 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 01:52:46 +00:00