Commit Graph

1857 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
e1ae936e65 doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:58 +00:00
Love Hörnquist Åstrand
651c4a0ec6 Add hx509_certs_filter().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:48 +00:00
Love Hörnquist Åstrand
de35928c20 add HX509_CMS_SIGATURE_NO_SIGNER and indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:38 +00:00
Love Hörnquist Åstrand
90a9ed5fd2 Add hx509_cms_create_signed() that allows signing with 0 or more certs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:28 +00:00
Love Hörnquist Åstrand
f0214c8843 use hx509_cms_create_signed to create signed data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:18 +00:00
Love Hörnquist Åstrand
afb2abb65d Add HX509_CMS_VS_ALLOW_ZERO_SIGNER and HX509_CMS_VS_NO_VALIDATE
Doxygen.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:03:47 +00:00
Love Hörnquist Åstrand
7e1b5d3a55 better name for zero signer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:03:37 +00:00
Love Hörnquist Åstrand
2e93ad7a9f add more hx509_cms_verify_signed flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:03:17 +00:00
Love Hörnquist Åstrand
0efc14ab95 fix warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24478 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:49:13 +00:00
Love Hörnquist Åstrand
b2744f137f (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:48:44 +00:00
Love Hörnquist Åstrand
92d16c8a19 use wind to convert strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:48:34 +00:00
Love Hörnquist Åstrand
a10f8dad8e drop libnhx509
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:45:18 +00:00
Love Hörnquist Åstrand
e3f707ea2c add ALGORITHM_BEST_BEFORE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24261 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:45:27 +00:00
Love Hörnquist Åstrand
4b553afa07 Skip the leaf certificate HX509_VERIFY_CTX_F_NO_BEST_BEFORE_CHECK check for now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:19 +00:00
Love Hörnquist Åstrand
3ee9a138f6 add hx509_verify_ctx_f_allow_best_before_signature_algs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:10 +00:00
Love Hörnquist Åstrand
98d48f25d7 use _hx509_signature_best_before
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24252 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:44:00 +00:00
Love Hörnquist Åstrand
8bd4ae305f add _hx509_signature_best_before
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24251 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:43:50 +00:00
Love Hörnquist Åstrand
26abb7e637 option to turn off the KeyUsage check in CMS verify SignedData
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24204 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:49 +00:00
Love Hörnquist Åstrand
be7861f63b implement kc_rsa_private_decrypt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:30 +00:00
Love Hörnquist Åstrand
131b3d34f5 add flag to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:00 +00:00
Love Hörnquist Åstrand
e893e7bd5b Add HX509_CMS_EV_NO_KU_CHECK and HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:31:51 +00:00
Love Hörnquist Åstrand
61d49ed472 add options to skipping KeyUsage check
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24197 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:31:41 +00:00
Love Hörnquist Åstrand
ba69102e6b add flags to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:52 +00:00
Love Hörnquist Åstrand
1cfff7cc93 check for failues, cid#160
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:37 +00:00
Love Hörnquist Åstrand
1db27e217e check for failues for hex_encode, cid#159
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:26 +00:00
Love Hörnquist Åstrand
209dbbb1e0 use calloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:22 +00:00
Love Hörnquist Åstrand
dd23f4a8a9 free name on error, from coverity #115
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:58 +00:00
Love Hörnquist Åstrand
a40d246195 simplify CMS handling, coverity #158
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:40 +00:00
Love Hörnquist Åstrand
ae6f751fc0 support egrep
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:51:49 +00:00
Love Hörnquist Åstrand
747f6e9f77 some failes pass or succeed based on size_t size, lets have it either way for now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24062 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:51:19 +00:00
Love Hörnquist Åstrand
174cae0ba1 better error message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24051 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-23 22:05:46 +00:00
Love Hörnquist Åstrand
b4539ac324 better error checks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-23 22:05:36 +00:00
Love Hörnquist Åstrand
de3c767d3a allow testing on sha1 hash in cert queries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-23 22:05:26 +00:00
Love Hörnquist Åstrand
7fee3c4315 fix sort order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 03:25:45 +00:00
Love Hörnquist Åstrand
3ecc00cd39 provide convenice lib
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 02:59:28 +00:00
Love Hörnquist Åstrand
85f2710a83 check transative properties of name compare function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23873 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-08 16:14:13 +00:00
Love Hörnquist Åstrand
8d59ecffe5 don't set P11_LOGIN_DONE before we're logged in
fixes crash on subsequent logins

From: Guido Günther.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23858 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:15 +00:00
Love Hörnquist Åstrand
f31067f2fc [PATCH] don't try to clean unset P11_SESSION_IN_USE
fixes abort()

From: Guido Günther.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-22 06:32:11 +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
192506f0c2 Use explit result for counters
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:16 +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
ab3d0e36c0 drop never used variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:50 +00:00
Love Hörnquist Åstrand
6ff91f7f31 check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23662 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:36 +00:00
Love Hörnquist Åstrand
980d3d3d1e define HC_DEPRECATED_CRYPTO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23615 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:57:20 +00:00
Love Hörnquist Åstrand
225a6e45af catch error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:01:02 +00:00
Love Hörnquist Åstrand
ba8498ce09 catch error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:47 +00:00
Love Hörnquist Åstrand
8b628c715f catch error from iterate_entries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23504 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:19 +00:00
Love Hörnquist Åstrand
9365904540 Catch hx509_certs_init() to fail.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 09:58:51 +00:00
Love Hörnquist Åstrand
4a57355c29 close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:14:03 +00:00