Sam Hartman [Tue, 15 Jan 2002 20:54:30 +0000 (20:54 +0000)]
krb5_princ_realm returns a pointer to krb5_data
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14113
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 15 Jan 2002 02:27:59 +0000 (02:27 +0000)]
Reflect correct values for current code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14112
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 14 Jan 2002 19:06:37 +0000 (19:06 +0000)]
Don't right shift by 32
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14108
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 22:15:21 +0000 (22:15 +0000)]
* hst_realm.c (EAFNOSUPPORT): On Windows, translate to WSAEAFNOSUPPORT
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14104
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 03:58:11 +0000 (03:58 +0000)]
* Makefile.in (t_localaddr): Link against $(LIBS)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14102
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 03:57:17 +0000 (03:57 +0000)]
log msg for getaddrinfo error codes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14101
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 03:56:32 +0000 (03:56 +0000)]
Split out code for getting canonical name of local host, change it to use
getaddrinfo, and make both sites call the new function. Added new error codes
to report getaddrinfo failures that don't translate to standard errno codes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14100
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 03:26:16 +0000 (03:26 +0000)]
update comment
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14099
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 03:25:02 +0000 (03:25 +0000)]
* socket-utils.h (ss2sin6) [__GNUC__]: Define inline function only if IPv6 support is turned on
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14098
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 9 Jan 2002 02:23:35 +0000 (02:23 +0000)]
do database expansion from tcl driver code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14097
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 9 Jan 2002 00:46:52 +0000 (00:46 +0000)]
* shlib.conf: Fix hpux to deal with building shared libs with gcc.
Patch from Doug Engert; fixes krb5-build/1021.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14096
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 9 Jan 2002 00:20:17 +0000 (00:20 +0000)]
* crc.pl: New file; perl script to do generate some test vectors
and CRC tables.
* CRC.pm: New file; perl module to implement CRCs in terms of
polynomial arithmetic (verrrry slooow).
* Poly.pm: New file; perl module to do polynomial arithmetic in
the field of integers mod 2.
* t_crc.c: New file; do some sanity checks (and timing checks,
more useful when building shift-4 as well).
* Makefile.in (check-unix): Add rules for building, running
t_crc.
* crc32.c (mit_crc32_shift4): Add new function, usually not
compiled, for shift-4 implementation of CRC32.
* crc-32.h: Add (conditionalized) prototype for the shift-4
function; remove checksum_entry (it's no longer used).
* crctest.c: Removed.
* crc-test: Removed.
* crc.c: Removed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14095
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 8 Jan 2002 23:51:44 +0000 (23:51 +0000)]
* shlib.conf: For Linux, always add "-lc" at the end of the link command
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14094
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 8 Jan 2002 23:51:09 +0000 (23:51 +0000)]
* libobj.in (config.status): Depend on shlib.conf
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14093
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 8 Jan 2002 23:49:54 +0000 (23:49 +0000)]
fix bug with inconsistent result codes when homedir isn't accessible but / is
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14092
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 8 Jan 2002 20:43:03 +0000 (20:43 +0000)]
KDC support for new PRNG
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14090
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 8 Jan 2002 19:27:00 +0000 (19:27 +0000)]
Get strong random bits at kadmind startup
provide better error message for current round of keytab not found
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14089
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 8 Jan 2002 17:42:31 +0000 (17:42 +0000)]
Assign entropy source identifier
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14088
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 8 Jan 2002 14:38:44 +0000 (14:38 +0000)]
Implement code to get random data from /dev/{random,urandom}. For
init_context use /dev/urandom; for database creation use /dev/random
if it exists.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14087
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 4 Jan 2002 05:06:11 +0000 (05:06 +0000)]
Check test results more carefully.
Fix big-endian-64-bit bug in btree implementation (for sparcv9).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14086
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 14 Dec 2001 20:53:39 +0000 (20:53 +0000)]
* main.c (main, init_realm): Get rid of variables set but never used
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14073
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 14 Dec 2001 20:48:17 +0000 (20:48 +0000)]
* svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Local return
variable declared enum auth_stat instead of int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14072
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 14 Dec 2001 18:45:28 +0000 (18:45 +0000)]
* hmac_md5.c (k5_hmac_md5_hash): Test if malloc returns NULL and
not the argument to malloc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14071
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 11 Dec 2001 17:51:58 +0000 (17:51 +0000)]
* kdc_util.c (subrealm, add_to_transited): Unsigned vs. signed int
fixes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14064
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Mon, 10 Dec 2001 20:46:19 +0000 (20:46 +0000)]
Fix typo in #ifdef KRB5_KRB4_COMPAT. Thanks to rbasch@mit.edu
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14062
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 8 Dec 2001 02:00:19 +0000 (02:00 +0000)]
* ktf_g_ent.c (krb5_ktfile_get_entry): Coerce enctype for now to
restore 1.0.x enctype similarity behavior.
[pullup from 1.2.3]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14060
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 8 Dec 2001 01:58:07 +0000 (01:58 +0000)]
* ftpcmd.y (pathname): Handle returns from ftpglob() better so
that errors get sent via reply(), while causing some match
failures to match to simply return $1, so the higher level can
deal. Previously, some failures would cause synch problems since
NULL would be returned and no reply was sent.
[pullup from 1.2.3]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14059
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 8 Dec 2001 01:57:48 +0000 (01:57 +0000)]
* glob.c (execbrc): Fix some fencepost errors. Don't copy
uninitialized memory past the end of the pattern string. Don't
increment pointer beyond string end.
[pullup from 1.2.3]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14058
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 8 Dec 2001 01:57:17 +0000 (01:57 +0000)]
* update_utmp.c (PTY_GETUTXENT): Fix typo. Thanks to Shawn
Stepper. [fixes krb5-build/1020]
[pullup from 1.2.3]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14057
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 7 Dec 2001 19:24:40 +0000 (19:24 +0000)]
* k5-int.h (krb5int_des_init_state): Change variable name in
prototype away from usage.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14055
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 7 Dec 2001 19:20:17 +0000 (19:20 +0000)]
* clnt_raw, clnt_tcp.c, clnt_udp.c: Use a union structure to
ensure argument alignment.
* pmap_clnt.c, pmap_clnt.h (pmap_set): Change port argument to int
to avoid width warnings.
* rpc_callmsg.c (xdr_callmsg): Cast argument to XDR_INLINE to
avoid signed vs. unsigned warning.
* svc.c: Cast assignment to avoid signed warning.
* xdr.c (xdr_u_short, xdr_u_long): cast pointers to long * in
invocation of XDR_PUTLONG.
* xdr_alloc.c (xdralloc_putbytes): Cast argument to DynInsert to
avoid signed/unsigned warning.
* auth_gssapi.c, svc_auth_gssapi, xdr_rec.c: Cast arguments to
avoid alignment warnings.
* svc_tcp.c, xdr_stdio.c: Cast argument to fread/fwrite/read/write.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14054
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 6 Dec 2001 19:02:05 +0000 (19:02 +0000)]
* configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGS
* kprop.c, kpropd.c: Use GETSOCKNAME_ARG3_TYPE and
GETPEERNAME_ARG3_TYPE.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14051
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 6 Dec 2001 18:27:06 +0000 (18:27 +0000)]
* krcp.c, krlogin.c, krlogind.c, krsh.c, krshd.c, login.c,
setenv.c, v4rcp.c: Signed v.s unsigned int cleanup.
* defines.h: rcmd_stream_{read,write} take size_t as length argument.
* kcmd.c: Use GETSOCKNAME_ARG3_TYPE instead of assuming int. input
and output handler take size_t as length argument instead of
int. Other signed vs. unsigned fixes.
* configure.in: Add KRB5_GETSOCKNAME_ARGS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14050
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:30:25 +0000 (23:30 +0000)]
* string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead
of int for local variable.
(asctouni): Length argument now size_t instead of int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14049
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:30:00 +0000 (23:30 +0000)]
* t_encrypt.c (main): Free memory when finished to test for memory
leaks.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14048
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:16:28 +0000 (23:16 +0000)]
* yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned.
(krb5int_yarrow_init): Zero cipher context on init.
* yhash.h (HASH_Final): Use a variable other than out (shadow in
yarrow.c)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14047
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:14:30 +0000 (23:14 +0000)]
* shs.c, shs.h (shsUpdate): Declare second argument as const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14046
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 22:49:34 +0000 (22:49 +0000)]
Fix typo in last checkin
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14045
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 22:26:52 +0000 (22:26 +0000)]
* rsh.exp: Fix date-grabbing regexp to deal with older versions of
expect/tcl that have limited regexp capabilities.
Pullup from 1-2-3 branch
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14044
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:07:41 +0000 (12:07 +0000)]
* krb524d.c (cleanup_and_exit): Call krb5_klog_close()
* encode.c (encode_bytes, decode_bytes): Make length field
unsigned to clean up unsigned/signed warnings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14043
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:03:18 +0000 (12:03 +0000)]
* t_ser.c (main): Free context on failure exit route
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14042
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:02:10 +0000 (12:02 +0000)]
* sendto_kdc.c (krb5_sendto_kdc): Get rid of unecessary casts
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14041
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:01:17 +0000 (12:01 +0000)]
* t_cksum.c (main): Free memory leak in tests
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14040
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 11:58:54 +0000 (11:58 +0000)]
* test_profile.c (main): Call profile_release() before exiting
in case of error return. (memory leak testing)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14039
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 11:39:39 +0000 (11:39 +0000)]
* gss-client.c, gss-misc.c, gss-server.c: Cast buffer length to
int in length argument for printf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14038
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 4 Dec 2001 01:04:12 +0000 (01:04 +0000)]
Fix documentation bug
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14035
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 28 Nov 2001 23:51:11 +0000 (23:51 +0000)]
* klist.c (flags_string): Display transit-policy-checked, ok-as-delegate, and anonymous ticket flags
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14029
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Wed, 28 Nov 2001 21:20:38 +0000 (21:20 +0000)]
* ms2mit.c: Make sure we get a des-cbc-crc session key instead of
potentially getting whatever happens to be in the cache. Remove
unnecessary static variables. Make function headers use a
consistent format. Rename ShowLastError() to ShowWinError() and
ShowNTError() to ShowLsaError().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14024
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 27 Nov 2001 17:17:55 +0000 (17:17 +0000)]
* api.2/init-v2.exp: For test 101 failure, change port number 1 -
which is used by tcpmux under Irix, to 4 - which is unassigned by
IANA.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14021
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 26 Nov 2001 20:43:10 +0000 (20:43 +0000)]
2001-11-24 Sam Hartman <hartmans@mit.edu>
* fwd_tgt.c (krb5_fwd_tgt_creds): Get a session key for the
forwarded tgt that is the same as the session key for the
auth_context. This is an enctype we know the remote side
supports.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14019
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 26 Nov 2001 20:37:46 +0000 (20:37 +0000)]
Add entropy source identifiers for random seed calls
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14018
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 21 Nov 2001 21:28:14 +0000 (21:28 +0000)]
On fork, perturb the PRNG stream in the child
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14016
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 20 Nov 2001 18:34:03 +0000 (18:34 +0000)]
export krb5_set_default_tgs_enctypes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14014
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 20 Nov 2001 17:03:24 +0000 (17:03 +0000)]
* Makefile.in (check-unix): Use $(srcdir) in file specification
for input to t_prng.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14011
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 20 Nov 2001 00:59:19 +0000 (00:59 +0000)]
Add regression test
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14010
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 20 Nov 2001 00:26:54 +0000 (00:26 +0000)]
Work around hash using host byte order
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14009
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Mon, 19 Nov 2001 23:45:38 +0000 (23:45 +0000)]
Fix up yarrow build on Windows
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14008
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 19 Nov 2001 20:05:35 +0000 (20:05 +0000)]
Fix memory handling bug in t_prng; update expected results as they changedd
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14007
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 19 Nov 2001 19:49:30 +0000 (19:49 +0000)]
Add t_prng.reseedtest
Fix t_prng not to output random data if 0 bytes requested
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14003
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:41:24 +0000 (18:41 +0000)]
* kdb5_verify.c (main): Use krb5_free_unparsed_name() to free up
memory.
(check_princ): Use krb5_free_data_contents() and
krb5_free_principal() to cleanup memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13996
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:39:32 +0000 (18:39 +0000)]
* kdb5_mkdums.c (main): Invoke krb5_free_context when finished.
(add_princ): Use krb5_free_principal to prevent memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13995
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:34:40 +0000 (18:34 +0000)]
* t_kdb.c (do_testing): Invoke krb5_free_principal and
krb5_free_keyblock_contents on master key to prevent minor memory
leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13994
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:32:44 +0000 (18:32 +0000)]
* kadm_server.h: Update prototype for convert_kadm5_to_kadm
* admin_server.c (process_client): Do not assign negative value to
unsigned variable.
(convert_kadm5_to_kadm): Return krb5_int32 instead of krb5_ui_4 to
be compatible with error codes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13993
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:29:45 +0000 (18:29 +0000)]
* gss-server.c (server_establish_context, sign_server): Ensure
that memory blocks are only freed once.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13991
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 19 Nov 2001 18:28:57 +0000 (18:28 +0000)]
Add Yarrow copyright
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13990
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sun, 18 Nov 2001 23:46:32 +0000 (23:46 +0000)]
When initiating GSSAPI context override tgs-enctypes
rather than trying all acceptable enctypes in a loop.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13989
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 16 Nov 2001 19:24:55 +0000 (19:24 +0000)]
* init_ctx.c (DEFAULT_ETYPE_LIST): Ensure space present after
arcfour-hmac-md5 entry for when ANSI strings concatenated the
des-cbc-crc entry was dropped.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13984
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 16 Nov 2001 15:00:48 +0000 (15:00 +0000)]
* Link Yarrow into the build
* Use Yarrow as the PRNG with the compatibility API
* Write most of new PRNG entropy API
* Write but (currently) do not use PRNG test harness
* Fix Yarrow ciphers not to depend on libkrb5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13982
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 21:47:54 +0000 (21:47 +0000)]
Rename to be consistent with krb5 libraries internals
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13975
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 21:11:38 +0000 (21:11 +0000)]
Compiles now
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13974
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 20:12:37 +0000 (20:12 +0000)]
We don't need this
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13973
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 19:59:20 +0000 (19:59 +0000)]
Next pass at making things use krb5 types and functions
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13972
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 8 Nov 2001 22:50:21 +0000 (22:50 +0000)]
First pass cleaning up headers and types
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13971
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 8 Nov 2001 21:54:31 +0000 (21:54 +0000)]
Remove OS-dependent files.
yseed contains some win32 code to seed based on system events etc.
We may want to look at this in the future, but I want to get things working
in a portable manner before I worry about OS-specific things.
ystate.c contains routines to save/load state.
We're not doing that now.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13970
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 8 Nov 2001 21:51:58 +0000 (21:51 +0000)]
Add Yarrow from http://www.zeroknowledge.com/
This is version 0.1 of their Yarrow implementation. I have flattened the distribution,
copying files in the src directory directly into this directory.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13969
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Nov 2001 23:12:16 +0000 (23:12 +0000)]
* state.c (krb5_c_init_state, krb5_c_free_state): Use KRB5_CALLCONV
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13968
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 23:03:46 +0000 (23:03 +0000)]
Update to be consistent with what MS uses
for key usage
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13967
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 22:05:46 +0000 (22:05 +0000)]
2001-11-07 Sam Hartman <hartmans@mit.edu>
* init_ctx.c (DEFAULT_ETYPE_LIST): Add arcfour-hmac-md5; it really
is probably at least as good as DES
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13966
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 22:02:19 +0000 (22:02 +0000)]
2001-11-06 Sam Hartman <hartmans@mit.edu>
* kcmd.c: Define storage for our key usages
(rcmd_stream_init_krb5): Support c_init_state for non-des non-des3 enctypes
(v5_des_write v5_des_read): support variable keyusage
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13965
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 22:01:24 +0000 (22:01 +0000)]
Set output length correctly
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13964
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 19:23:55 +0000 (19:23 +0000)]
Allow rc4 to be used for kadmin
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13961
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 7 Nov 2001 13:48:07 +0000 (13:48 +0000)]
* gss-misc.c (recv_token): Do not attempt to malloc 0 bytes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13960
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 6 Nov 2001 22:20:42 +0000 (22:20 +0000)]
update to use makeindex instead of index
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13959
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 6 Nov 2001 22:19:49 +0000 (22:19 +0000)]
* Makefile (clean): Delete *.ilg
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13956
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 6 Nov 2001 15:25:49 +0000 (15:25 +0000)]
* Add krb5_c_init_state and krb5_c_free_state functions
* Add init_state and free_state to enc_providers as operations that need to be filled in
* Implement generic free_state and des-specific init_state
* Implement arcfour-specific init_state
* Add functions to find enctype state functions and call them
* Add tests for above
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13948
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 6 Nov 2001 13:28:55 +0000 (13:28 +0000)]
Update form of copyright for new files to play nice with Emacs
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13947
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 6 Nov 2001 01:51:54 +0000 (01:51 +0000)]
* configure.in: Add KRB5_GETPEERNAME_ARGS and
KRB5_GETSOCKNAME_ARGS for sample apps.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13946
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 6 Nov 2001 01:50:51 +0000 (01:50 +0000)]
* sserver.c (main): Use GETPEERNAME_ARG3_TYPE instead of int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13945
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 6 Nov 2001 01:50:39 +0000 (01:50 +0000)]
* sclient.c (main): Use GETSOCKNAME_ARG3_TYPE instead of int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13944
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 5 Nov 2001 16:50:07 +0000 (16:50 +0000)]
* alt_prof.c (krb5_aprof_get_boolean): Return krb5_boolean *
instead of int *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13938
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 2 Nov 2001 21:40:35 +0000 (21:40 +0000)]
* rsh.exp: Fix date grabbing code so we don't try to parse the
timezone-less date out of of a syslog message. expect eof in
places to drain pty buffers and avoid deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13932
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 2 Nov 2001 20:03:00 +0000 (20:03 +0000)]
* v4gssftp.exp: Calling send_error from within a dejagnu test is
wrong. So is calling exit. Fix to not do these things. Expect
eof rather than "\r" so as to drain pty buffers and avoid
deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13931
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 2 Nov 2001 19:06:52 +0000 (19:06 +0000)]
* gssftp.exp: Calling send_error from within a dejagnu test is
wrong. So is calling exit. Fix to not do these things. Expect
eof rather than "\r" so as to drain pty buffers and avoid
deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13928
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 1 Nov 2001 21:21:28 +0000 (21:21 +0000)]
2001-11-01 Sam Hartman <hartmans@mit.edu>
* gss-server.c gss-client.c: ONly free buffers returned from
GSSAPI using gss_release_buffer
* gss-client.c (client_establish_context): Trailing null should
not be part of service name
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13926
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 1 Nov 2001 19:56:43 +0000 (19:56 +0000)]
Sufficiently outdated as to be confusing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13925
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 1 Nov 2001 00:09:14 +0000 (00:09 +0000)]
* default.exp (check_k5login, check_klogin): Error out if there is
a nonexistent .k5login or .klogin for root.
(setup_{kadmind_,}srvtab, add_{random,kerberos}_key): Notice
unmatched output to avoid timing out on certain errors. Look for
command echoes. Clear the expect_after list in places to avoid
problems with lingering expect_after clauses against invalid
spawn_ids. expect eof in places to avoid pty deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13924
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 31 Oct 2001 03:19:53 +0000 (03:19 +0000)]
minor update: a note that the contents are out of date
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13912
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 23:14:50 +0000 (23:14 +0000)]
* main.c (main): Do not pass LOG_AUTH facility into openlog() as a
logopt.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13910
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 18:12:26 +0000 (18:12 +0000)]
* k5unseal.c: Fix whitespace in copyright message
* k5seal.c (make_seal_token_v1): Cleanup code for mic
tokens. Essentially revert code to Sam's 10/25 code, with one
correction - allocation of data_ptr - use msglen and not tmsglen.
Additionally, do not rely on malloc(0) being non-NULL.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13907
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 16:29:40 +0000 (16:29 +0000)]
* kdb_cpw.c (cleanup_key_data): Do not free NULL pointer
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13906
dc483132-0cff-0310-8789-
dd5450dbe970