Love Hörnquist Åstrand
bb7b50eba4
encap/decap now takes a oid
...
if the enctype/keytype is arcfour, return error
add hook for cfx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12640 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 20:06:04 +00:00
Love Hörnquist Åstrand
c8cf8c9880
encap/decap now takes a oid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12639 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 20:02:49 +00:00
Love Hörnquist Åstrand
a339bd774f
include cfx.h if we need it
...
lifetime is a OM_uint32, depend on gssapi interface
add all new encap/decap functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12638 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 20:01:45 +00:00
Love Hörnquist Åstrand
b50861a481
add decap functions that doesn't take the token type
...
also make all decap function take the oid mech that they should use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12637 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 19:57:43 +00:00
Love Hörnquist Åstrand
0fed18d468
add encap functions that doesn't take the token type
...
also make all encap function take the oid mech that they should use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12636 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 19:56:51 +00:00
Love Hörnquist Åstrand
7c53e8d156
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 11:30:04 +00:00
Love Hörnquist Åstrand
575766e5e7
(elem_insert): fix a off by one index counter
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12628 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 11:28:46 +00:00
Love Hörnquist Åstrand
934f0c3d3d
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12625 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 01:27:40 +00:00
Love Hörnquist Åstrand
43ee62bf0b
(gss_inquire_cred): handle cred_handle beeing GSS_C_NO_CREDENTIAL and
...
use the default cred then.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12624 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 01:27:02 +00:00
Love Hörnquist Åstrand
600ed30996
break out extensions and document gsskrb5_register_acceptor_identity
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-19 00:30:13 +00:00
Love Hörnquist Åstrand
b868cd3c45
(print_time): time is returned in seconds from now, not unix time
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 23:02:53 +00:00
Love Hörnquist Åstrand
8eb2b0ceea
(check_compat): avoid leaking principal when finding a match
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 19:01:42 +00:00
Love Hörnquist Åstrand
d84816fed2
sa_size argument to krb5_addr2sockaddr is a krb5_socklen_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12578 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:57:37 +00:00
Love Hörnquist Åstrand
8f776af389
(gss_acquire_cred): 4th argument to gss_test_oid_set_member is a int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:55:49 +00:00
Love Hörnquist Åstrand
79442df848
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:55:04 +00:00
Love Hörnquist Åstrand
32752ea144
(repl_mutual): don't set kerberos error where there was no kerberos error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12496 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:53:43 +00:00
Love Hörnquist Åstrand
59a9e85922
Add destruction/creation prototypes and structure for the thread specific storage.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12495 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:52:32 +00:00
Love Hörnquist Åstrand
ba2d66fbd0
use thread specific storage to set/get the kerberos error message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:51:31 +00:00
Love Hörnquist Åstrand
2e732d2ef1
Provide locking around the creation of the global krb5_context. Add
...
destruction/creation functions for the thread specific storage that
the error string handling is using.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12493 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:50:11 +00:00
Love Hörnquist Åstrand
217cb2649d
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-20 11:05:09 +00:00
Love Hörnquist Åstrand
ca06524a21
add missing prototype and missing .Ft arguments
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-20 11:02:19 +00:00
Love Hörnquist Åstrand
04ed8c312b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 04:10:04 +00:00
Love Hörnquist Åstrand
5b4a741593
reorder code so sequence numbers can can be used
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12371 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 04:08:20 +00:00
Love Hörnquist Åstrand
d4114c6097
remove unused function, indent, add gssapi_msg_order_f that filter gss
...
flags to gss_msg_order flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12369 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 04:05:13 +00:00
Love Hörnquist Åstrand
9c54d3fe2d
add sequence number verifier
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12368 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 04:01:44 +00:00
Love Hörnquist Åstrand
289d0b0f9b
prototypes for gssapi_{encode_om_uint32,decode_om_uint32}
...
add sequence number verifier prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12367 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 04:00:58 +00:00
Love Hörnquist Åstrand
d31ef7cb79
destroy sequence number verifier
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 03:59:28 +00:00
Love Hörnquist Åstrand
532c716e88
remember to free data
...
use sequence number verifier
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12365 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 03:58:43 +00:00
Love Hörnquist Åstrand
090bb1f54b
don't clear output_token twice
...
remember to free data
use sequence number verifier
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12364 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 03:57:49 +00:00
Love Hörnquist Åstrand
25fd1be6bc
export and rename encode_om_uint32/decode_om_uint32 and start to use them
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12363 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 03:49:26 +00:00
Johan Danielsson
52e18010ee
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-09 12:28:55 +00:00
Johan Danielsson
6095e1876b
can't have sequence.c in two different places
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12357 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-09 12:28:40 +00:00
Love Hörnquist Åstrand
e393de2f14
check rollover, print summery
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-06 19:41:16 +00:00
Love Hörnquist Åstrand
dce2ccba07
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12355 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-06 16:13:57 +00:00
Love Hörnquist Åstrand
93d56af0ae
(sub_wrap_size): gss_wrap_size_limit() has req_output_size and
...
max_input_size around the wrong way -- it returns the output token
size for a given input size, rather than the maximum input size for a
given output token size.
From: Luke Howard <lukeh@PADL.COM >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-05 23:09:13 +00:00
Love Hörnquist Åstrand
a250f3a1da
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-05 20:57:06 +00:00
Love Hörnquist Åstrand
8084f0f69c
add prototypes for sequence.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12350 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-05 20:56:38 +00:00
Love Hörnquist Åstrand
c669a661db
(libgssapi_la_SOURCES): add sequence.c
...
(test_sequence): build
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-05 20:41:56 +00:00
Love Hörnquist Åstrand
f24cb76b05
sequence number checks, order and replay
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12348 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-05 20:40:50 +00:00
Love Hörnquist Åstrand
63b7fe118d
(gss_accept_sec_context): make sure time is returned in seconds from
...
now, not in kerberos time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-03 15:25:41 +00:00
Love Hörnquist Åstrand
a704e2f3f4
(gss_aquire_cred): make sure time is returned in seconds from now, not
...
in kerberos time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12346 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-03 15:24:29 +00:00
Love Hörnquist Åstrand
f6870509a7
(init_auth): if the cred is expired before we tries to create a token,
...
fail so the peer doesn't need reject us
(*): make sure time is returned in seconds from now, not in kerberos time
(repl_mutual): remember to unlock the context mutex
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12345 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-03 15:22:58 +00:00
Love Hörnquist Åstrand
a2408d7675
(gss_context_time): remove unused variable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12344 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-03 15:08:00 +00:00
Love Hörnquist Åstrand
ee6c2cbd71
make sure minor_status is always set, pointed out by Luke Howard <lukeh@PADL.COM>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12343 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-03 14:58:51 +00:00
Love Hörnquist Åstrand
6ab45444b7
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12319 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-21 14:52:47 +00:00
Love Hörnquist Åstrand
42f3fc029a
- do some basic locking (no reference counting so contexts can be
...
removed while still used)
- don't export gss_ctx_id_t_desc_struct and gss_cred_id_t_desc_struct
- make sure all lifetime are returned in seconds left until expired,
not in unix epoch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-21 14:52:14 +00:00
Love Hörnquist Åstrand
a626def4cd
document argument lifetime_rec to function gss_inquire_context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-21 14:47:55 +00:00
Love Hörnquist Åstrand
37502b25c3
fix errors found with mdoclint
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-16 22:39:26 +00:00
Love Hörnquist Åstrand
aac29a35a4
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-16 22:24:02 +00:00
Love Hörnquist Åstrand
08b804844a
test gss_add_cred more then once
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12307 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-16 22:23:16 +00:00