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
Quanah Gibson-Mount
7c16ce3457
Minor typo/grammar fixes
2017-03-10 15:47:43 -05:00
Jelmer Vernooij
70e43e9808
Fix some typos.
2014-04-25 02:42:17 +02:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -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
72e306c7e3
Push cert down deaper into the stack
2009-08-21 18:34:21 -07:00
Love Hörnquist Åstrand
3d88641010
Use OID variable instead of function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25247 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:55 +00:00
Love Hörnquist Åstrand
f0f5f236dc
Use OID variable instead of function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25246 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:45 +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
0ff6dbc8bb
Add matching on EKU, validate EKUs, add hxtool matching glue, add check. Adapted from pach from Tim Miller of Mitre
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22538 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-27 13:05:47 +00:00
Love Hörnquist Åstrand
b5e7b818b1
make print_func static
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-13 09:42:35 +00:00
Love Hörnquist Åstrand
22f3d27d6f
doxygen.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-26 19:26:28 +00:00
Love Hörnquist Åstrand
60adfe11c6
Print authorityInfoAccess.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21381 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-28 08:29:22 +00:00
Love Hörnquist Åstrand
4196398739
Rename proxyCertInfo oid.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21377 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-28 07:37:24 +00:00
Love Hörnquist Åstrand
9e262359f2
Check that the self-signed cert is really self-signed.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 02:59:33 +00:00
Love Hörnquist Åstrand
6623ac6441
Use selfsigned for CRL DP whine, tell if its a self-signed.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20907 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 02:28:18 +00:00
Love Hörnquist Åstrand
887bb5f354
Whine if its a non CA/proxy and doesn't have CRL DP.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 02:23:45 +00:00
Love Hörnquist Åstrand
852d5a2392
Leak less memory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 23:05:31 +00:00
Love Hörnquist Åstrand
f4600fe0a5
Leak less memory, use functions that does same but more.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 23:03:10 +00:00
Love Hörnquist Åstrand
5e8efa4fd0
print utf8 type SAN's
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-01 03:44:48 +00:00
Love Hörnquist Åstrand
0a123869a2
Printf formating.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 15:41:41 +00:00
Love Hörnquist Åstrand
ee3f87c182
Fix printing of CRL DPnames (I hate IMPLICIT encoded structures).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 14:50:20 +00:00
Love Hörnquist Åstrand
e7b0a46e77
Fix warning.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20700 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 16:53:35 +00:00
Love Hörnquist Åstrand
d90201bfe3
Indent.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20668 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 23:49:51 +00:00
Love Hörnquist Åstrand
592c612ff1
add Netscape cert comment
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 21:47:16 +00:00
Love Hörnquist Åstrand
b0afe13641
Add some US Fed PKI oids.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 18:30:28 +00:00
Love Hörnquist Åstrand
48515e61c5
Add some more \n's.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20183 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-05 09:11:19 +00:00
Love Hörnquist Åstrand
ea7f403c7c
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20159 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 09:55:07 +00:00
Love Hörnquist Åstrand
50009d684a
Use less printf. Use hx509_general_name_unparse.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 09:53:46 +00:00
Love Hörnquist Åstrand
e629fa7c61
add printing of SubjectKeyIdentifier and AuthorityKeyIdentifier
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20153 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 08:46:49 +00:00
Love Hörnquist Åstrand
c135a37d37
Check CRLDistributionPointNames.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 15:34:20 +00:00
Love Hörnquist Åstrand
f978746627
Fix previous test.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:45:29 +00:00
Love Hörnquist Åstrand
6efa69a5d3
Check there is a SAN if subject DN is NULL.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:44:34 +00:00
Love Hörnquist Åstrand
cd5e0fba78
Print id-pkix-on-xmppAddr OtherName.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 08:43:20 +00:00
Love Hörnquist Åstrand
e797c5a42c
BasicConstraints vs criticality bit is complicated and not really
...
possible to evaluate on its own, silly RFC3280.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:11:34 +00:00
Love Hörnquist Åstrand
f4b0e6fcea
fix the version vs extension test
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:02:10 +00:00
Love Hörnquist Åstrand
d8423fa525
Even more validation checks.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:53:45 +00:00
Love Hörnquist Åstrand
5bf1bd2a7d
More validation checks.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:45:56 +00:00
Love Hörnquist Åstrand
d987d9258d
Split OtherName printing code to a oid lookup and print function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 20:37:57 +00:00
Love Hörnquist Åstrand
c693f4cd8e
AltNames: Print all diffrent names of a GeneralName
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 17:20:09 +00:00
Love Hörnquist Åstrand
6621f45c1f
(Time2string): print hour as hour not min
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:34:53 +00:00
Love Hörnquist Åstrand
8bf7f3a2dd
Prettyprint SAN/IAN
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:14:52 +00:00
Love Hörnquist Åstrand
01dad85177
Print more of the SAN's, esp id-pkinit-san.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19266 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:11:57 +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
dc5e51aaf2
add hx509_cert_keyusage_print, simplify oid printing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 20:53:34 +00:00
Love Hörnquist Åstrand
6f2f155e73
(check_altName): Print the othername oid.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16848 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-28 03:48:21 +00:00
Love Hörnquist Åstrand
43470798fb
update (c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-14 10:45:47 +00:00
Love Hörnquist Åstrand
835693b42c
Its cRLReason, not cRLReasons.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16603 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 21:10:41 +00:00