krb5.git
22 years agoReduce build-time per-system dependencies and krb5.h namespace intrusions
Ken Raeburn [Sat, 25 May 2002 02:23:17 +0000 (02:23 +0000)]
Reduce build-time per-system dependencies and krb5.h namespace intrusions

* krb5.hin: Don't include profile.h.  Do include limits.h.
(krb5_int16, krb5_ui_2, krb5_int32, krb5_ui_4): Conditionalize on the values of
INT_MAX, LONG_MAX and SHRT_MAX.
(VALID_INT_BITS, VALID_UINT_BITS, SALT_TYPE_AFS_LENGTH, SALT_TYPE_NO_LENGTH):
Define in terms of INT_MAX and UINT_MAX.
(struct _profile_t): Declare forward.
(krb5_get_profile): Use struct _profile_t instead of profile_t in declaration.
(krb5_ui_1): Delete.
* Makefile.in (krb5.h): Don't put SIZEOF macros into output.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14451 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sane_hostname.c (pty_make_sane_hostname): Always initialize "ai"
Ken Raeburn [Sat, 25 May 2002 01:15:57 +0000 (01:15 +0000)]
* sane_hostname.c (pty_make_sane_hostname): Always initialize "ai"

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14450 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krlogin.c (oob): Loop reading data until we actually reach the URG marker
Ken Raeburn [Thu, 23 May 2002 00:52:00 +0000 (00:52 +0000)]
* krlogin.c (oob): Loop reading data until we actually reach the URG marker

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14448 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUpdate key usage numbers to reflect latest draft from John
Sam Hartman [Mon, 13 May 2002 17:08:51 +0000 (17:08 +0000)]
Update key usage numbers to reflect latest draft from John

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14437 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* dbtest.c: Test for __STDC__ defined, not nonzero, to decide whether to use
Ken Raeburn [Wed, 8 May 2002 19:47:43 +0000 (19:47 +0000)]
* dbtest.c: Test for __STDC__ defined, not nonzero, to decide whether to use
stdarg.h or varargs.h.
(err): Similarly for function signature.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14436 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* prof_get.c (conf_yes, conf_no): Now const.
Ken Raeburn [Wed, 8 May 2002 19:45:12 +0000 (19:45 +0000)]
* prof_get.c (conf_yes, conf_no): Now const.
(profile_parse_boolean): Local variable P points to const.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14435 dc483132-0cff-0310-8789-dd5450dbe970

22 years agofix comment notation
Ken Raeburn [Wed, 8 May 2002 18:47:14 +0000 (18:47 +0000)]
fix comment notation

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14434 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoimplementor.texinfo changes
Ken Raeburn [Wed, 8 May 2002 18:40:19 +0000 (18:40 +0000)]
implementor.texinfo changes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14433 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoFormatting updates. Tru64 5.1 SIOCGIFCONF and getaddrinfo update.
Ken Raeburn [Wed, 8 May 2002 18:38:04 +0000 (18:38 +0000)]
Formatting updates.  Tru64 5.1 SIOCGIFCONF and getaddrinfo update.
Add fake-addrinfo.h description and thread-safety comments.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14432 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoFree the context when it is non-null not when it is null
Sam Hartman [Tue, 30 Apr 2002 18:46:52 +0000 (18:46 +0000)]
Free the context when it is non-null not when it is null

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14428 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* v4gssftp.exp (v4ftp_test): Update checked messages for change of "credentials
Ken Raeburn [Fri, 26 Apr 2002 18:34:22 +0000 (18:34 +0000)]
* v4gssftp.exp (v4ftp_test): Update checked messages for change of "credentials
cache file" to "credentials cache" in error message table.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14425 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR)
Ken Raeburn [Fri, 26 Apr 2002 01:27:26 +0000 (01:27 +0000)]
* fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR)
[GETHOSTBYNAME_R_RETURNS_INT]: Fix backwards test of return value.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14424 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * reconf: Only for autoreconf 2.53, create a private copy of
Ezra Peisach [Thu, 25 Apr 2002 18:54:02 +0000 (18:54 +0000)]
* reconf: Only for autoreconf 2.53, create a private copy of
autoreconf with a patch to a bug that prevented use of three
levels configure.in files. The bug is fixed in the development
version 2.53a.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14423 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * configure.in (AC_CONFIG_SUBDIRS): Always run configure in
Ezra Peisach [Thu, 25 Apr 2002 16:56:15 +0000 (16:56 +0000)]
* configure.in (AC_CONFIG_SUBDIRS): Always run configure in
lib/krb4 and krb524 - but do not build in those directories if
krb4 support disabled. Autoconf 2.53 and up cannot handle
variables in AC_CONFIG_SUBDIRS directive.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14422 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* configure.in: If the return type for gethostbyname_r can't be
Ken Raeburn [Thu, 25 Apr 2002 00:57:31 +0000 (00:57 +0000)]
* configure.in: If the return type for gethostbyname_r can't be
determined, just pretend it's not avaliable.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14421 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.h (getaddrinfo) [_AIX]: Declare and initialize variable "ai"
Ken Raeburn [Thu, 25 Apr 2002 00:43:35 +0000 (00:43 +0000)]
* fake-addrinfo.h (getaddrinfo) [_AIX]: Declare and initialize variable "ai"

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14420 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoHandle KRB5_CALLCONV_WRONG in .def file
Danilo Almeida [Tue, 16 Apr 2002 23:50:01 +0000 (23:50 +0000)]
Handle KRB5_CALLCONV_WRONG in .def file

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14402 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * configure.in: Sepcial-case solaris+gcc to always find curses.h,
Tom Yu [Fri, 12 Apr 2002 22:19:50 +0000 (22:19 +0000)]
* configure.in: Sepcial-case solaris+gcc to always find curses.h,
since it fails to find it otherwise due to some macro redefinition
warnings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14395 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoBuild without k5-int.h
Sam Hartman [Fri, 12 Apr 2002 20:42:41 +0000 (20:42 +0000)]
Build without k5-int.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14394 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * Makefile.in (clean): Remove t_expand and t_expand.o
Ezra Peisach [Fri, 12 Apr 2002 19:38:17 +0000 (19:38 +0000)]
* Makefile.in (clean): Remove t_expand and t_expand.o

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14393 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* recvauth.c (sendauth_version): Now a const array.
Ken Raeburn [Fri, 12 Apr 2002 08:24:54 +0000 (08:24 +0000)]
* recvauth.c (sendauth_version): Now a const array.
* sendauth.c (sendauth_version): Now a const array.
(krb5_sendauth): Cast address when assigning to outbuf data field.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14392 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* conv_princ.c (struct krb_convert): Add new field 'len'.
Ken Raeburn [Fri, 12 Apr 2002 08:21:17 +0000 (08:21 +0000)]
* conv_princ.c (struct krb_convert): Add new field 'len'.
(RC, R, NR): New macros.
(sconv_list): Use them.
(krb5_524_conv_principal): Compare lengths and then use memcmp.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14391 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* prompter.c (krb5_prompter_posix): Initialize 'i' and make it volatile
Ken Raeburn [Fri, 12 Apr 2002 08:14:18 +0000 (08:14 +0000)]
* prompter.c (krb5_prompter_posix): Initialize 'i' and make it volatile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14390 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static "zero" variable const
Ken Raeburn [Fri, 12 Apr 2002 08:08:49 +0000 (08:08 +0000)]
* lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static "zero" variable const

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14389 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* configure.in: Check for gethostbyname_r, gethostbyaddr_r, getservbyname_r and
Ken Raeburn [Fri, 12 Apr 2002 07:56:36 +0000 (07:56 +0000)]
* configure.in: Check for gethostbyname_r, gethostbyaddr_r, getservbyname_r and
getservbyport_r.  Figure out the return type of gethostbyname_r.
* fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR): New macros.
(fai_add_hosts_by_name, fake_getnameinfo, getaddrinfo): Use them.
(fake_getaddrinfo): Use getservbyname_r if available.
(fake_getnameinfo): Never call inet_ntoa; in open-coded form, initialize local
pointer variable after label.  Use getservbyport_r if available.
(gaiptr, faiptr, gniptr): Pointer variables are now const.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14388 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* locate_kdc.c (add_addrinfo_to_list) [TEST]: Print out socket type before
Ken Raeburn [Fri, 12 Apr 2002 05:59:34 +0000 (05:59 +0000)]
* locate_kdc.c (add_addrinfo_to_list) [TEST]: Print out socket type before
returning.
(add_host_to_list): Don't need to initialize err.  Supply getaddrinfo hint to
select datagram addresses only.  Delete AIX bug workaround code.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14387 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoDon't use channel bindings for accept_sec_context
Sam Hartman [Thu, 11 Apr 2002 20:20:24 +0000 (20:20 +0000)]
Don't use channel bindings for accept_sec_context

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14386 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoSuppress warning about unitialized variable; compiler's constant folding
Sam Hartman [Thu, 11 Apr 2002 20:19:58 +0000 (20:19 +0000)]
Suppress warning about unitialized variable; compiler's constant folding
isn't good enough to notice it is always initialized

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14385 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* ftp.c: Include Winsock 2 instead of Winsock.
Danilo Almeida [Thu, 11 Apr 2002 03:32:03 +0000 (03:32 +0000)]
* ftp.c: Include Winsock 2 instead of Winsock.
* ftp_var.h: Include Winsock 2 headers.
* secure.c: Include port-sockets.h on Win32.
* main.c: Include mswsock.h (MS Winsock extensions) so that we get
   some socket options we need to convert sockets to "file
   descriptors" used in posix-like routines.  We now need to pull
   this in explictly now that we are using Winsock 2.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14381 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* klist.c: Do not pull in winsock.h since we already pull in
Danilo Almeida [Thu, 11 Apr 2002 03:21:46 +0000 (03:21 +0000)]
* klist.c: Do not pull in winsock.h since we already pull in
port-sockets.h.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14380 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* port-sockets.h: Use Winsock 2 headers for Win32.
Danilo Almeida [Thu, 11 Apr 2002 03:19:23 +0000 (03:19 +0000)]
* port-sockets.h: Use Winsock 2 headers for Win32.
* fake-addrinfo.h: Define HAVE_GETADDRINFO for Win32.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14379 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krb.h: Do not include winsock.h for Win32, since we already use
Danilo Almeida [Thu, 11 Apr 2002 03:19:07 +0000 (03:19 +0000)]
* krb.h: Do not include winsock.h for Win32, since we already use
port-sockets.h.  This avoids winsock.h vs winsock2.h issues.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14378 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* locate_kdc.c (translate_ai_error), hst_realm.c
Danilo Almeida [Thu, 11 Apr 2002 03:17:22 +0000 (03:17 +0000)]
* locate_kdc.c (translate_ai_error), hst_realm.c
(krb5int_translate_gai_error): Test some EAI_ error definitions
so that we will also build correctly on Win32 (Winsock 2).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14377 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * cc_file.c: Use _WIN32 instead of _WINSOCKAPI_ because
Danilo Almeida [Thu, 11 Apr 2002 03:16:42 +0000 (03:16 +0000)]
* cc_file.c: Use _WIN32 instead of _WINSOCKAPI_ because
_WINSOCKAPI_ depends on the Winsock header used (i.e., Winsock 2
does not define this).  What we are really trying to check for is
Win32.  Include port-sockets.h for Win32.  (NOTE: Why is
NEED_SOCKETS being defined after the inclusion of k5-int.h?  That
is pretty useless...  What we probably should do is more
consitently used NEED_SOCKETS instead of manually putting in
network code.  However, some people would probably have issues
with the build being slower...)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14376 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUse the canonical _WIN32 instead of WIN32 to test for Win32.
Danilo Almeida [Thu, 11 Apr 2002 03:10:12 +0000 (03:10 +0000)]
Use the canonical _WIN32 instead of WIN32 to test for Win32.
Include port-sockets.h on Win32 (now that using WIN32_LEAN_AND_MEAN).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14375 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoNeed port-sockets.h for Win32 (now that using WIN32_LEAN_AND_MEAN)
Danilo Almeida [Thu, 11 Apr 2002 03:07:14 +0000 (03:07 +0000)]
Need port-sockets.h for Win32 (now that using WIN32_LEAN_AND_MEAN)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14374 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoDefine KRB5_PRIVATE=1 so that private definitions are used. Define
Danilo Almeida [Thu, 11 Apr 2002 03:06:39 +0000 (03:06 +0000)]
Define KRB5_PRIVATE=1 so that private definitions are used.  Define
WIN32_LEAN_AND_MEAN so there are no Winsock vs. Winsock 2 header file
issues.  (Winsock 2 is needed for IPv6 support.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14373 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in: Build ms2mit.
Danilo Almeida [Thu, 11 Apr 2002 03:05:30 +0000 (03:05 +0000)]
* Makefile.in: Build ms2mit.
* version.rc: 1.3 (TEST) beta.
* README: Note on building ms2mit.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14372 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* asn1buf.c (asn1buf_remove_octetstring, asn1buf_remove_charstring): Fix bounds
Ken Raeburn [Wed, 10 Apr 2002 00:40:25 +0000 (00:40 +0000)]
* asn1buf.c (asn1buf_remove_octetstring, asn1buf_remove_charstring): Fix bounds
test for correctness in overflow cases.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14370 dc483132-0cff-0310-8789-dd5450dbe970

22 years agocall krb5_c_ versions of enctype/cksumtype checking routines
Ken Raeburn [Sat, 6 Apr 2002 01:47:59 +0000 (01:47 +0000)]
call krb5_c_ versions of enctype/cksumtype checking routines

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14367 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodelete no-op '-k' option
Ken Raeburn [Sat, 6 Apr 2002 00:37:20 +0000 (00:37 +0000)]
delete no-op '-k' option

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14366 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krb5.hin (krb5_c_valid_enctype, krb5_c_valid_cksumtype,
Ken Raeburn [Sat, 6 Apr 2002 00:33:55 +0000 (00:33 +0000)]
* krb5.hin (krb5_c_valid_enctype, krb5_c_valid_cksumtype,
krb5_c_is_coll_proof_cksum, krb5_c_is_keyed_cksum): Declare.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14365 dc483132-0cff-0310-8789-dd5450dbe970

22 years agorename some functions to have krb5_c_ prefix
Ken Raeburn [Sat, 6 Apr 2002 00:33:19 +0000 (00:33 +0000)]
rename some functions to have krb5_c_ prefix

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14364 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sim_client.c: Always include stdlib.h.
Ken Raeburn [Sat, 6 Apr 2002 00:29:27 +0000 (00:29 +0000)]
* sim_client.c: Always include stdlib.h.
(main): Don't call valid_cksumtype.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14363 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sclient.c: Include fake-addrinfo.h. Include stdlib.h unconditionally.
Ken Raeburn [Sat, 6 Apr 2002 00:20:53 +0000 (00:20 +0000)]
* sclient.c: Include fake-addrinfo.h.  Include stdlib.h unconditionally.
(net_read): New function, borrowed from krb5_net_read.
(main): Use krb5_c_valid_cksumtype, net_read, getaddrinfo, getnameinfo.  Try
contacting each address for the host.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14362 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* klist.c (one_addr): Make 0 unsigned (!) in conditional expression in
Ken Raeburn [Fri, 5 Apr 2002 23:46:23 +0000 (23:46 +0000)]
* klist.c (one_addr): Make 0 unsigned (!) in conditional expression in
getnameinfo call to avoid silly compiler warning.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14361 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* aclocal.m4 (TRY_PEER_INT): Strip trailing spaces from defined macros
Ken Raeburn [Fri, 5 Apr 2002 23:37:17 +0000 (23:37 +0000)]
* aclocal.m4 (TRY_PEER_INT): Strip trailing spaces from defined macros

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14360 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* def-check.pl: Better error checking. Handles variable argument
Danilo Almeida [Fri, 5 Apr 2002 23:19:38 +0000 (23:19 +0000)]
* def-check.pl: Better error checking.  Handles variable argument
functions more nicely.  Support for KRB5_CALLCONV_WRONG,
KRB5INT_BEGIN_DECLS, KRB5INT_END_DECLS.  Works with krb5.hin,
krb5.h, and k5-int.h (giving different information for the last
one, of course).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14359 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoPatch from Mark Eichin for bug 635
Sam Hartman [Thu, 4 Apr 2002 22:17:44 +0000 (22:17 +0000)]
Patch from Mark Eichin for bug 635

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14347 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * pre.in: Add support for doing optional stripping of programs
Tom Yu [Wed, 3 Apr 2002 02:16:45 +0000 (02:16 +0000)]
* pre.in: Add support for doing optional stripping of programs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14331 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * Makefile.in (install-strip): New rule to pass "-s" to install
Tom Yu [Wed, 3 Apr 2002 02:16:09 +0000 (02:16 +0000)]
* Makefile.in (install-strip): New rule to pass "-s" to install

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14330 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * krb5.hin: Default to KRB5_DEPRECATED=1, allowing compiler
Tom Yu [Wed, 3 Apr 2002 02:13:34 +0000 (02:13 +0000)]
* krb5.hin: Default to KRB5_DEPRECATED=1, allowing compiler
command line to override.  Hide some struct definitions.  Use
KRB5INT_BEGIN_DECLS and KRB5INT_END_DECLS to deal with C++
function declarations.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14329 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * aclocal.m4 (CONFIG_RULES): Fix to not define KRB5_DEPRECATED; we
Tom Yu [Wed, 3 Apr 2002 02:11:50 +0000 (02:11 +0000)]
* aclocal.m4 (CONFIG_RULES): Fix to not define KRB5_DEPRECATED; we
set it to 1 in krb5.hin now.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14328 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * krb5.hin: Move a whole bunch of stuff under KRB5_DEPRECATED or
Tom Yu [Tue, 2 Apr 2002 00:41:42 +0000 (00:41 +0000)]
* krb5.hin: Move a whole bunch of stuff under KRB5_DEPRECATED or
KRB5_PRIVATE as a first pass for cleaning up the API.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14320 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * aclocal.m4 (CONFIG_RULES): Add -DKRB5_PRIVATE=1 and
Tom Yu [Tue, 2 Apr 2002 00:40:29 +0000 (00:40 +0000)]
* aclocal.m4 (CONFIG_RULES): Add -DKRB5_PRIVATE=1 and
-DKRB5_DEPRECATED=1 to the default CPPFLAGS for now, so that stuff
in the tree actually builds.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14319 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoInclude errno.h
Danilo Almeida [Mon, 1 Apr 2002 21:09:52 +0000 (21:09 +0000)]
Include errno.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14315 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes,
Tom Yu [Fri, 29 Mar 2002 05:12:09 +0000 (05:12 +0000)]
* kerberos.c, kerberos5.c (Data): Reindent to 8 columns. (yes,
this is original BSD style)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14314 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoAdd krb5_init_keyblock
Sam Hartman [Fri, 29 Mar 2002 05:05:27 +0000 (05:05 +0000)]
Add krb5_init_keyblock

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14312 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUpdate copyright
Sam Hartman [Fri, 29 Mar 2002 05:05:04 +0000 (05:05 +0000)]
Update copyright

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14311 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.h (getaddrinfo) [__linux__]: Don't crash if hint is a null pointer
Ken Raeburn [Thu, 28 Mar 2002 21:51:12 +0000 (21:51 +0000)]
* fake-addrinfo.h (getaddrinfo) [__linux__]: Don't crash if hint is a null pointer

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14304 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* k5-int.h: Include errno.h.
Ken Raeburn [Thu, 28 Mar 2002 06:59:40 +0000 (06:59 +0000)]
* k5-int.h: Include errno.h.
* krb5.hin: Don't include errno.h.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14303 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* client.c, server.c: Include errno.h
Ken Raeburn [Thu, 28 Mar 2002 06:45:48 +0000 (06:45 +0000)]
* client.c, server.c: Include errno.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14302 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sim_client.c: Include errno.h
Ken Raeburn [Thu, 28 Mar 2002 06:42:05 +0000 (06:42 +0000)]
* sim_client.c: Include errno.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14301 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* sclient.c: Include errno.h
Ken Raeburn [Thu, 28 Mar 2002 06:40:38 +0000 (06:40 +0000)]
* sclient.c: Include errno.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14300 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* kerberos.c: Include errno.h
Ken Raeburn [Thu, 28 Mar 2002 06:31:49 +0000 (06:31 +0000)]
* kerberos.c: Include errno.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14299 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* aclocal.m4 (TRY_GETSOCK_INT): Strip trailing spaces from defined macros
Ken Raeburn [Thu, 28 Mar 2002 06:00:05 +0000 (06:00 +0000)]
* aclocal.m4 (TRY_GETSOCK_INT): Strip trailing spaces from defined macros

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14298 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krb5.hin: Don't include <sys/types.h> any more.
Ken Raeburn [Thu, 28 Mar 2002 02:16:14 +0000 (02:16 +0000)]
* krb5.hin: Don't include <sys/types.h> any more.
* Makefile.in (krb5.h): Don't put HAVE_STDARG_H or HAVE_SYS_TYPE_H symbols into
output.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14297 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.h [NEED_FAKE_GETADDRINFO]: Include errno.h.
Ken Raeburn [Thu, 28 Mar 2002 02:13:19 +0000 (02:13 +0000)]
* fake-addrinfo.h [NEED_FAKE_GETADDRINFO]: Include errno.h.
(fake_getnameinfo) [__GNUC__ && __mips__]: Use const when
referencing bytes of supplied address.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14296 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUpdated telnet patch
Sam Hartman [Wed, 27 Mar 2002 02:48:43 +0000 (02:48 +0000)]
Updated telnet patch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14295 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoignore autoconf.stmp
Ken Raeburn [Wed, 27 Mar 2002 02:00:05 +0000 (02:00 +0000)]
ignore autoconf.stmp

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14294 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.h (fake_getnameinfo) [__GNUC__ && __mips__]: Don't call
Ken Raeburn [Tue, 26 Mar 2002 22:46:57 +0000 (22:46 +0000)]
* fake-addrinfo.h (fake_getnameinfo) [__GNUC__ && __mips__]: Don't call
inet_ntoa, struct passing doesn't work.  Format the output string locally.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14293 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate dependencies
Ken Raeburn [Tue, 26 Mar 2002 22:38:03 +0000 (22:38 +0000)]
update dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14292 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoChange approach for getaddrinfo support. Now, only fake-addrinfo.h is
Ken Raeburn [Tue, 26 Mar 2002 22:37:04 +0000 (22:37 +0000)]
Change approach for getaddrinfo support.  Now, only fake-addrinfo.h is
included, no magic macros need to be defined, and no special care needs to be
taken to identify a unique object file used in all builds of a library/program.

All defined functions (if any) are static in each object file, and declared
inline under gcc so they can be more easily eliminated.  Simplifies
maintenance, and worst case should add no more than a few KB to libraries and
programs.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14291 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate dependencies
Ken Raeburn [Tue, 26 Mar 2002 21:30:33 +0000 (21:30 +0000)]
update dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14290 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* move-if-changed: New script.
Ken Raeburn [Tue, 26 Mar 2002 21:27:05 +0000 (21:27 +0000)]
* move-if-changed: New script.
* post.in (depend-postrecurse): Use it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14289 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * Makefile.in: Remove dependency on krb524.h and krb524_err.h as
Ezra Peisach [Wed, 20 Mar 2002 15:37:21 +0000 (15:37 +0000)]
* Makefile.in: Remove dependency on krb524.h and krb524_err.h as
they may not be present if compiling --without-krb4.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14288 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * Makefile.in: Remove dependencies on krb524_err.h for login.o. If
Ezra Peisach [Wed, 20 Mar 2002 15:33:20 +0000 (15:33 +0000)]
    * Makefile.in: Remove dependencies on krb524_err.h for login.o. If
        compiling without krb4 support, this file will not be present.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14287 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoFix merge from 1.2.2 branch to mainline
Sam Hartman [Sat, 16 Mar 2002 18:11:29 +0000 (18:11 +0000)]
Fix merge from 1.2.2 branch to mainline

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14286 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoFix client side buffer overflows
Sam Hartman [Sat, 16 Mar 2002 18:08:08 +0000 (18:08 +0000)]
Fix client side buffer overflows

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14285 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoFix walk_realm_tree handling of null realms
Sam Hartman [Thu, 14 Mar 2002 15:16:16 +0000 (15:16 +0000)]
Fix walk_realm_tree handling of null realms

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14273 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* implementor.texinfo: Add chapters on local addresses, hostname address
Ken Raeburn [Thu, 14 Mar 2002 04:02:24 +0000 (04:02 +0000)]
* implementor.texinfo: Add chapters on local addresses, hostname address
lookups, and thread safety.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14272 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* kcmd.c (kcmd_connect): Actually save errno value when preparing error text to
Ken Raeburn [Wed, 13 Mar 2002 21:33:23 +0000 (21:33 +0000)]
* kcmd.c (kcmd_connect): Actually save errno value when preparing error text to
print.  Free address info before returning.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14271 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* kcmd.c (kcmd_connect): Don't call fixup_addrinfo, it's been deleted
Ken Raeburn [Wed, 13 Mar 2002 21:24:09 +0000 (21:24 +0000)]
* kcmd.c (kcmd_connect): Don't call fixup_addrinfo, it's been deleted

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14270 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * configure.in: Do not explicitly add getent.o and setenv.o to
Ezra Peisach [Wed, 13 Mar 2002 16:36:21 +0000 (16:36 +0000)]
* configure.in: Do not explicitly add getent.o and setenv.o to
LIBOBJS. Autoconf 2.53 labels this as an error. Move to
Makefile.in.

* Makefile.in (OBJS): Add getent.o and setenv.o explicity.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14267 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodelete a macro def that should've gone away before last checkin
Ken Raeburn [Tue, 12 Mar 2002 03:56:38 +0000 (03:56 +0000)]
delete a macro def that should've gone away before last checkin

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14263 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoRestructure a little to permit wrapping a system implementation of getaddrinfo
Ken Raeburn [Tue, 12 Mar 2002 03:54:58 +0000 (03:54 +0000)]
Restructure a little to permit wrapping a system implementation of getaddrinfo
and friends in a function that does some fixups on the returned data.  Use this
for Linux and AIX.  Also separate the replacement versions as functions with
different names so that Windows can (eventually) use them from a wrapper
function if a system version cannot be located.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14262 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* lsb_addr_cmp.h (krb4int_address_less): Declare
Ken Raeburn [Tue, 12 Mar 2002 03:10:04 +0000 (03:10 +0000)]
* lsb_addr_cmp.h (krb4int_address_less): Declare

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14261 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoHandle IPv6 sockets that are used to communicate over IPv4, and permit use of
Ken Raeburn [Tue, 12 Mar 2002 03:00:08 +0000 (03:00 +0000)]
Handle IPv6 sockets that are used to communicate over IPv4, and permit use of
non-IPv4 addresses if address checking is turned off.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14260 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate comment
Ken Raeburn [Fri, 8 Mar 2002 23:11:26 +0000 (23:11 +0000)]
update comment

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14258 dc483132-0cff-0310-8789-dd5450dbe970

22 years agorevert accidental checkin of unfinished changes
Ken Raeburn [Fri, 8 Mar 2002 23:08:36 +0000 (23:08 +0000)]
revert accidental checkin of unfinished changes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14257 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago(kcmd_connect): copy out correct remote address to caller
Ken Raeburn [Fri, 8 Mar 2002 23:02:05 +0000 (23:02 +0000)]
(kcmd_connect): copy out correct remote address to caller

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14256 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* kcmd.c (kcmd_connect): Always call getport with the address family from the
Ken Raeburn [Fri, 8 Mar 2002 22:54:34 +0000 (22:54 +0000)]
* kcmd.c (kcmd_connect): Always call getport with the address family from the
current address.  Retry connection to the same remote address if the error
returned was EADDRINUSE; that applies to the local address.
(kcmd, k4cmd): Don't set *fd2p before calling setup_secondary_channel.
(setup_secondary_channel): If fd2p is non-null, initialize the pointed-to value
to -1.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14255 dc483132-0cff-0310-8789-dd5450dbe970

22 years agomove getsockname calls into common code from kcmd/k4cmd
Ken Raeburn [Fri, 8 Mar 2002 22:19:54 +0000 (22:19 +0000)]
move getsockname calls into common code from kcmd/k4cmd

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14254 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUse getaddrinfo. Separate out some AF-independent socket setup code
Ken Raeburn [Fri, 8 Mar 2002 21:50:40 +0000 (21:50 +0000)]
Use getaddrinfo.  Separate out some AF-independent socket setup code

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14253 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* rcp.M: Document -f and -t options as internal use only
Ken Raeburn [Fri, 8 Mar 2002 10:35:04 +0000 (10:35 +0000)]
* rcp.M: Document -f and -t options as internal use only

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14252 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoRevert getaddrinfo changes in krb5-only code from 2-10. Factor out common
Ken Raeburn [Fri, 8 Mar 2002 10:30:02 +0000 (10:30 +0000)]
Revert getaddrinfo changes in krb5-only code from 2-10.  Factor out common
krb4 and krb5 code into separate functions.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14251 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodon't use k5-int.h here
Ken Raeburn [Thu, 7 Mar 2002 23:57:44 +0000 (23:57 +0000)]
don't use k5-int.h here

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14250 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoattribution for log entry
Ken Raeburn [Thu, 7 Mar 2002 09:52:43 +0000 (09:52 +0000)]
attribution for log entry

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14245 dc483132-0cff-0310-8789-dd5450dbe970

22 years agotest suite updates from 1.2.x - mostly testing 8-bit-kvno workarounds
Ken Raeburn [Thu, 7 Mar 2002 03:13:51 +0000 (03:13 +0000)]
test suite updates from 1.2.x - mostly testing 8-bit-kvno workarounds

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14244 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago8-bit-kvno workarounds from 1.2.4
Ken Raeburn [Thu, 7 Mar 2002 01:54:59 +0000 (01:54 +0000)]
8-bit-kvno workarounds from 1.2.4

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14243 dc483132-0cff-0310-8789-dd5450dbe970