Commit Graph

9131 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand ee9b01aa50 By using full function calling conversion (*func) we avoid problem
when close(fd) is overridden using a macro.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18079 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 18:12:37 +00:00
Love Hörnquist Åstrand 1eaf2446ed Make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 17:35:33 +00:00
Love Hörnquist Åstrand 44c73244c3 By using full function calling conversion (*func) we avoid problem
when close(fd) is overridden using a macro.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-12 17:32:10 +00:00
Love Hörnquist Åstrand d2e95a2867 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18073 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 13:38:29 +00:00
Love Hörnquist Åstrand 3993e250af Add KRB5SignedPath and friends.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18072 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 13:38:20 +00:00
Love Hörnquist Åstrand 8d6e197003 Add keyusage for KRB5SignedPath.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 13:32:57 +00:00
Love Hörnquist Åstrand c2a3bce503 Add KRB5SignedPath and friends.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18070 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 13:28:59 +00:00
Love Hörnquist Åstrand c9f98b46b1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18069 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 07:09:00 +00:00
Love Hörnquist Åstrand 7c40efd741 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:43:11 +00:00
Love Hörnquist Åstrand a688982129 Use the new add_GeneralNames function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18067 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:43:00 +00:00
Love Hörnquist Åstrand a368903335 Add new sequence generation for GeneralNames.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:40:54 +00:00
Love Hörnquist Åstrand b226d0acf5 Adapt to new signature of hx509_cms_unenvelope.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:38:36 +00:00
Love Hörnquist Åstrand 15a66286ab Add HX509_CMS_UE_DONT_REQUIRE_KU_ENCIPHERMENT.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-11 06:35: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 0fbe98fc9c (pk_verify_host): set errorstrings in a sensable way
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-09 13:39:24 +00:00
Love Hörnquist Åstrand 5675de7426 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18060 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:54:12 +00:00
Love Hörnquist Åstrand dd04abbea7 cast void * to char * when using it for %s formating in printf.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:54:01 +00:00
Love Hörnquist Åstrand 2acf7df729 New function _hx509_Name_to_string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:52:39 +00:00
Love Hörnquist Åstrand d23cf3f57d Prevent a font generation warning, from Jason McIntyre.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 22:01:43 +00:00
Love Hörnquist Åstrand 0e9f9c8b5f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18055 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 12:20:54 +00:00
Love Hörnquist Åstrand 6914282b1d (CMSVersion): rename versions from v0 to CMSVersion_v0, ...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18054 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 12:20:42 +00:00
Love Hörnquist Åstrand dcfd1554d2 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:58:26 +00:00
Love Hörnquist Åstrand 39ca3ae4a5 Sprinkle error messages.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:58:17 +00:00
Love Hörnquist Åstrand 3a6a84147b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18051 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 10:44:31 +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 a45b9ccd18 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 09:07:26 +00:00
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 34b0d0c2ec x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18044 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 08:09:42 +00:00
Love Hörnquist Åstrand a554fa893b Reverse 1.5, not needed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18043 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 08:09:21 +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 746ee7473a (krb5_init_ets): Add the hx errortable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18039 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 19:11:32 +00:00
Love Hörnquist Åstrand b2c273d1fd Include hx509_err.h.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 19:11:02 +00:00
Love Hörnquist Åstrand c360ec2e50 (_krb5_pk_verify_sign): catch the error string from the hx509 lib
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-06 18:53:39 +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 3d82dd78b7 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 21:25:05 +00:00
Love Hörnquist Åstrand b69e61c398 Check for Daniel Bleichenbacher an attack on PKCS #1 v1.5 signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 21:24:48 +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