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
Johan Danielsson
46fb4c6f02
Implement krb5_get_cred_from_kdc.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3897 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 00:58:16 +00:00
Johan Danielsson
fcc4e9838f
Some restructuring of krb5_get_credentials:
...
- add a kdc-options argument to krb5_get_credentials, and rename it
to krb5_get_credentials_with_flags
- honour the KRB5_GC_CACHED, and KRB5_GC_USER_USER options
- add some more user-to-user glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3674 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-27 23:19:05 +00:00
Johan Danielsson
9229bd2092
Get the subkey from mk_req so it can be used to decrypt the reply from
...
DCE secds.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3600 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 21:51:47 +00:00
Johan Danielsson
9a1fb9c586
Fix for DCE secd.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3598 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 21:10:21 +00:00
Johan Danielsson
e48bd867e4
Several fixes for cross-realm.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3460 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-10 19:20:12 +00:00
Assar Westerlund
cc604a140d
extract_ticket -> _krb5_extract_ticket
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3277 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-29 02:36:31 +00:00
Johan Danielsson
1ac1ca1c73
Check for v4 reply.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3209 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 00:01:46 +00:00
Johan Danielsson
9fe4afaf62
Mask nonce to 32 bits.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3093 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-24 04:34:05 +00:00
Johan Danielsson
61717cbfd4
kdc-req-body->till is optional.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2989 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 01:47:32 +00:00
Johan Danielsson
99981de1a5
remove old get_cred
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2970 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-14 00:04:52 +00:00
Johan Danielsson
3ea98fa1f5
Just copy relevant parts of in_creds
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2939 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-12 01:54:51 +00:00
Johan Danielsson
7be1cc16df
krb5_get_kdc_cred uses get_kdc_cred
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2897 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 02:47:32 +00:00
Johan Danielsson
89ce8b45b7
Make get_credentials handle cross-realm.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2893 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 02:30:28 +00:00
Johan Danielsson
4203cbc27e
check return value
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2879 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-10 20:14:06 +00:00