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
Johan Danielsson
a20fa33afa
(verify_common): the nofail option is the logic inverse of the secure
...
parmeter
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11150 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 11:28:49 +00:00
Johan Danielsson
066ef11056
rename syslog_data to avoid name conflicts (from Mattias Amnefelt)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 09:49:09 +00:00
Johan Danielsson
d69ee8c06b
socklen_t -> krb5_socklen_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 13:51:37 +00:00
Johan Danielsson
4f77dbe6b1
don't bail out if parsing of a file fails, just warn about it
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 13:46:10 +00:00
Johan Danielsson
6ab88b50af
(krb5_get_default_config_files): ignore duplicate files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11121 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 12:13:15 +00:00
Johan Danielsson
189c0279af
turn strings into pointers, so we can assign to them
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 20:52:24 +00:00
Johan Danielsson
ce48668948
(get_addrs_int): initialise res if SCAN_INTERFACES is not set
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 20:50:15 +00:00
Johan Danielsson
c84480bd74
fix various borked stuff in previous commits
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 19:42:18 +00:00
Assar Westerlund
d27b1c7b05
removed unused variable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 19:00:10 +00:00