Love Hörnquist Åstrand
5fed824f37
its vs it\'s etc. From Bjorn Sandell
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
9ff76dfc2e
(krb5_store_creds_tag): use session.keytype to determine if to send
...
the session-key, for the second place in the function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 14:28:19 +00:00
Love Hörnquist Åstrand
24fb3ec44b
(krb5_store_creds_tag): use session.keytype to determine if to send
...
the session-key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20498 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-21 21:44:44 +00:00
Love Hörnquist Åstrand
782482710f
(krb5_ret_principal): Fix a bug in the malloc failure part, noticed by
...
Arnaud Lacombe in NetBSD coverity scan.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19394 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-17 22:49:37 +00:00
Love Hörnquist Åstrand
2d2f459f74
Add krb5_{ret,store}_stringnl functions, stores/retrieves a \n
...
terminated string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-08-18 08:39:13 +00:00
Love Hörnquist Åstrand
809f1eef77
Rewrite the krb5_ret_u as proposed by Johan.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 07:15:18 +00:00
Johan Danielsson
9823db8f2a
change some casts from unsigned to signed types
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 11:46:45 +00:00
Johan Danielsson
a0be47c4ec
(krb5_store_uint16): change parameter to match function name
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 11:45:00 +00:00
Johan Danielsson
c9a10c7d6a
replace u_intN_t with uintN_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 11:42:50 +00:00
Love Hörnquist Åstrand
1d230f8bae
(krb5_ret_uint32): fix typecast
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 09:16:51 +00:00
Love Hörnquist Åstrand
3da792b3fa
Add ret and store function for the unsigned fixed size integer types.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 09:16:08 +00:00
Love Hörnquist Åstrand
294a6cc6e0
(krb5_store_principal): make it take a krb5_const_principal, indent
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17422 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-03 18:58:04 +00:00
Love Hörnquist Åstrand
4466bd867f
(krb5_ret_principal): fix memory leak
...
Coverity, NetBSD CID#1695
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:23:20 +00:00
Love Hörnquist Åstrand
4a78962ece
unconst argument to krb5_store (XXX this should be fixed, krb5_store
...
doesn't need to modify its argument)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15473 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 04:36:33 +00:00
Love Hörnquist Åstrand
c31ebc73a1
If we are allocating 0 entires, avoid failing if ALLOC returns NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15331 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-01 10:40:05 +00:00
Luke Howard
c276c9537e
add krb5_store_creds_tag, krb5_ret_creds_tag
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14535 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-02 07:32:59 +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
Johan Danielsson
8791dd6c6e
(krb5_store_creds): set is_skey flag if length of second ticket is > 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 14:54:44 +00:00
Johan Danielsson
9125cb5647
Fix the cache flags bitorder issue with a storage flag instead of a
...
separate function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13767 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 21:17:02 +00:00
Love Hörnquist Åstrand
a73db09513
add _krb5_store_creds_heimdal_0_7 and
...
_krb5_store_creds_heimdal_pre_0_7 that store the creds in just that format
make krb5_store_creds default to mit format
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 17:34:59 +00:00
Love Hörnquist Åstrand
9107f84073
(krb5_ret_creds): Runtime detect the what is the higher bits of the
...
bitfield
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 17:13:23 +00:00
Love Hörnquist Åstrand
4ccc9ed53b
(krb5_store_creds): add disabled code that store the ticket flags in
...
reverse order
(bitswap32): new function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-08 19:27:42 +00:00
Love Hörnquist Åstrand
ac134c6bf0
(krb5_ret_creds): if the higher ticket flags are set, its a mit cache,
...
reverse the bits, bug pointed out by Sergio Gelato <Sergio.Gelato@astro.su.se >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-08 18:49:12 +00:00
Love Hörnquist Åstrand
e7eaae52ff
handle memory allocate errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 21:24:14 +00:00
Johan Danielsson
1eedc8c8b0
more krb5_ssize_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 12:21:57 +00:00
Johan Danielsson
d62c06839a
ssize_t -> krb5_ssize_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 09:08:07 +00:00
Johan Danielsson
ce19f448ae
make the krb5_storage opaque, and add function wrappers for
...
store/fetch/seek, and also make the eof-code configurable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 14:00:44 +00:00
Johan Danielsson
c0a2bc200b
add more byteorder storage flags
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 13:01:43 +00:00
Assar Westerlund
4709124744
(krb5_store_stringz): const-ize parameter
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-11 00:46:09 +00:00
Assar Westerlund
bbdf3d4912
(krb5_store_creds): check to see that the stores are succesful.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-24 14:46:01 +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
b6869bc38c
lots of changes from size_t to ssize_t
...
(krb5_ret_stringz): check return value from realloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6553 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-26 00:49:56 +00:00
Johan Danielsson
3906485184
add flags to change how various fields are stored, used for old cache
...
version support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-24 16:30:46 +00:00
Assar Westerlund
f25d29ec48
(krb5_storage_to_data, krb5_ret_data): use krb5_data_alloc and be
...
careful with checking allocation and sizes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6008 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-19 16:38:45 +00:00
Johan Danielsson
200aeaacb9
(krb5_storage_set_host_byteorder): add
...
(krb5_store_int32,krb5_ret_int32,krb5_store_int16,krb5_ret_int16):
check host_byteorder flag
(krb5_store_creds): add
(krb5_ret_creds): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5959 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-15 15:42:10 +00:00
Johan Danielsson
2e3525882a
k_{put,get}_int -> _krb5_{put,get}_int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5801 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 19:23:33 +00:00
Assar Westerlund
11a41ce259
(krb5_store_stringz): braces fix
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5567 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-17 02:04:27 +00:00
Johan Danielsson
3bee9c665a
Make cred caches version 4 compatible.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4728 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 06:07:05 +00:00
Johan Danielsson
e51386b2bc
Fix for new authdata.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4330 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-21 00:46:00 +00:00
Johan Danielsson
38e0d042cd
fix
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4125 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 03:11:25 +00:00
Johan Danielsson
6c9f0cf6e7
Add k_{put,get}_int.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4099 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-04 18:16:18 +00:00
Johan Danielsson
b483ecb1e7
fix const-warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3888 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-10 21:48:29 +00:00
Johan Danielsson
ca5794b555
constify store_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3850 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 03:36:58 +00:00
Assar Westerlund
c145f0f8e4
const and char cleanup
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3699 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:30:15 +00:00
Johan Danielsson
58d7757ffc
Store keytype twice, as MIT does.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3597 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 21:05:50 +00:00
Johan Danielsson
4003718332
Changed ALLOC macro.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2440 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-18 22:31:49 +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
884b9012ab
Remove non ASN.1 principal code.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2354 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 01:37:19 +00:00
Assar Westerlund
d0a2a83b44
got rid of some pointer-type warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2290 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-14 12:19:57 +00:00