Love Hörnquist Åstrand
eef39a201d
Split out Kerberos 4 help functions/structures so other parts of the
...
source tree can use it (like the KDC)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11570 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 05:22:35 +00:00
Johan Danielsson
4b2a8a83d2
free allocated storage; reported by Howard Chu
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-19 13:30:36 +00:00
Johan Danielsson
d0ec42bfdf
remove trailing comma in enum
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-11-15 14:16:42 +00:00
Johan Danielsson
27cc22110f
more strcspn
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:42:06 +00:00
Johan Danielsson
5ee773037f
(emem_store): limit how much we allocate (from Olaf Kirch)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:36:23 +00:00
Johan Danielsson
cf87a976ce
don't allow trailing backslashes in components
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11511 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:30:53 +00:00
Johan Danielsson
b411502ebe
properly close the open keytabs (from Larry Greenfield)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11490 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 13:36:59 +00:00
Johan Danielsson
77c4778b71
(process_reply): fix reply length check calculation (reported by
...
various people)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11473 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-29 11:48:34 +00:00
Johan Danielsson
242db364ce
(fkt_remove_entry): check return value from start_seq_get (from Wynn
...
Wilkes)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-24 16:43:30 +00:00
Johan Danielsson
89a75e551c
(krb5_set_config_files): return ENXIO instead of ENOENT when
...
"unconfigured"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-19 19:49:52 +00:00
Jacques A. Vidrine
d29f4a9e27
Use strcspn to convert the newline to NUL in fgets results.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11462 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-16 17:32:11 +00:00
Johan Danielsson
d5871dbfc7
remove extra "application"
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-13 14:49:31 +00:00
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