Commit Graph

960 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand e5b1642018 remove files created by tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:37:15 +00:00
Love Hörnquist Åstrand 91a0892b93 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:36:29 +00:00
Love Hörnquist Åstrand 82a45c7036 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:55:09 +00:00
Love Hörnquist Åstrand 396d442179 make printinfo char * argument const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:38:23 +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 9efb0df9f1 remove no longer used stuff, move set_digest_alg here from cms.c since
its only used here.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19836 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:35:25 +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 7405b522a1 add data/key2.der
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19826 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 02:49:44 +00:00
Love Hörnquist Åstrand acb8c4e906 add data/test-nopw.p12 to EXTRA_DIST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 00:20:44 +00:00
Love Hörnquist Åstrand ab01c4b0b4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19822 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:15:46 +00:00
Love Hörnquist Åstrand e797c5a42c BasicConstraints vs criticality bit is complicated and not really
possible to evaluate on its own, silly RFC3280.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:11:34 +00:00
Love Hörnquist Åstrand 72a7e4b1cb Make basicConstraints critical if this is a CA.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:07:07 +00:00
Love Hörnquist Åstrand f4b0e6fcea fix the version vs extension test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:02:10 +00:00
Love Hörnquist Åstrand d8423fa525 Even more validation checks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:53:45 +00:00
Love Hörnquist Åstrand 5bf1bd2a7d More validation checks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:45:56 +00:00
Love Hörnquist Åstrand 5b9b07461e (hx509_name_cmp): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:44:25 +00:00
Love Hörnquist Åstrand 0b44e8aede x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 19:44:52 +00:00
Love Hörnquist Åstrand a905f0338c (collect_private_key): Missing CKA_MODULUS is ok too (XXX why should
these be fetched given they are not used).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 19:43:35 +00:00
Love Hörnquist Åstrand 312f87ccaf x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 11:47:01 +00:00
Love Hörnquist Åstrand 6e070754c2 rename all files to PEM files, since that is what they are.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 11:46:46 +00:00
Love Hörnquist Åstrand 6b967f571f copy out the key with the self signed CA cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 11:45:54 +00:00
Love Hörnquist Åstrand 80977a02f6 Factor out private key operation out of the signing, operations, support import, export, and generation of private keys. Add support for writing PEM and PKCS12 files with private keys in them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 10:52:13 +00:00
Love Hörnquist Åstrand de625c0116 regen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 09:31:45 +00:00
Love Hörnquist Åstrand d009417320 Generate a no password pkcs12 file.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19772 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 09:31:15 +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 c7da6b6c61 Drop most of the pkcs11 files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19731 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:57:54 +00:00
Love Hörnquist Åstrand 986dc89efb x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:43:27 +00:00
Love Hörnquist Åstrand dfcfc51c66 add hx509_ca_tbs_set_serialnumber
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:40:46 +00:00
Love Hörnquist Åstrand 00a6e317eb test reissueing ca certificate (xxx time validAfter).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:37:14 +00:00
Love Hörnquist Åstrand 8c9a5ca83a Allow setting serialNumber (needed for reissuing certificates)
Change --key argument to --out-key.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:36:08 +00:00
Love Hörnquist Åstrand 22133f82f9 (issue-certificate): Allow setting serialNumber (needed for reissuing
certificates), Change --key argument to --out-key.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:35:39 +00:00
Love Hörnquist Åstrand 3928ceb728 Headerfile <pkcs11.h> is now freestanding, remove pkcs11u.h.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 15:32:05 +00:00
Love Hörnquist Åstrand 9a686ce1d1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 14:56:29 +00:00
Love Hörnquist Åstrand ec05142c07 Replace with Marcus Brinkmann of g10 Code GmbH pkcs11 headerfile that is compatible with GPL (file taken from scute)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19719 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 14:52:44 +00:00
Love Hörnquist Åstrand 3572e7735e Test to generate key and use them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19706 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:55:05 +00:00
Love Hörnquist Åstrand fffd555b71 handle other keys the pkcs10 requested keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:53:46 +00:00
Love Hörnquist Åstrand d0c2319998 add generate key commands
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:52:37 +00:00
Love Hörnquist Åstrand 3abdc16e2a (_hx509_request_to_pkcs10): PKCS10 needs to have a subject
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19702 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:20:11 +00:00
Love Hörnquist Åstrand 2ce57212dc Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:32:08 +00:00
Love Hörnquist Åstrand 33ba9fdf6d (hx509_ca_tbs_set_proxy): allow negative pathLenConstraint to signal no limit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:31:07 +00:00
Love Hörnquist Åstrand 64565477d5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 02:02:21 +00:00
Love Hörnquist Åstrand 2c45be2461 Try all formats on the binary file before giving up, this way we can
handle binary rsa keys too.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 02:01:41 +00:00
Love Hörnquist Åstrand a6aeb8b42c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 02:00:50 +00:00
Love Hörnquist Åstrand 25ad1864fd another key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 01:56:37 +00:00
Love Hörnquist Åstrand 4395508a07 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:18:35 +00:00
Love Hörnquist Åstrand 98c7ce6ffc (hxtool_LDADD): Add libasn1.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:17:53 +00:00
Love Hörnquist Åstrand c0ecd4ce02 (pcert_verify): Fix format string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:16:00 +00:00
Love Hörnquist Åstrand a10d6c1a04 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19611 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:37:31 +00:00
Love Hörnquist Åstrand 7a0bda61c8 Allow setting path length
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19610 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:37:10 +00:00
Love Hörnquist Åstrand ab8e83ff53 regen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:34:20 +00:00