Johan Danielsson
5f129a8870
get limits.h for UINT_MAX
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11448 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:10:45 +00:00
Johan Danielsson
77de2f4011
use crypto-headers.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:03:49 +00:00
Johan Danielsson
13718918cb
don't use NULL when we mean 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 19:04:55 +00:00
Jacques A. Vidrine
5e6f1d8e82
Use O_EXCL when creating a new keyfile.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-09 14:22:26 +00:00
Jacques A. Vidrine
9849899e7f
Validate some counts that may be received from the network:
...
Check that they are non-negative, and that they are small enough to
avoid integer overflow when used in memory allocation calculations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11411 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-09 14:03:03 +00:00
Johan Danielsson
45cc9bab8d
(krb5_vlog_msg): delay message formating till we know we need it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-05 14:59:14 +00:00
Johan Danielsson
6d3f51c725
close ccache if we opened it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 21:34:43 +00:00
Johan Danielsson
6a8ce7e86f
(init_tgs_req): init ret
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 21:12:46 +00:00
Johan Danielsson
ddc308c36f
use ASN1_MALLOC_ENCODE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 16:26:05 +00:00
Johan Danielsson
9012f55e7c
(init_tgs_req): use in_creds->session.keytype literally instead of
...
trying to convert to a list of enctypes (it should already be an
enctype)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 12:04:19 +00:00
Johan Danielsson
d9a1ec3c10
(krb5_get_forwarded_creds): don't blindly use the local subkey
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11348 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 19:59:48 +00:00
Johan Danielsson
ae784bda45
add function krb5_crypto_getblocksize that extracts the required
...
blocksize from a crypto context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 19:58:15 +00:00
Johan Danielsson
b92b2b6b22
remove ENCTYPE_DES3_CBC_NONE_IVEC
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 17:31:47 +00:00
Johan Danielsson
2ccdee74a3
get rid of DES3_CBC_encrypt_ivec, just use zero ivec in
...
DES3_CBC_encrypt if passed ivec is NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11341 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 17:31:12 +00:00
Jacques A. Vidrine
430a7ebc58
Verify the combined lengths of the KRB_AP_REP and KRB_PRIV in the set
...
password response.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 16:14:34 +00:00
Johan Danielsson
084816d5ec
just get the length of the encoded authenticator instead of trying to
...
grow a buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11336 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 15:17:09 +00:00
Johan Danielsson
c2aad5b6f5
back out 1.144, since it will re-create krb5-protos.h at build-time,
...
which requires perl, which is bad
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11335 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 14:45:13 +00:00
Johan Danielsson
2e1f72ec6b
generate a local subkey if AP_OPTS_USE_SUBKEY is set
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11332 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 17:13:52 +00:00
Johan Danielsson
8b71b2c312
we don't have enough information about whether to generate a local
...
subkey here, so don't try to
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11331 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 17:12:45 +00:00
Johan Danielsson
6ec0900515
new function krb5_auth_con_generatelocalsubkey
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11330 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 17:11:02 +00:00
Johan Danielsson
34a237bf21
only set kdc_sec_offset if looking at an initial ticket
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11329 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 17:10:18 +00:00
Johan Danielsson
efd5e9c1a4
(init_context_from_config_file): simplify initialisation of srv_lookup
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11328 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 17:03:12 +00:00
Johan Danielsson
375526d7de
(send_request): set AP_OPTS_USE_SUBKEY
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 15:34:35 +00:00
Johan Danielsson
6d5b2af358
add AP_OPTS_USE_SUBKEY
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 15:19:15 +00:00
Johan Danielsson
b0caab605a
spelling (from Adrian Mrva)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11321 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 12:42:00 +00:00
Assar Westerlund
237df05e6c
also test krb5_524_conv_principal
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11320 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-31 03:33:07 +00:00
Assar Westerlund
33ab912948
(TESTS): add name-45-test
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11319 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-31 03:12:11 +00:00
Assar Westerlund
1abaea1a35
add testcases for krb5_425_conv_principal
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11318 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-31 03:11:52 +00:00
Assar Westerlund
0bab980d00
fix initializer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-30 03:20:11 +00:00
Assar Westerlund
0690340f53
also test _short functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11315 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-30 02:31:39 +00:00
Assar Westerlund
e8056249b4
add parse-name-test
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11313 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-29 04:02:24 +00:00
Assar Westerlund
fff7350902
add a program for testing parsing and unparsing principal names
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-29 04:00:55 +00:00
Jacques A. Vidrine
969a8f5cf8
Document dns_lookup_srv, dns_lookup_realm, and the special token
...
`dns_locate' in the [domain_realms] section.
Drop documentation for `srv_lookup'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11257 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 15:33:59 +00:00
Johan Danielsson
c638984e5d
add LIBRARY section (partly from NetBSD)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11256 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 15:30:59 +00:00
Johan Danielsson
b59dafe5ca
add some disabled code to bail out if there is no parable config file
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 15:27:24 +00:00
Jacques A. Vidrine
d07685c5a6
Add dns_lookup_kdc, dns_lookup_realm, dns_lookup_realm_labels
...
checks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 15:27:19 +00:00
Jacques A. Vidrine
3b58aa8030
krb4_get_tickets goes in appdefaults (for kinit), not libdefaults
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11251 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 15:17:34 +00:00
Johan Danielsson
61e743ecc8
use full month name, and add LIBRARY section
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11248 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 14:46:20 +00:00
Jacques A. Vidrine
e8a466e5d8
= Add a knob `dns_lookup_realm' to control global use of dns-locate for
...
domain to realm mappings.
= Add a special token (`dns_locate') to control use of dns-locate
on a domain-by-domain basis in the [domain_realms] section.
= Add a knob `dns_lookup_realm_labels' to specify which labels
to use with dns-locate. The default is to use only `_kerberos'.
Set to `dns_lookup_realm_labels = krb5-realm _kerberos' for
compatibility with previous releases.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 13:36:57 +00:00
Jacques A. Vidrine
1d68b59387
Rename the srv_lookup' option to
dns_lookup_kdc'.
...
`srv_lookup' can still be specified for backwards compatibility.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 13:36:47 +00:00
Assar Westerlund
7613548436
(krb5_425_conv_principal_ext): lookup AAAA rrs before A ones when
...
using the resolver to verify a mapping, also use getaddrinfo when
resolver is not available
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-26 13:31:40 +00:00
Assar Westerlund
f5c091c294
make it use getarg so that it can handle --help and --version (and
...
thus make check can pass)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11216 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 03:43:18 +00:00
Johan Danielsson
b47783e83f
we seem to call KRB5KDC_ERR_KEY_EXP KRB5KDC_ERR_KEY_EXPIRED, so define
...
the former to the latter
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-22 10:06:20 +00:00
Assar Westerlund
9d521d4e04
add dependencies from the generated source files to the header files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11190 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 16:58:58 +00:00
Johan Danielsson
1eedc8c8b0
more krb5_ssize_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 12:21:57 +00:00
Johan Danielsson
d62c06839a
ssize_t -> krb5_ssize_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-21 09:08:07 +00:00
Johan Danielsson
879fc6b8bc
more, mostly whitespace, fixes from Thomas Klasusner
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 17:07:29 +00:00
Johan Danielsson
8b18192879
correct documentation for verify_ap_req_nofail
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 14:53:03 +00:00
Johan Danielsson
7973bfd426
hmm, back out previous, since it was correct after all
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 14:48:31 +00:00
Johan Danielsson
a6419d60fa
(fail_verify_is_ok): correct inverted return value
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 11:31:01 +00:00