Love Hörnquist Åstrand
5065dd4bc7
(decrypt_internal_special): do not not modify the original data
...
test case from Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13421 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 16:36:46 +00:00
Love Hörnquist Åstrand
601b8fcfa3
(process_reply): log into result_string if something goes bad, return
...
0 (even on failure), not the KPASSWD protocol error code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 22:14:47 +00:00
Love Hörnquist Åstrand
fb3cfcca9f
more cc tests, mostly related to mcc behavior
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 21:09:28 +00:00
Love Hörnquist Åstrand
188cabf477
(mcc_get_principal): also check for primary_principal == NULL now that
...
that isn't used as dead flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13418 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 21:06:36 +00:00
Love Hörnquist Åstrand
bd852f759c
don't overload the primary_principal == NULL as dead since that
...
doesn't always work
Based on patch from Jeffrey Hutzelman <jhutz@cmu.edu >, but tweek by me
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13417 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 20:49:34 +00:00
Johan Danielsson
37be50b9f6
(krb5_get_default_realm): let krb5_set_default_realm set an error
...
string for us
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-23 13:49:28 +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
ba2fb75678
prefix pkinit error codes with KRB5_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-20 21:40:42 +00:00
Love Hörnquist Åstrand
e7eaae52ff
handle memory allocate errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 21:24:14 +00:00
Love Hörnquist Åstrand
73447cd88f
(_krb5_xlock): handle that everything was ok, and don't put an error
...
in the error strings then
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 21:22:52 +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
8696c13a7f
(process_pa_data_to_key): spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-19 12:41:19 +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
2e261f0a4b
add HEIM_PKINIT specific errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-13 16:23:40 +00:00
Love Hörnquist Åstrand
0d4320db0b
(change_password): handle that printf("%.*s", 0, (void*)NULL); doesn't
...
work on solaris
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-11 12:30:35 +00:00
Love Hörnquist Åstrand
310701f968
don't use path's in first .Nm, it confuses some locate.updatedb, use
...
FILES section to describe where the file is instead.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13321 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-10 13:28:45 +00:00
Love Hörnquist Åstrand
1987668bf1
add "next iv" test for aes128, check decryption case too
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 21:05:57 +00:00
Love Hörnquist Åstrand
38222b38b2
(_krb5_aes_cts_encrypt): out iv is the iv of the next to last block,
...
fix decryption case too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 21:04:41 +00:00
Love Hörnquist Åstrand
b1c7bcffd1
add "next iv" test for aes128
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 20:48:25 +00:00
Love Hörnquist Åstrand
290b1c07d8
(_krb5_aes_cts_encrypt): out iv is the iv of the next to last block
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 20:47:21 +00:00
Love Hörnquist Åstrand
051ed5b5a1
(krb5_mk_rep): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13306 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:06:10 +00:00
Love Hörnquist Åstrand
b556de6237
(krb5_mk_rep): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:05:02 +00:00
Love Hörnquist Åstrand
a74d87717c
(krb5_get_in_cred): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13304 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:03:42 +00:00
Love Hörnquist Åstrand
5e5a56079a
(krb5_mk_priv): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 17:03:00 +00:00
Love Hörnquist Åstrand
74ee19a354
(make_pa_tgs_req): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:59:37 +00:00
Love Hörnquist Åstrand
79ec557a94
(krb5_build_authenticator): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:58:24 +00:00
Love Hörnquist Åstrand
da1b9cbc7f
(krb5_build_ap_req): abort on internal asn1 encode error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:56:19 +00:00
Love Hörnquist Åstrand
653db66d34
register WRFILE ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:05:42 +00:00
Love Hörnquist Åstrand
b5f0883c6a
add krb5_wrfkt_ops/WRFILE (same as FILE)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13293 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:03:22 +00:00
Love Hörnquist Åstrand
df1bac1a97
add krb5_wrfkt_ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13292 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:00:29 +00:00
Love Hörnquist Åstrand
9c3fc6f67f
(_krb5_xlock): catch EINVAL and assume that it means that the
...
filesystem doesn't support locking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-21 13:20:06 +00:00
Love Hörnquist Åstrand
b18ecb3e09
remove #if 0 out file locking code
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-21 10:55:54 +00:00
Love Hörnquist Åstrand
f66a6f7987
add prototypes, describe krb5_keyblock_zero
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13258 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-08 09:01:33 +00:00
Love Hörnquist Åstrand
dd1875d0a5
(add_addrs): don't add same address multiple times
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13257 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-05 15:17:25 +00:00
Love Hörnquist Åstrand
85575388c3
(krb5_get_forwarded_creds): try to handle errors better for previous commit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13256 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-05 15:00:50 +00:00
Love Hörnquist Åstrand
f342516288
(krb5_get_forwarded_creds): If tickets are address-less, forward
...
address-less tickets.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13255 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-05 14:44:34 +00:00
Love Hörnquist Åstrand
ff5bd23572
rename get_krbtgt to _krb5_get_krbtgt and export it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-05 14:08:04 +00:00
Love Hörnquist Åstrand
deb075eb05
protect error_string with mutex
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 01:25:12 +00:00
Love Hörnquist Åstrand
9241394b39
allocate and destroy mutex in krb5_context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 01:23:40 +00:00
Love Hörnquist Åstrand
4c81cad550
(krb5_context_data): add mutex for error_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 01:21:04 +00:00
Love Hörnquist Åstrand
1d9702acee
try handle ts preauth better, still not good, but at least it work
...
with older heimdal releases that doesn't send back
KRB5KDC_ERR_PREAUTH_REQUIRED when preauth was sent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-17 20:44:37 +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
97c31914c0
add krb5_auth_con_{add,remove}flags
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 22:52:57 +00:00
Love Hörnquist Åstrand
aef8b69dc6
(krb5_get_in_tkt_with_keytab): avoid memory leak that snuck in when
...
krb5_keytab_key_proc was exported, pointed out by Panases Inc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13197 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:52:49 +00:00
Love Hörnquist Åstrand
94fde1ea7a
(_krb5_xlock): fix compile error in last commit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:43:15 +00:00
Love Hörnquist Åstrand
11dce94342
do locking, found to be a problem for Panasas Inc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:09:26 +00:00
Love Hörnquist Åstrand
a561725fdd
internally export x{,un}lock and thus prefix them with _krb5_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:05:42 +00:00