Commit Graph

44 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
66c417d257 (hx509_cms_verify_signed): specify what signature we failed to verify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19183 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 21:50:36 +00:00
Love Hörnquist Åstrand
1d8f59cfa1 sprinkle more error strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 12:00:08 +00:00
Love Hörnquist Åstrand
2cac1cbf59 Remove trailing white space.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19160 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 14:12:01 +00:00
Love Hörnquist Åstrand
7a7081cede Rename hx509_select to hx509_crypto_select.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 10:42:18 +00:00
Love Hörnquist Åstrand
cfb2185a48 Sprinkle more error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 17:53:57 +00:00
Love Hörnquist Åstrand
a8539398d9 Allow selection of a better digest using hx509_peer_info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 15:48:26 +00:00
Love Hörnquist Åstrand
647a299beb Sprinkle error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-25 12:40:13 +00:00
Love Hörnquist Åstrand
94d63f5092 (hx509_cms_create_signed_1): provide a best effort path to the trust
anchors to be stored in the SignedData packet, if find parents until
trust anchor or max length.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-23 18:08:23 +00:00
Love Hörnquist Åstrand
fa2abca3b4 comment to clearify success-case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18853 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 12:11:58 +00:00
Love Hörnquist Åstrand
ae6596c3be Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 20:37:49 +00:00
Love Hörnquist Åstrand
5407ae308c Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18780 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:42:20 +00:00
Love Hörnquist Åstrand
99b5369cf2 Try to not leak memory (again).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:35:30 +00:00
Love Hörnquist Åstrand
3dacad01fd Try harder to free certificate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 18:58:19 +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
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
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
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
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
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
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
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
Love Hörnquist Åstrand
5c7666a679 Sprinkle setting error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17406 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-02 07:37:00 +00:00
Love Hörnquist Åstrand
0e0680efba _hx509_path_append changed signature.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-01 15:17:18 +00:00
Love Hörnquist Åstrand
3d0bd3bbfe changed signature of _hx509_check_key_usage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-01 14:05:35 +00:00
Love Hörnquist Åstrand
0cf7710dea (hx509_cms_create_signed_1): calculate path and add it to the
SignedData structure.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 11:37:17 +00:00
Love Hörnquist Åstrand
a7525d7ee9 remove stray #
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:33:01 +00:00
Love Hörnquist Åstrand
d1e9d70d7c Make hx509_cms_{,un}wrap_ContentInfo usable in asn1 un-aware code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 19:37:13 +00:00
Love Hörnquist Åstrand
893aa61f9d Update prototypes changes for hx509_crypto_[gs]et_params.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 20:59:14 +00:00
Love Hörnquist Åstrand
de38a60813 (hx509_cms_envelope_1): check for internal ASN.1 encoder error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-31 22:04:52 +00:00
Love Hörnquist Åstrand
fbd84cf005 Check for signature error, check consitency of error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-27 21:04:28 +00:00
Love Hörnquist Åstrand
099a14e094 hx509_certs_find is now exposed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16811 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-26 23:49:04 +00:00
Love Hörnquist Åstrand
a8f673b166 Drop partial pkcs12 string2key implementation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16674 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-31 15:43:52 +00:00
Love Hörnquist Åstrand
7dcf3289bb add a hx509_context where we can store configuration
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16476 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 20:33:31 +00:00
Love Hörnquist Åstrand
02d27ea231 Use _hx509_abort.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 08:26:26 +00:00
Love Hörnquist Åstrand
50f29f80b1 _hx509_pbe_decrypt now takes a hx509_lock.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-04 15:16:46 +00:00
Love Hörnquist Åstrand
6f3bfd6a20 Use void * instead of char * for to avoid signedness issues
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16016 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-03 19:57:38 +00:00
Love Hörnquist Åstrand
2524a63c87 (hx509_cms_create_signed_1): pass in a full AlgorithmIdentifier
instead of heim_oid for digest_alg


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 21:02:13 +00:00
Love Hörnquist Åstrand
a2cf1e1758 (hx509_cms_verify_signed): add external store of certificates, use the
right digest algorithm identifier.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 20:29:01 +00:00
Love Hörnquist Åstrand
36d90c324b add checks for KeyUsage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-25 11:44:35 +00:00
Love Hörnquist Åstrand
4789016d20 Add missing break.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 20:48:29 +00:00
Love Hörnquist Åstrand
741d6b5d40 allow matching on SubjectKeyId
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15723 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 20:37:39 +00:00
Love Hörnquist Åstrand
0a70228c08 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 16:59:14 +00:00