Love Hörnquist Åstrand
9d452c8bd0
Pass in time_now to unevelope, us verify context time in verify_signed.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:23:47 +00:00
Love Hörnquist Åstrand
b3efcbda59
more documentation
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 04:49:37 +00:00
Love Hörnquist Åstrand
ceb99a8536
Doxygen documentation.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22320 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 03:00:41 +00:00
Love Hörnquist Åstrand
b1a669bf5e
fix syntax error, from David Love.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22292 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-14 05:21:27 +00:00
Love Hörnquist Åstrand
d651f2187d
More documentation
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-11 11:02:11 +00:00
Love Hörnquist Åstrand
5fed824f37
its vs it\'s etc. From Bjorn Sandell
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
ef581cc5de
remove stale comment.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21785 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-01 19:37:03 +00:00
Love Hörnquist Åstrand
a5e5db51bd
Use hx509_crypto_random_iv.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21319 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 19:46:52 +00:00
Love Hörnquist Åstrand
bff0a5c11c
Implement and use HX509_CMS_SIGATURE_ID_NAME.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-24 19:24:20 +00:00
Love Hörnquist Åstrand
f622a16e97
Add hx509_cert_init_data and use everywhere
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 06:39:53 +00:00
Love Hörnquist Åstrand
a93b07021f
(hx509_cms_create_signed_1): Use hx509_peer_info to select the
...
signature algorithm too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-06 20:50:55 +00:00
Love Hörnquist Åstrand
dbb87065cd
When we are not using pkcs7-data, avoid seing signedAttributes since
...
some clients get upset by that (pkcs7 based or just plain broken).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 17:21:58 +00:00
Love Hörnquist Åstrand
97b8a8f765
Use default AlgorithmIdentifier.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 02:30:58 +00:00
Love Hörnquist Åstrand
bb64783393
(hx509_cms_create_signed_1): if no eContentType is given, use pkcs7-data.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 22:53:44 +00:00
Love Hörnquist Åstrand
5f1b3a853b
Add flags to generate detached signatures.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20168 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 22:45:20 +00:00
Love Hörnquist Åstrand
5820ca3c54
switch to sha256 as default digest for signinging
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 23:58:14 +00:00
Love Hörnquist Åstrand
698d712bfa
(hx509_cms_create_signed_1): use hx509_cert_binary
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-14 23:28:58 +00:00
Love Hörnquist Åstrand
f865e18161
move _hx509_set_digest_alg from cms.c to crypto.c since its only used there.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:36:03 +00:00
Love Hörnquist Åstrand
18c21c9cc4
Avoid shadowing.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:28:42 +00:00
Love Hörnquist Åstrand
0e65b27793
Check for internal ASN1 encoder error.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-08 18:45:03 +00:00
Love Hörnquist Åstrand
ef6bf7a0fe
(find_CMSIdentifier): require the certificate we are looking for to be valid.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19243 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 11:30:44 +00:00
Love Hörnquist Åstrand
d58d796709
(hx509_cms_create_signed_1): when building the path, omit the trust
...
anchors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19238 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:34:39 +00:00
Love Hörnquist Åstrand
a3ece41637
Provide time to _hx509_calculate_path so we don't send no longer valid certs to our peer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:47:11 +00:00
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