Taylor R Campbell
a142767598
Fix ctype.h misuse.
...
Excluded: libtomath and libedit files, most of which appear to be
testing or example code not involved in production, and which are
derived from an upstream that should perhaps have patches submitted
upstream instead.
fix https://github.com/heimdal/heimdal/issues/1111
2023-05-26 14:10:11 -05:00
Nicolas Williams
1d9ea9b73c
kadm5: Add better fuzz inputs
2022-12-22 18:14:07 -06:00
Nicolas Williams
662fda9608
kadm5: Add a fuzzer input for test_marshall
...
TODO:
- Add more inputs.
2022-12-22 10:27:23 -06:00
Nicolas Williams
07ce06e7b2
kadm5: Add test_marshall program
...
The lib/kadm5/test_marshall program allows one to construct and check
encodings for various struct types for which we have
{kadm5,krb5}_{ret,store}_<type>() functions.
Currently supported are:
- krb5_keyblock
- krb5_principal
- krb5_times
- krb5_address
- krb5_addresses
- krb5_authdata
- krb5_creds
- krb5_key_data
- krb5_tl_data
- kadm5_principal_ent_rec
With this we'll be able to a) construct test vectors, b) use those to
drive fuzzing with AFL or other fuzzers.
2022-12-21 22:14:03 -06:00
Nicolas Williams
8f71755d2b
kadmind: Fix uninitialized heap pointer use ( #1051 )
2022-12-19 20:23:51 -06:00
Nicolas Williams
be6305b601
kadm5: Fix ENOMEM path leak
2022-01-20 12:41:39 -06:00
Nicolas Williams
655c057769
kadm5: Add missing error checks
2022-01-19 16:33:17 -06:00
Jeffrey Altman
00c590e4ff
fix null pointer dereference errors
...
Change-Id: I82a849afe9f432a1084ad2505ce88b1fe4d3d3af
2019-01-04 01:02:59 -05:00
Nicolas Williams
db72e66eb9
kadm5: Add functions to check for bogus keys
...
Introduce kadm5_all_keys_are_bogus() and kadm5_some_keys_are_bogus()
which will be used in later changes.
Change-Id: I3a07ffe07bee7d6eb17c3d2eae91c107e0bac255
2015-03-14 16:08:34 -04:00
Nicolas Williams
b80b21c8a8
Make kadmin ext work when lacking get-keys priv
...
When we added the get-keys privilege we lost the ability to setup
keytabs with the kadmin ext command. The fix is to note that we got
bogus key data and randkey (as we used to).
2014-03-25 21:45:10 -05:00
Nicolas Williams
45294a93a7
Added a disting get-keys authorization for kadmind.
2011-07-22 16:04:52 -05:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
6f6a384257
[HEIMDAL-646] malloc(0) checks for AIX
2009-10-11 18:02:56 -07:00
Love Hornquist Astrand
e184e053dd
Catch memory allocation failures [CID-61]
2009-07-30 12:56:21 +02:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
8d40c2994b
check return value of alloc functions, from Charles Longeau
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 16:11:25 +00:00
Love Hörnquist Åstrand
cb704efeeb
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand
a39e594514
(_kadm5_unmarshal_params): avoid signed-ness warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-08 11:27:34 +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
Johan Danielsson
55d983ad81
marshalling of config parameters
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7329 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-09 17:55:30 +00:00
Assar Westerlund
a1c6915bb1
(store_principal_ent): encoding princ_expire_time and pw_expiration in
...
correct order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6438 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-07 10:24:08 +00:00
Assar Westerlund
3e405c4fff
(ret_principal_ent): set `n_tl_data'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4470 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-27 04:03:34 +00:00
Assar Westerlund
f9178480b4
add kadm5_{store,ret}_principal_ent_mask.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4282 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-06 03:22:52 +00:00
Johan Danielsson
64b2efbe7e
Kadm5 marshalling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3786 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-05 23:30:31 +00:00