Commit Graph

17235 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand 6f0843cebf improve pretty printing in print and query
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:48:44 +00:00
Love Hörnquist Åstrand caa0fe8295 add selection on KU and printing to query
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:35:13 +00:00
Love Hörnquist Åstrand 35287059cf Add cms test for digitalSignature and keyEncipherment certs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 19:14:55 +00:00
Love Hörnquist Åstrand 83b8d2b65d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18019 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 18:55:10 +00:00
Love Hörnquist Åstrand a1e502b177 (no): Add serialNumber
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 18:54:55 +00:00
Love Hörnquist Åstrand 81e480b985 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 17:36:06 +00:00
Love Hörnquist Åstrand 470639dcbb (p11_get_session): return better error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18016 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 17:35:38 +00:00
Love Hörnquist Åstrand a7609bc7a8 Add TESTSeqOf for testing sequence generation code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18015 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:17:06 +00:00
Love Hörnquist Åstrand 83a1f5bc00 Add sequence tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18014 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:15:53 +00:00
Love Hörnquist Åstrand e67cafcc42 Add TESTSeqOf for testing sequence generation code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18013 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:00:44 +00:00
Love Hörnquist Åstrand 22937a1975 fix warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18012 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:00:14 +00:00
Love Hörnquist Åstrand acd214041b make generated data work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18011 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 13:55:38 +00:00
Love Hörnquist Åstrand 5840d62d5f enctype is part of the krb5 module now, use that instead of locally defining it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18010 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:31:59 +00:00
Love Hörnquist Åstrand c88e9b4633 asn1_compile += gen_seq.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18009 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:30:48 +00:00
Love Hörnquist Åstrand 3c380109e4 add new prototypes, remove unused ones.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18008 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:29:18 +00:00
Love Hörnquist Åstrand 9f8a9ce2dd Generate sequence function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18007 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:28:56 +00:00
Love Hörnquist Åstrand bdd32566a1 add --sequence
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18006 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:27:29 +00:00
Love Hörnquist Åstrand 413862a22b Add generated add_ and remove_ for "SEQUENCE OF TType". I'm tried of
writing realloc(foo->data, sizeof(foo->data[0]) + (foo->len + 1));
Only generated for those type that is enabled by the command flag --sequence.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:23:54 +00:00
Love Hörnquist Åstrand 6c09bab1d6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 09:12:38 +00:00
Love Hörnquist Åstrand 9a8d6fc2f5 unbreak from previous commit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 09:10:23 +00:00
Love Hörnquist Åstrand 6cf5d8a42e reapply patch that went away in last commit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18002 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 09:08:39 +00:00
Love Hörnquist Åstrand 871c2d8d55 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18001 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 08:07:32 +00:00
Love Hörnquist Åstrand bd56a65692 Add size_t formater (z modifer).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18000 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 08:03:36 +00:00
Love Hörnquist Åstrand d6f4835198 add tests for size_t printf formater
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17999 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 08:01:04 +00:00
Love Hörnquist Åstrand 3d4b2dbea9 update to pkcs11 referens files 2.20
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 14:38:42 +00:00
Love Hörnquist Åstrand 062e1d7d5e (krb5_get_init_creds_opt_set_default_flags): fix argument to
krb5_get_init_creds_opt_set_addressless.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 14:28:54 +00:00
Love Hörnquist Åstrand 2857fa0acb x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 13:46:57 +00:00
Love Hörnquist Åstrand 88182a75ce (init_cred_loop): try to catch the error when we actually have an
error to catch.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17995 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 13:46:45 +00:00
Love Hörnquist Åstrand 5057bc0432 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 12:52:28 +00:00
Love Hörnquist Åstrand 9d9e47cb42 (kerberos5_forward): use KDCOptions2int on flags before passing them
to krb5_get_forwarded_creds.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17991 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 12:37:02 +00:00
Love Hörnquist Åstrand 795e95e225 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 11:07:57 +00:00
Love Hörnquist Åstrand fe562592c6 Remove debug printfs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17989 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 11:04:35 +00:00
Love Hörnquist Åstrand c3b24d8d8e Remove debug printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17988 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 11:04:00 +00:00
Love Hörnquist Åstrand ea574c73c5 Document krb5_get_init_creds_opt_set_addressless.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 11:00:11 +00:00
Love Hörnquist Åstrand 3ef140c394 Use new function krb5_get_init_creds_opt_set_addressless.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 10:57:48 +00:00
Love Hörnquist Åstrand 03b6a76a85 use new addressless, convert pa-pac option to use the same tri-state
option as the new addressless option.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17985 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 10:57:02 +00:00
Love Hörnquist Åstrand 4b009281f6 (krb5_get_init_creds_opt_set_addressless): used to control the
address-lessness of the initial tickets instead of passing in the
empty set of address into krb5_get_init_creds_opt_set_addresses.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17984 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 10:55:46 +00:00
Love Hörnquist Åstrand 776d5a6b2a Even more pretty printing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17983 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 09:29:24 +00:00
Love Hörnquist Åstrand 437fa6022b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17982 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 09:25:59 +00:00
Love Hörnquist Åstrand c2661ea901 add more mechflags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 09:25:49 +00:00
Love Hörnquist Åstrand cbfc9eaf48 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17980 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:41:19 +00:00