Jeffrey Altman
1dd38cc3de
lib/hx509: declare and apply HX509_LIB_xxx macros
...
libhx509 is not built according to the same export and calling conventions
on Windows as the other libraries. This change declares and applies
HX509_LIB_FUNCTION, HX509_LIB_NORETURN_FUNCTION, HX509_LIB_CALL and
HX509_LIB_VARIABLE to lib/hx509.
As a result of this change the calling convention for exported functions
will be __stdcall instead of __cdecl.
Change-Id: Ibc3f05e8088030ef7d13798f1d9c9b190bc57797
2019-01-02 10:23:39 -06:00
Nicolas Williams
52a562a3a4
Misc fixes (coverity)
2016-11-18 22:21:45 -06:00
Nicolas Williams
704a8a1d37
Don't use %zu
...
Eventually we'll need to make sure that a) libroken's stdint.h defines
the max integer types, b) the libroken *printf()s can handle all the
standard length and conversion specifiers.
2013-10-04 18:58:31 -04:00
Love Hornquist Astrand
dba64ce7f5
Increment array when comparing, from Harald Barth
2013-09-30 21:15:35 -07:00
Love Hornquist Astrand
bcbd477a20
support parsing PEM CRL files and printing revoke contexts
2013-04-27 12:42:12 -07:00
Love Hornquist Astrand
029de6cfa4
pass back an heim_error from hx509_cert_init
2012-10-07 06:33:13 -07:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
b1909b2daa
Fixes from NetBSD via Thomas Klausner and Roland C. Dowdeswell
2011-05-04 21:31:10 -07:00
Love Hornquist Astrand
f5f9014c90
Warning fixes from Christos Zoulas
...
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Love Hornquist Astrand
6ed36cd0f2
use hx509_certs_iter_f, malloc bug
2009-11-22 13:53:30 -08:00
Love Hornquist Astrand
9f587ef0c2
Allocate some memory for OCSP responces
2009-10-11 16:26:26 -07:00
Love Hornquist Astrand
72e306c7e3
Push cert down deaper into the stack
2009-08-21 18:34:21 -07:00
Love Hörnquist Åstrand
9957a09bba
Use OID variable instead of function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:03 +00:00
Love Hörnquist Åstrand
ff5dab4f4a
remove rcsid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:28:18 +00: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
cf6451436b
check return value
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:04 +00:00
Love Hörnquist Åstrand
b1f885befe
use rk_undumpdata, spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23413 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:34:53 +00:00
Love Hörnquist Åstrand
b0bb2e4cda
make refcount slightly more sane.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:49:20 +00:00
Love Hörnquist Åstrand
8b9c6c4121
Use ldap-prep (with libwind) to compare names
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-11 20:46:21 +00:00
Love Hörnquist Åstrand
d651f2187d
More documentation
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-11 11:02:11 +00:00
Love Hörnquist Åstrand
3d4ced794a
handle refcount on NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-09 20:49:31 +00:00
Love Hörnquist Åstrand
4dcc33a770
(_hx509_revoke_ref): new function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22214 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 07:35:17 +00:00
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
d6efe046f4
make compile.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-08 10:35:00 +00:00
Love Hörnquist Åstrand
cb9107c345
(verify_crl): set error strings.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-08 10:32:50 +00:00
Love Hörnquist Åstrand
321ab99443
(verify_crl): handle with the signer is the CRLsigner (shortjcut).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-08 10:26:22 +00:00
Love Hörnquist Åstrand
90b68a672a
Update to use CERT_REVOKED error, shortcut out of OCSP checking when OCSP reply is a revocation reply.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21800 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 10:12:09 +00:00
Love Hörnquist Åstrand
a52c9be0b2
provide slightly helpful text for unknown CRL extensions.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21798 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 00:19:51 +00:00
Love Hörnquist Åstrand
7c0c048abe
Search for the right issuer when looking for the issuer of the CRL signer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 22:19:06 +00:00
Love Hörnquist Åstrand
6027754e75
Handle CRL signing certificate better, try to not revalidate invalid
...
CRLs over and over.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 21:59:42 +00:00
Love Hörnquist Åstrand
df3a19d174
Avoid stomping on NULL.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21153 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:55:46 +00:00
Love Hörnquist Åstrand
b243898000
Avoid reusing i.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:55:06 +00:00
Love Hörnquist Åstrand
72e100cd08
(hx509_crl_*): fix sizeof() mistakes to fix memory corruption.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 21:22:51 +00:00
Love Hörnquist Åstrand
c08a7ed62f
Add lifetime to crls.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20850 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 18:00:29 +00:00
Love Hörnquist Åstrand
04a99a3e5c
Add revoking certs.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20848 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 15:31:07 +00:00
Love Hörnquist Åstrand
d44e3c226f
Fix hx509_set_error_string calls, add hx509_crl_add_revoked_certs(),
...
implement hx509_crl_{alloc,free}.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 13:46:41 +00:00
Love Hörnquist Åstrand
4f52c4766a
(hx509_ocsp_verify): explain what its useful for and provide sane error message.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 03:18:12 +00:00
Love Hörnquist Åstrand
0d73993576
Support to generate an empty CRL.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20796 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 03:27:58 +00:00
Love Hörnquist Åstrand
ee8f651792
Indent.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 01:29:52 +00:00
Love Hörnquist Åstrand
5820ca3c54
switch to sha256 as default digest for signinging
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 23:58:14 +00:00
Love Hörnquist Åstrand
91a0892b93
constify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:36:29 +00:00
Love Hörnquist Åstrand
086e7f3847
use new OCSPSigning.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 17:09:06 +00:00
Love Hörnquist Åstrand
2c0f78e9c0
Handle that _hx509_verify_signature takes a context.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-25 23:53:05 +00:00
Love Hörnquist Åstrand
dcb53a0099
Sprinkle error strings.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-07 17:19:17 +00:00
Love Hörnquist Åstrand
de70ab808f
Return less EINVAL.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18869 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:36:20 +00:00
Love Hörnquist Åstrand
e9d03bde61
Try to not leak memory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 21:00:05 +00:00
Love Hörnquist Åstrand
4045ae9f70
Try to not leak memory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 20:47:13 +00:00
Love Hörnquist Åstrand
96204e40a8
prefix der primitives with der_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 09:42:43 +00:00
Love Hörnquist Åstrand
649f25934c
pass context to _hx509_create_signature
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17977 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:32:19 +00:00