Commit Graph

145 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
7629345563 pass time time now to hx509_cms_unenvelope
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23271 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:24:35 +00:00
Love Hörnquist Åstrand
bb3c231225 Cast krb5_error_code to int to avoid warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-15 15:55:16 +00:00
Love Hörnquist Åstrand
ccd66600f5 Rename the pkinit type enum.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-08 08:17:14 +00:00
Love Hörnquist Åstrand
459b3f0a69 Drop krb5_pk_identity and rename constants to match global header.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-08 08:16:44 +00:00
Love Hörnquist Åstrand
3394928100 Move _krb5_pk_copy_error() within #ifdef (from Björn Schlögl) and
rename to pk_copy_error


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 10:03:31 +00:00
Love Hörnquist Åstrand
0968e71694 Try searchin the key by to use by first looking for for PK-INIT
EKU, then the Microsoft smart card EKU and last, no special EKU at all.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22673 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-10 15:00:05 +00:00
Love Hörnquist Åstrand
dc2db77898 Replace hx509_name_to_der_name with hx509_name_binary.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-13 14:11:46 +00:00
Love Hörnquist Åstrand
e470de122e Adapt to changes in hx509 interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 21:39:14 +00:00
Love Hörnquist Åstrand
188a94b93a fix spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-23 22:19:39 +00:00
Love Hörnquist Åstrand
c092ca9238 Add RFC3526 modp group14 as a default.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-23 22:18:08 +00:00
Love Hörnquist Åstrand
7ce6be4012 drop internal flags that was impossile to set.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 11:52:00 +00:00
Love Hörnquist Åstrand
42c349839d Use hx509_cms_unwrap_ContentInfo.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21321 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 05:21:56 +00:00
Love Hörnquist Åstrand
6ef8b2861b Adapt to hx509_verify_hostname change.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-24 19:26:50 +00:00
Love Hörnquist Åstrand
6a7734667a (_krb5_pk_load_id): fail directoy for first calloc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:52:29 +00:00
Love Hörnquist Åstrand
14537be0f4 (get_reply_key*): don't expose freed memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:49:42 +00:00
Love Hörnquist Åstrand
b1f3eb8118 (pk_rd_pa_reply_enckey): simplify handling of content data (and avoid
leaking memory).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 10:49:08 +00:00
Love Hörnquist Åstrand
347f286c8b Commit workaround for LH (disabled).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-14 01:08:37 +00:00
Love Hörnquist Åstrand
582a9d3c06 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 18:00:11 +00:00
Love Hörnquist Åstrand
9df9f6a9da revert 21003
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:53:10 +00:00
Love Hörnquist Åstrand
12df8538af use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:42:05 +00:00
Love Hörnquist Åstrand
9fe3a53f6d Allow turning off sending trustedCertifiers in the request.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 20:58:07 +00:00
Love Hörnquist Åstrand
d76d52e01d (_krb5_get_init_creds_opt_free_pkinit): remember to free memory too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 13:20:18 +00:00
Love Hörnquist Åstrand
2af2d575a3 (pk_rd_pa_reply_dh): free content-type when done.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 13:13:51 +00:00
Love Hörnquist Åstrand
aa3ae69d42 Set error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-11 11:14:26 +00:00
Love Hörnquist Åstrand
f37c85ba61 pass extra flags for detached signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 22:47:25 +00:00
Love Hörnquist Åstrand
90832c9d52 sprinkle more _krb5_pk_copy_error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 02:48:09 +00:00
Love Hörnquist Åstrand
76a79be26e Copy more hx509 error strings to krb5 error strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19295 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 02:30:20 +00:00
Love Hörnquist Åstrand
247bb1c42b Store what PK-INIT type we used to know reply to expect, this avoids
overwriting the real PK-INIT error from just a failed requeat with a
Windows PK-INIT error (that always failes).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19191 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-29 11:47:29 +00:00
Love Hörnquist Åstrand
997dc9aebb Allow selection of minium bits from the DH parameters.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 04:00:35 +00:00
Love Hörnquist Åstrand
2f4615fcd2 (build_auth_pack): set supportedCMSTypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 13:46:04 +00:00
Love Hörnquist Åstrand
0e4b620131 Pass down hx509_peer_info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 18:09:59 +00:00
Love Hörnquist Åstrand
ddfe47e5e1 Update hx509_cms_create_signed_1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 15:50:48 +00:00
Love Hörnquist Åstrand
03d0a158b8 (_krb5_pk_create_sign): stuff down the users certs in the pool to make
sure a path is returned, without this proxy certificates wont work.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-23 18:13:47 +00:00
Love Hörnquist Åstrand
5b7701514e Make all pkinit options prefixed with pkinit_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19069 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:27:01 +00:00
Love Hörnquist Åstrand
61623b636c Make app pkinit options prefixed with pkinit_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:20:25 +00:00
Love Hörnquist Åstrand
8b1cb25ffc Prefix der primitives with der_.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18455 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 09:53:19 +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
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
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
d60350c3a1 Avoid more shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-01 18:17:58 +00:00
Love Hörnquist Åstrand
4c970b550e Avoid shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 21:22:55 +00:00
Love Hörnquist Åstrand
7785a29dbf Hidden field of hx509 prompter is removed.
Fix a warning.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17554 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-12 10:17:19 +00:00
Love Hörnquist Åstrand
d08f2e3a09 (_krb5_pk_load_id): only use password if its longer then 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 22:56:54 +00:00
Love Hörnquist Åstrand
1e12165c58 (krb5_get_init_creds_opt_set_pkinit): move parsing of the
configuration file to the library so application doesn't need to deal
with it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 10:16:01 +00:00
Love Hörnquist Åstrand
66cc779e91 (_krb5_pk_load_id): pass the hx509_lock to when trying to read the
user certificate.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17526 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 07:03:10 +00:00
Love Hörnquist Åstrand
60736cd1ec (hx_pass_prompter): return 0 on success and 1 on failure. Pointed out
by Douglas E. Engert.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17525 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 06:59:56 +00:00
Love Hörnquist Åstrand
64f9c706ec (_krb5_pk_verify_sign): Use hx509_get_one_cert.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-07 12:32:38 +00:00
Love Hörnquist Åstrand
9f59e70024 Now that hcrypto supports DH, remove check for hx509 null DH.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-06 13:24:54 +00:00
Love Hörnquist Åstrand
b3fc06db32 Catch using hx509 null DH and print a more useful error message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17440 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 07:33:33 +00:00
Love Hörnquist Åstrand
9b824aa05f Deal with that hx509_prompt.reply is no longer a pointer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-03 18:56:27 +00:00