Love Hörnquist Åstrand
1b4b266006
(krb5_ui_method_read_string): use the fill in length
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-02 21:01:33 +00:00
Love Hörnquist Åstrand
a4f747ea8e
Pass prompter data to the prompter function, implement a UI prompter
...
function wrapping the kerberos prompter function so that the the
OpenSSL ENGINE can ask for a password when loading the private key.
From: Douglas E. Engert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15040 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 16:12:18 +00:00
Love Hörnquist Åstrand
ed8f5734cb
use the unexport the oid_to_enctype
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 14:14:49 +00:00
Love Hörnquist Åstrand
6611feed76
Since the decode can't make out the diffrence between PA-PK-AS-REP-19
...
and PA-PK-AS-REQ-Win2k, try harder to verify both cases
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 08:54:45 +00:00
Love Hörnquist Åstrand
e0d75a3766
make generation of pa data into a switch instead of a bitmask
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 08:24:01 +00:00
Love Hörnquist Åstrand
4b695a4a24
handle the -25 generation path
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14632 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-10 05:39:21 +00:00
Love Hörnquist Åstrand
244e0b3971
do error handling and catch programmers errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14631 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-09 23:28:10 +00:00
Love Hörnquist Åstrand
81e92ae5b3
use KRB5_PADATA_PK_AS_REQ_19
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14630 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-09 22:59:39 +00:00
Love Hörnquist Åstrand
19c78d1e03
fold in pk-init-25 asn1 changes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-09 22:39:17 +00:00
Love Hörnquist Åstrand
b68c2887d2
use generated oid's
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-09 15:31:39 +00:00
Love Hörnquist Åstrand
f69e7ee138
use the new generated oid functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14626 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-08 22:57:22 +00:00
Love Hörnquist Åstrand
2b0b4dc044
update to the asn1 structures used in -25's
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14625 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-08 22:17:46 +00:00
Love Hörnquist Åstrand
3e732e53ea
unexport krb5_get_init_creds_opt_free_pkinit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-09 18:52:03 +00:00
Love Hörnquist Åstrand
c56917439e
match new error names
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14315 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-14 15:31:25 +00:00
Love Hörnquist Åstrand
aa710fc27f
free openssl engine
...
deal with RecipientIdentifier -> CMSIdentifier and heim_any -> name change
improve error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-06 22:38:21 +00:00
Love Hörnquist Åstrand
ee9f6e571b
filter out dup openssl engine keys, parse user options first
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-03 17:46:01 +00:00
Love Hörnquist Åstrand
c80a3c8ebc
stop using AlgorithmIdentifierNonOpt, add openssl engine support for
...
private key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-03 17:20:38 +00:00
Love Hörnquist Åstrand
ba0ff6be30
make variable shorter, make error messages from pkinit, make freeing easier
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-07 22:26:40 +00:00
Love Hörnquist Åstrand
91351971f7
add KRB5_LIB_FUNCTION to all exported functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Love Hörnquist Åstrand
37fccbef81
(pk_rd_pa_reply_dh): use krb5_random_to_key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-29 08:21:59 +00:00
Love Hörnquist Åstrand
0d09bd5540
use krb5_oid_to_enctype and remove all oids that are no longer needed
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-26 21:23:42 +00:00
Love Hörnquist Åstrand
fa6167819e
use krb5_crypto_get_params to implement kcrypto RC2 support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-26 19:18:04 +00:00
Love Hörnquist Åstrand
63ac41ecad
use the right oid for pkauthdata
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 15:58:07 +00:00
Love Hörnquist Åstrand
fe0d0505cf
always send both win2k compat version and the ietf draft one, this is
...
possible microsoft since they use wrong/diffrent PA number. Make the
configuration flag boolean configuring if NOT to send the win2k compat
glue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13780 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 15:34:29 +00:00
Love Hörnquist Åstrand
2b36497494
use IV for envelopeddata encryption, patch originally from Luke Howard
...
<lukeh@padl.com >, tweeked by me.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 14:20:07 +00:00
Love Hörnquist Åstrand
227900ca1c
move out the oid check from get_reply_key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 16:09:42 +00:00
Love Hörnquist Åstrand
261d6cef84
uniquify error messages
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13764 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 15:19:01 +00:00
Love Hörnquist Åstrand
ab0c82c636
more w2k compat from Luke Howard <lukeh@padl.com>
...
add RC2 support, clean up error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 15:07:39 +00:00
Love Hörnquist Åstrand
1365676e29
remove more dependency on krb5_config->pkinit_flags
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 13:29:23 +00:00
Love Hörnquist Åstrand
c9aac6c50e
(_krb5_pk_convert_rep): convert microsoft style answer to IETF, From
...
Luke Howard <lukeh@padl.com >
(_krb5_pk_create_sign): ms handles NULL in param, so always send it
(_krb5_pk_mk_padata): look for [realms]REALM = { win2k_pkinit = bool }
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 13:15:01 +00:00
Love Hörnquist Åstrand
76d1e32354
(_krb5_pk_create_sign): always set the digestAlgorithm to sha1 (both
...
for SignerInfo and SignedData, add new function _set_digest_alg to set it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-24 12:26:38 +00:00
Love Hörnquist Åstrand
272e7e5504
(build_auth_pack): use heim_integer to encode DH public key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-19 21:40:57 +00:00
Love Hörnquist Åstrand
69cdbef7a8
merge certificate/private_key to a user_id
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-15 23:45:40 +00:00
Love Hörnquist Åstrand
abc38c3ab4
use KRB5_PADATA_PK_AS_REQ_WIN
...
free X509_STORE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-15 13:52:49 +00:00
Love Hörnquist Åstrand
787d41d896
add missing }
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-22 08:45:01 +00:00
Love Hörnquist Åstrand
c762fbde59
(krb5_get_init_creds_opt_set_pkinit): add prompter argument and use it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-21 18:47:29 +00:00
Love Hörnquist Åstrand
9197bbb0c8
rename ca_dir to pkinit/x509_anchors since its more like that language
...
in RFC3280
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-09 21:06:10 +00:00
Love Hörnquist Åstrand
6da4e2989e
adapt to rename of oid_cmp to heim_oid_cmp
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-22 17:31:53 +00:00
Love Hörnquist Åstrand
9dac88f093
update error codes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-20 21:42:34 +00:00
Love Hörnquist Åstrand
9503937a3d
indent, use krb5_abortx() instead of abort()
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 12:44:33 +00:00
Love Hörnquist Åstrand
82bc224368
adapt to the new format of heim_integer, start working on w2k compat
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13379 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-17 08:46:59 +00:00
Love Hörnquist Åstrand
d85519e16d
s/heim_big_integer/heim_integer/
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13355 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-13 17:08:29 +00:00
Love Hörnquist Åstrand
ad01ed478a
adapt to asn1 bignum code, use HEIM_PKINIT errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-13 16:24:27 +00:00
Love Hörnquist Åstrand
bc7413ea31
(_krb5_pk_create_sign): fill in NULL as parameters, required by CMS
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13206 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-11 08:59:07 +00:00
Love Hörnquist Åstrand
456f102612
tweek to make pkinit work with the fact the asn1_compile can't
...
generate code for context tagless optionals
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13159 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-26 00:46:02 +00:00
Love Hörnquist Åstrand
b3b050fa31
clean up error handling, make enc-type work again
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-25 23:26:58 +00:00
Love Hörnquist Åstrand
9b2795abd8
make PKINIT DH support work
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-25 10:53:20 +00:00
Love Hörnquist Åstrand
aff1525106
remove most compile depencies
...
clean up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-24 06:13:37 +00:00
Love Hörnquist Åstrand
e3c2965c74
fix bugs, improve error reporting
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13140 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-24 04:10:00 +00:00
Love Hörnquist Åstrand
8f1d37e688
clean up, make remove depenency on openssl's api
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-23 23:43:27 +00:00