Love Hörnquist Åstrand
3221f51f1c
document flags
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24962 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:57 +00:00
Love Hörnquist Åstrand
15d0edc29a
allow weak flags for cms
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:24:28 +00:00
Love Hörnquist Åstrand
ff5dab4f4a
remove rcsid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:28:18 +00:00
Love Hörnquist Åstrand
0d03799468
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24667 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:18:16 +00:00
Love Hörnquist Åstrand
1228f20e92
spelling and doxygen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:06:22 +00:00
Love Hörnquist Åstrand
08e864fbe9
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:06:12 +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
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
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
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
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
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
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