Commit Graph

860 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
cbfc9eaf48 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17980 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:41:19 +00:00
Love Hörnquist Åstrand
35a79e736b (no): add OU and sort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17979 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:41:09 +00:00
Love Hörnquist Åstrand
54f8ec658e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17978 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:32:29 +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
Love Hörnquist Åstrand
0195569201 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:30:16 +00:00
Love Hörnquist Åstrand
dd02f9c6a5 (p11_printinfo): print proper plural s
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:30:08 +00:00
Love Hörnquist Åstrand
efd8f3e585 (p11_printinfo): print mechs in diffrent order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:26:37 +00:00
Love Hörnquist Åstrand
874b53a2a0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:23:51 +00:00
Love Hörnquist Åstrand
a16e48e582 save the mechs supported when initing the token, print them in printinfo.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:23:40 +00:00
Love Hörnquist Åstrand
fd39e36e9c Include <parse_units.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:17:52 +00:00
Love Hörnquist Åstrand
a69f589adc pass context to _hx509_create_signature
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:25:22 +00:00
Love Hörnquist Åstrand
5b65222edf (hx509_certs_info): print information about the keyset.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17969 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:24:33 +00:00
Love Hörnquist Åstrand
3be4835b50 (pcert_print) print keystore info when --info flag is given.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17968 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:24:04 +00:00
Love Hörnquist Åstrand
1fa2a5c541 Add hxtool print --info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17967 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:23:15 +00:00
Love Hörnquist Åstrand
b72e8735d3 Test hxtool print --info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:22:58 +00:00
Love Hörnquist Åstrand
e678f6b2a5 (hx509_keyset_ops): add printinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:21:23 +00:00
Love Hörnquist Åstrand
9537609087 Start to hang the private key operations of the private key,
pass hx509_context to create_checksum.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:20:34 +00:00
Love Hörnquist Åstrand
be597a30dc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17592 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-29 09:25:02 +00:00
Love Hörnquist Åstrand
a99e6303d5 Iterate over all slots, not just the first/selected one.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-29 09:24:47 +00:00
Love Hörnquist Åstrand
7f6b59890e prototype for _hx509_cert_release_func
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-27 10:59:50 +00:00
Love Hörnquist Åstrand
046997bc17 Add release function for certifiates so backend knowns when its no
longer used.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-27 10:59:13 +00:00
Love Hörnquist Åstrand
4abe3b3bce Add reference counting on certifiates, push out CK_SESSION_HANDLE from slot.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-27 10:58:07 +00:00
Love Hörnquist Åstrand
8b2a7cf875 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-27 08:57:05 +00:00
Love Hörnquist Åstrand
2cd38a0e1a sprinkle more hx509_clear_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17586 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-27 08:55:00 +00:00