Love Hörnquist Åstrand
69dda05a9c
(krb5_verify_authenticator_checksum): on protocol failure, avoid leaking memory
...
Coverity, NetBSD CID#1900
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:14:44 +00:00
Love Hörnquist Åstrand
59aa089d03
(krb5_verify_ap_req2): make sure `ticket´ points to NULL in case of
...
error, add error handling, use calloc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 17:56:10 +00:00
Love Hörnquist Åstrand
56538b207f
Update (c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 18:22:51 +00:00
Love Hörnquist Åstrand
755229f6d3
(krb5_verify_ap_re2): check timestamp in authenticator
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 15:55:34 +00:00
Love Hörnquist Åstrand
ca1a379a41
(check_transited): explain the TR-type 0 better and why it matters.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16308 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 14:14:26 +00:00
Love Hörnquist Åstrand
4196a3bb90
(check_transited): Allow empty content of type 0 because that is was
...
Microsoft enerates in their TGT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15994 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-27 05:48:57 +00:00
Love Hörnquist Åstrand
2d1c1063ef
krb5_enctype_is_disabled is the same thing as krb5_enctype_valid, so
...
use the later since its older and the api doesn't really need another
entry point
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-08 20:43:50 +00:00
Luke Howard
8dba6bea66
support for enctype negotiation
...
(client sends EtypeList in Authenticator authz data)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-05 02:34:53 +00:00
Love Hörnquist Åstrand
69b55bfa0b
use private version of principalname
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14423 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-29 18:56:43 +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
Love Hörnquist Åstrand
1d8257ac92
(krb5_verify_ap_req2): clear the whole ticket, not just a pointer size of it
...
From: Luke Howard <lukeh@padl.com >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13822 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-29 07:31:45 +00:00
Love Hörnquist Åstrand
f0e00bfd8d
(krb5_verify_ap_req2): krb5_free_ticket free the ticket now, rewrite
...
error handling to handle that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-09 01:28:01 +00:00
Johan Danielsson
88e4f61f85
(krb5_decrypt_ticket): try to verify transited realms, unless the
...
transited-policy-checked flag is set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-20 16:43:30 +00:00
Love Hörnquist Åstrand
97d37d8057
(krb5_rd_req): always free keyblock since its alway used
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 00:39:21 +00:00
Love Hörnquist Åstrand
29f526b115
(krb5_rd_req): if we have a keyblock in auth context, use that
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 10:43:50 +00:00
Love Hörnquist Åstrand
286019f6cd
(krb5_rd_req): allow caller to pass in a key in the auth_context, they
...
way processes that doesn't use the keytab can still pass in the key of
the service (matches behavior of MIT Kerberos).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:22:57 +00:00
Assar Westerlund
67934559ea
(krb5_rd_req): use krb5_auth_con* functions and remove some comments
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 02:48:18 +00:00
Assar Westerlund
c9804d29c8
(krb5_verify_authenticator_checksum): use renamed
...
krb5_auth_con_getauthenticator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-17 23:13:31 +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
fd1fa8bd77
(decrypt_authenticator): add an encryption `usage'. also try the old
...
(and wrong) usage of KRB5_KU_AP_REQ_AUTH for backwards compatibility
(krb5_verify_ap_req2): new function for specifying the usage different
from the default (KRB5_KU_AP_REQ_AUTH)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:16:28 +00:00
Assar Westerlund
20173f77c5
(krb5_decrypt_ticket): plug some memory leak
...
(krb5_rd_req): try not to return an allocated auth_context on error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-17 21:47:37 +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
Johan Danielsson
ba912b7548
check_transited
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-07 13:31:55 +00:00
Assar Westerlund
209565763c
update to new prototype of krb5_timeofday
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:20:51 +00:00
Assar Westerlund
6e3c101b6c
(get_key_from_keytab): rename parameter to `out_key' to avoid
...
conflicting with label. reported by Sean Doran <smd@ebone.net >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-03 02:13:37 +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
6cc3a89c55
(krb5_decrypt_ticket): add flags
and
...
KRB5_VERIFY_AP_REQ_IGNORE_INVALID for ignoring that the ticket is invalid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6017 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-20 14:18:11 +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
Johan Danielsson
4a82de96b1
Use krb5_decode_EncTicketPart, and krb5_decode_Authenticator.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4368 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-31 16:36:02 +00:00
Johan Danielsson
a99929c553
Use krb5_convert_etype.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4354 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-22 23:32:52 +00:00
Johan Danielsson
259d89264a
changes for modified auth_context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4156 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-07 15:43:18 +00:00
Assar Westerlund
45fd07a5a9
(krb5_rd_req): fixed obvious bug
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4073 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 06:16:53 +00:00
Johan Danielsson
99d169ba18
Use principal from ticket if no server is given.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4046 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-20 01:55:04 +00:00
Johan Danielsson
5cc9270d81
Remove krb5_rd_req_with_keytab.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3926 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 04:16:09 +00:00
Johan Danielsson
fb0f4ca9c3
Make authcontext->keyblock a pointer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3916 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 01:51:35 +00:00
Johan Danielsson
cdcd52185a
Use auth_context->keyblock if ap_options.use_session_key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3909 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 01:37:39 +00:00
Johan Danielsson
21b845a7f4
Move parts of krb5_verify_ap_req into a new function,
...
krb5_decrypt_ticket, so it is easier to decrypt and check a ticket
without having an ap-req.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3673 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-27 23:14:51 +00:00
Johan Danielsson
8eb312128d
fix warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3588 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 16:30:09 +00:00
Assar Westerlund
6283405899
(krb5_rd_req): redone because we don't know the kvno or keytype before
...
receiving the AP-REQ
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3574 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-29 20:50:58 +00:00
Assar Westerlund
6fd5ea4f86
use krb5_timeofday and krb5_us_timeofday
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2927 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 23:35:31 +00:00
Assar Westerlund
c4f7020b3a
free more
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2858 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-09 01:14:35 +00:00
Assar Westerlund
81c4d52fa5
removed ugly cast
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2834 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 22:52:13 +00:00
Assar Westerlund
5ee8d92f1c
revert 1.20
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2626 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-25 14:49:13 +00:00
Assar Westerlund
d12dca0f40
(krb5_verify_ap_req): do abs when verifying the timestamps
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2594 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-24 07:23:00 +00:00
Assar Westerlund
d7928440a3
free more
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2569 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 23:54:37 +00:00
Johan Danielsson
5a32a5c8e7
Add copyright notice.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
Johan Danielsson
a075efc7b6
Rename AP_REQ to krb5_ap_req.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2344 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 01:19:09 +00:00
Assar Westerlund
77833b4151
(krb5_verify_ap_req): record authenticator subkey
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2291 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-14 12:21:52 +00:00
Johan Danielsson
1b28095879
Split rd_req in two functions.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2261 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-14 10:06:54 +00:00
Johan Danielsson
40271ed7d8
Free allocated data.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2222 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-13 00:47:07 +00:00