Love Hörnquist Åstrand
1b8fc81fde
yutaka test certs
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-15 06:07:55 +00:00
Love Hörnquist Åstrand
8f46285916
Add test for yutaka certs.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18088 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-15 06:00:11 +00:00
Love Hörnquist Åstrand
6168bc80da
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-15 05:59:46 +00:00
Love Hörnquist Åstrand
41e00c0c70
Add a strict rfc3280 verification flag. rfc3280 requires certificates
...
to have KeyUsage.keyCertSign if they are to be used for signing of
certificates, but the step in the verifiation is optional.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-15 05:59:35 +00:00
Love Hörnquist Åstrand
697eae9c9d
Improve printing and error reporting.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-15 05:50:17 +00:00
Love Hörnquist Åstrand
d6ac5d5275
test bleichenbacher from eay
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18084 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 22:04:42 +00:00
Love Hörnquist Åstrand
24ff7295c8
Make common function for all getarg_strings and hx509_certs_append
...
commonly used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 20:08:42 +00:00
Love Hörnquist Åstrand
62d57dc40e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 19:52:00 +00:00
Love Hörnquist Åstrand
34ce1baf38
HX509_CMS_UE_DONT_REQUIRE_KU_ENCIPHERMENT is a negative flag, treat it
...
was such.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18081 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 19:22:53 +00:00
Love Hörnquist Åstrand
7c40efd741
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:43:11 +00:00
Love Hörnquist Åstrand
a688982129
Use the new add_GeneralNames function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18067 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:43:00 +00:00
Love Hörnquist Åstrand
b226d0acf5
Adapt to new signature of hx509_cms_unenvelope.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:38:36 +00:00
Love Hörnquist Åstrand
15a66286ab
Add HX509_CMS_UE_DONT_REQUIRE_KU_ENCIPHERMENT.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:35:53 +00:00
Love Hörnquist Åstrand
9358faef60
Allow passing in encryptedContent and flag.
...
Add new flag HX509_CMS_UE_DONT_REQUIRE_KU_ENCIPHERMENT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18063 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:31:34 +00:00
Love Hörnquist Åstrand
5675de7426
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18060 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:54:12 +00:00
Love Hörnquist Åstrand
dd04abbea7
cast void * to char * when using it for %s formating in printf.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:54:01 +00:00
Love Hörnquist Åstrand
2acf7df729
New function _hx509_Name_to_string.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:52:39 +00:00
Love Hörnquist Åstrand
dcfd1554d2
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:58:26 +00:00
Love Hörnquist Åstrand
39ca3ae4a5
Sprinkle error messages.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:58:17 +00:00
Love Hörnquist Åstrand
3a6a84147b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18051 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:44:31 +00:00
Love Hörnquist Åstrand
dbd04c392e
Sprinkle even more error messages.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:43:48 +00:00
Love Hörnquist Åstrand
bb0a57b254
Sprinkle some more error strings.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 09:22:07 +00:00
Love Hörnquist Åstrand
6e2407cfb9
(find_CMSIdentifier): only free string when we allocated one.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18048 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 09:11:30 +00:00
Love Hörnquist Åstrand
a45b9ccd18
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 09:07:26 +00:00
Love Hörnquist Åstrand
2fc4f25c93
Don't build most of the pkcs11 module if there are no dlopen().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 09:07:15 +00:00
Love Hörnquist Åstrand
ea514adfd7
Comment about the DIR module.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18045 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 08:56:48 +00:00
Love Hörnquist Åstrand
2b00422f5e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 21:50:35 +00:00
Love Hörnquist Åstrand
d7b6342d34
(hx509_cms_unenvelope): try to save the error string from
...
find_CMSIdentifier so we have one more bit of information what went
wrong.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18041 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 21:50:18 +00:00
Love Hörnquist Åstrand
9bf4e18d6d
More pretty printing, make verify_signed return the error string from
...
the library.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 18:48:51 +00:00
Love Hörnquist Åstrand
f8b51d6727
Try returning what certificates failed to parse or be found.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18034 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 18:47:55 +00:00
Love Hörnquist Åstrand
36d0c4e85a
(p11_list_keys): fetch CKA_LABEL and use it to set the friendlyname
...
for the certificate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18033 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 09:26:43 +00:00
Love Hörnquist Åstrand
30a95d7add
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 21:38:57 +00:00
Love Hörnquist Åstrand
f62a5620c6
check that there are no extra bytes in the checksum and that the
...
parameters are NULL or the NULL-type. All to avoid having excess data
that can be used to fake the signature.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 21:38:44 +00:00
Love Hörnquist Åstrand
434b2f2b12
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 20:55:26 +00:00
Love Hörnquist Åstrand
a738dfe90c
print keyusage
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18027 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 20:55:03 +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
0efe7f3455
add _hx509_cert_get_keyusage
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 20:52:35 +00:00
Love Hörnquist Åstrand
cf9a110826
keep one session around for the whole life of the keyset
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 20:51:30 +00:00
Love Hörnquist Åstrand
c6b0e4b61b
tests more selection
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18023 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:58:11 +00:00
Love Hörnquist Åstrand
6f0843cebf
improve pretty printing in print and query
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:48:44 +00:00
Love Hörnquist Åstrand
caa0fe8295
add selection on KU and printing to query
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:35:13 +00:00
Love Hörnquist Åstrand
35287059cf
Add cms test for digitalSignature and keyEncipherment certs.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:14:55 +00:00
Love Hörnquist Åstrand
83b8d2b65d
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18019 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 18:55:10 +00:00
Love Hörnquist Åstrand
a1e502b177
(no): Add serialNumber
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 18:54:55 +00:00
Love Hörnquist Åstrand
81e480b985
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 17:36:06 +00:00
Love Hörnquist Åstrand
470639dcbb
(p11_get_session): return better error messages
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18016 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 17:35:38 +00:00
Love Hörnquist Åstrand
3d4b2dbea9
update to pkcs11 referens files 2.20
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 14:38:42 +00:00
Love Hörnquist Åstrand
776d5a6b2a
Even more pretty printing.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17983 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 09:29:24 +00:00
Love Hörnquist Åstrand
437fa6022b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17982 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 09:25:59 +00:00
Love Hörnquist Åstrand
c2661ea901
add more mechflags
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 09:25:49 +00:00