Ezra Peisach [Thu, 21 Feb 2002 00:38:38 +0000 (00:38 +0000)]
* default.exp (start_kerberos_daemons): In starting the kadmin
daemon, the last line in the log file might read "Seeding random
number" for a second. If that is the case, wait three seconds and
refetch the last line of the log file to look for the "starting
kadmind message"
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14158
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Feb 2002 05:12:06 +0000 (05:12 +0000)]
* network.c: Include foreachaddr.c.
(printaddr, printifaddr, addr_eq, foreach_localaddr): Deleted.
* Makefile.in ($(OUTPRE)network.$(OBJEXT)): Updated dependencies.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14157
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Feb 2002 05:10:07 +0000 (05:10 +0000)]
* localaddr.c: Include foreachaddr.c.
(printaddr, printifaddr, addr_eq, grow_or_free, get_ifconf, get_lifconf,
get_linux_ipv6_addrs, foreach_localaddr): Deleted.
* Makefile.in (localaddr.o): Update dependencies.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14156
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Feb 2002 05:06:43 +0000 (05:06 +0000)]
* foreachaddr.c: New file, contents taken from code shared between
kdc/network.c and lib/krb5/os/localaddr.c. Split out multiple branches within
foreach_localaddr into separate functions. Fixed a couple minor compiler
warnings on Linux.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14155
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Feb 2002 01:12:36 +0000 (01:12 +0000)]
* run.test: Use "/bin/." instead of "/bin" in find commands in case /bin itself
is a symlink.
(test8): Check exit status of dbtest program.
* dbtest.c (compare): Exit with error indication if comparison of contents
indicates a difference.
(get): Exit with error indication after printing message if key not found.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14154
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Feb 2002 00:40:52 +0000 (00:40 +0000)]
* Makefile.in (LIBMINOR): Bump
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14153
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 20 Feb 2002 00:35:22 +0000 (00:35 +0000)]
* Makefile.in (LIBMINOR): Bump
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14152
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 19 Feb 2002 21:37:31 +0000 (21:37 +0000)]
* default.exp (start_kerberos_daemons): When standalone, delete KDC replay
cache before starting it up.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14148
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 19 Feb 2002 21:34:13 +0000 (21:34 +0000)]
* fake-addrinfo.c (_XOPEN_SOURCE_EXTENDED): Define if not defined, and if not
Mac or Windows, for duration of inclusion of netdb.h. This gets us the h_errno
declaration on HP-UX.
(getnameinfo): Cast gethostbyaddr pointer arg to char *, not sockaddr *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14147
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 19 Feb 2002 21:32:03 +0000 (21:32 +0000)]
update copyright
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14146
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 14 Feb 2002 21:47:56 +0000 (21:47 +0000)]
update hst_realm dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14145
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 14 Feb 2002 21:45:28 +0000 (21:45 +0000)]
update copyright dates
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14144
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 11 Feb 2002 00:15:47 +0000 (00:15 +0000)]
Change krb5 kcmd to use getaddrinfo, and add some hooks for future ipv6
support.
* defines.h: Include fake-addrinfo.h.
(FAI_PREFIX): Define.
(getport): Update.
* kcmd.c: Include fake-addrinfo.c.
(kcmd): Use getaddrinfo instead of gethostbyname, but only get AF_INET
addresses for now.
(k4cmd): Update argument list to getport.
(getport): Accept new argument, pointer to address family to use. If zero, try
inet6 and then inet.
* krshd.c (doit): Update argument list to getport.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14140
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 10 Feb 2002 23:53:55 +0000 (23:53 +0000)]
* fake-addrinfo.h: Always check for FAI_PREFIX, not just when fake getaddrinfo
support is needed.
(fixup_addrinfo): Declare.
* fake-addrinfo.c (fixup_addrinfo): New function, fixes up breakage in AIX and
GNU implementations (so far) of getaddrinfo.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14139
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 10 Feb 2002 07:07:19 +0000 (07:07 +0000)]
get local ipv6 addresses on linux
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14138
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Wed, 23 Jan 2002 15:55:53 +0000 (15:55 +0000)]
prof_init.c, prof_tree.c: Fixed calls to profile_update_file/profile_open_file to handle the possibility that we have lost permission to read one of the configuration files in the file list (say it's in AFS). We should only fail catastrophically if we can't read all of the files in the profile
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14116
dc483132-0cff-0310-8789-
dd5450dbe970
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