krb5.git
24 years agomore fcusack changes - rest of first set
Ken Raeburn [Mon, 7 Feb 2000 00:26:40 +0000 (00:26 +0000)]
more fcusack changes - rest of first set

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

24 years agoFrank Cusack changes, set 1, diffs 1-3 of 4
Ken Raeburn [Mon, 7 Feb 2000 00:18:02 +0000 (00:18 +0000)]
Frank Cusack changes, set 1, diffs 1-3 of 4

Rename "sam_passcode" field to "sam_sad".  Add data to predicted-sam-response
structure, in part to (prepare to) help with replay detection.
Fix some memory allocation problems.

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

24 years ago * standalone.exp: Use $KLIST -5 and $KDESTROY -5 to deal with
Tom Yu [Sun, 6 Feb 2000 23:04:52 +0000 (23:04 +0000)]
* standalone.exp: Use $KLIST -5 and $KDESTROY -5 to deal with
changed behavior in these programs.  Wait for eof in some cases to
avoid hanging.

* rsh.exp: Wait for eof to prevent hanging.

* gssapi.exp: Use $KINIT -5 to deal with new kinit behavior.

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

24 years ago * default.exp: Use $KINIT -5 to deal with modified kinit
Tom Yu [Sun, 6 Feb 2000 23:02:43 +0000 (23:02 +0000)]
* default.exp: Use $KINIT -5 to deal with modified kinit
behavior.

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

24 years ago * login.c (main): Reorder some control flow to avoid security hole
Tom Yu [Sun, 6 Feb 2000 21:57:32 +0000 (21:57 +0000)]
* login.c (main): Reorder some control flow to avoid security hole
if KRB4_GET_TICKETS is not defined.

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

24 years ago* kinit.c: Only free stuff if it's not NULL. (Note: The krb5_free_*
Danilo Almeida [Fri, 4 Feb 2000 23:55:21 +0000 (23:55 +0000)]
* kinit.c: Only free stuff if it's not NULL. (Note: The krb5_free_*
routines probably should be fixed check for NULL pointers...)

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

24 years ago * Makefile.in (klist): Fix to build under Unix again
Tom Yu [Fri, 4 Feb 2000 22:42:39 +0000 (22:42 +0000)]
* Makefile.in (klist): Fix to build under Unix again

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

24 years ago * Makefile.in (kinit): Fix to build on Unix again
Tom Yu [Fri, 4 Feb 2000 22:42:02 +0000 (22:42 +0000)]
* Makefile.in (kinit): Fix to build on Unix again

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

24 years ago(krb5_locate_kpasswd): fixed memory trashing caused by incorrect pointer arithmetic...
Scott McGuire [Fri, 4 Feb 2000 22:41:21 +0000 (22:41 +0000)]
(krb5_locate_kpasswd): fixed memory trashing caused by incorrect pointer arithmetic when assigning DEFAULT_KPASSWD_PORT in non-DNS code

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

24 years ago * aclocal.m4: Add support to substitute KRB524_LIB in places
Tom Yu [Fri, 4 Feb 2000 22:40:43 +0000 (22:40 +0000)]
* aclocal.m4: Add support to substitute KRB524_LIB in places

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

24 years ago * pre.in: Add KRB524_DEPLIB and KRB524_LIB
Tom Yu [Fri, 4 Feb 2000 22:40:35 +0000 (22:40 +0000)]
* pre.in: Add KRB524_DEPLIB and KRB524_LIB

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

24 years agoRemoved calls that destroyed and recreated ccapi_data->NamedCache if it exists in...
Scott McGuire [Fri, 4 Feb 2000 21:55:56 +0000 (21:55 +0000)]
Removed calls that destroyed and recreated ccapi_data->NamedCache if it exists in krb5_stdcc_initialize(); instead close and call create on it again

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

24 years ago* kinit.c: Major revamp to support Kerberos 4 compatibility. Code
Danilo Almeida [Fri, 4 Feb 2000 21:26:02 +0000 (21:26 +0000)]
* kinit.c: Major revamp to support Kerberos 4 compatibility.  Code
restructured to allow changes to support Kerberos 4 or Kerberos 5
only operation depending on whether dynamic libraries are
avialable.  Explicit documentation and support files to make it
easy to do this will be forthcoming.

* Makefile.in: On Windows, use getopt.lib instead of getopt.obj,
and add support for getopt_long.

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

24 years ago* klist.c: Major revamp to support Kerberos 4 compatibility. Code
Danilo Almeida [Fri, 4 Feb 2000 21:24:18 +0000 (21:24 +0000)]
* klist.c: Major revamp to support Kerberos 4 compatibility.  Code
restructured to allow changes to support Kerberos 4 or Kerberos 5
only operation depending on whether dynamic libraries are
avialable.  Explicit documentation and support files to make it
easy to do this will be forthcoming.

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

24 years ago* kdestroy.c: Major revamp to support Kerberos 4 compatibility. Code
Danilo Almeida [Fri, 4 Feb 2000 21:23:59 +0000 (21:23 +0000)]
* kdestroy.c: Major revamp to support Kerberos 4 compatibility.  Code
restructured to allow changes to support Kerberos 4 or Kerberos 5
only operation depending on whether dynamic libraries are
avialable.  Explicit documentation and support files to make it
easy to do this will be forthcoming.

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

24 years ago* getopt.c, getopt_long.c, getopt.h: Update to latest BSD code
Danilo Almeida [Fri, 4 Feb 2000 20:14:56 +0000 (20:14 +0000)]
* getopt.c, getopt_long.c, getopt.h: Update to latest BSD code
found (from NetBSD).
* Makefile.in: Build getopt.lib which includes getopt.obj and
getopt_long.obj.

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

24 years ago* listen.c (ss_listen): Local var END should be volatile
Ken Raeburn [Wed, 2 Feb 2000 04:01:34 +0000 (04:01 +0000)]
* listen.c (ss_listen): Local var END should be volatile

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

24 years ago* Makefile.in: Build gss-sample on Windows
Danilo Almeida [Wed, 2 Feb 2000 00:51:17 +0000 (00:51 +0000)]
* Makefile.in: Build gss-sample on Windows

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

24 years ago* kvno.c (main): Use krb5_decode_ticket() instead of
Danilo Almeida [Wed, 2 Feb 2000 00:46:23 +0000 (00:46 +0000)]
* kvno.c (main): Use krb5_decode_ticket() instead of
decode_krb5_ticket(), which is not part of API.

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

24 years ago* krb5_32.def: Replace decode_krb5_ticket with krb5_decode_ticket.
Danilo Almeida [Wed, 2 Feb 2000 00:44:45 +0000 (00:44 +0000)]
* krb5_32.def: Replace decode_krb5_ticket with krb5_decode_ticket.
Add documentation about adding things to DEF file.

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

24 years ago* krb5_decode.c (krb5_decode_ticket): Add function to provide
Danilo Almeida [Wed, 2 Feb 2000 00:43:48 +0000 (00:43 +0000)]
* krb5_decode.c (krb5_decode_ticket): Add function to provide
decode_krb5_ticket functionality as part of krb5 API.

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

24 years ago* krb5.hin (krb5_decode_ticket): Declare
Danilo Almeida [Tue, 1 Feb 2000 23:55:21 +0000 (23:55 +0000)]
* krb5.hin (krb5_decode_ticket): Declare

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

24 years ago* gss-client.c, gss-server.c, gss-misc.c: Include Windows headers
Danilo Almeida [Tue, 1 Feb 2000 20:49:25 +0000 (20:49 +0000)]
* gss-client.c, gss-server.c, gss-misc.c: Include Windows headers
instead of Unix headers under Windows.

* gss-server.c (usage): Fix usage info to reflect that service_name is
required.

* gss-misc.c (read_all, write_all): Change write to send and read
to recv for portability.
(gettimeofday): Add an implementation of gettimeofday() for
Windows.

* Makefile.in: Build under Windows.

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

24 years ago * kts_g_ent.c, ktsrvtab.h (krb5_ktsrvtab_get_entry): Change the
Ezra Peisach [Sat, 29 Jan 2000 00:56:34 +0000 (00:56 +0000)]
* kts_g_ent.c, ktsrvtab.h (krb5_ktsrvtab_get_entry): Change the
  third argument to krb5_const_principal (from krb5_principal) to
  agree with krb5_kts_ops entries.

gcc warning about incompatible pointer types.

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

24 years agoleft date line off last log entry
Ken Raeburn [Fri, 28 Jan 2000 17:42:46 +0000 (17:42 +0000)]
left date line off last log entry

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

24 years agodidn't have date line on last log entry
Ken Raeburn [Fri, 28 Jan 2000 08:35:10 +0000 (08:35 +0000)]
didn't have date line on last log entry

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

24 years ago* dispatch.c (dispatch): Log address and port number of detected retransmits
Ken Raeburn [Thu, 27 Jan 2000 22:14:45 +0000 (22:14 +0000)]
* dispatch.c (dispatch): Log address and port number of detected retransmits

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

24 years agopermit use of non-des session keys now
Ken Raeburn [Thu, 27 Jan 2000 22:13:14 +0000 (22:13 +0000)]
permit use of non-des session keys now

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

24 years ago* pre.in (KADM_COMM_LIBS): Drop krb5util library
Ken Raeburn [Thu, 27 Jan 2000 22:09:24 +0000 (22:09 +0000)]
* pre.in (KADM_COMM_LIBS): Drop krb5util library

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

24 years ago* krlogin.c (speeds): Added some comments from net recommending not extending the...
Ken Raeburn [Thu, 27 Jan 2000 22:08:14 +0000 (22:08 +0000)]
* krlogin.c (speeds): Added some comments from net recommending not extending the list to higher values

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

24 years ago* main.c (print_status): Now static. Add format attribute if using GNU C
Ken Raeburn [Thu, 27 Jan 2000 22:06:52 +0000 (22:06 +0000)]
* main.c (print_status): Now static.  Add format attribute if using GNU C

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

24 years agoDon't use obsolete autoconf macros. Fix up output formatting a little.
Ken Raeburn [Thu, 27 Jan 2000 22:02:58 +0000 (22:02 +0000)]
Don't use obsolete autoconf macros.  Fix up output formatting a little.
Rewrote tcl config handling to extract info from installed tclConfig.sh.
Configure-time option to control IPv6 configuration.
Configure-time option to enable DNS lookups.

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

24 years agolimit kadm5 net interface to des for now until gssapi mech is fixed
Ken Raeburn [Thu, 27 Jan 2000 21:38:34 +0000 (21:38 +0000)]
limit kadm5 net interface to des for now until gssapi mech is fixed

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

24 years ago* init_ctx.c (get_profile_etype_list): Discard DESONLY changes from 1999-09-01,
Ken Raeburn [Thu, 27 Jan 2000 21:05:59 +0000 (21:05 +0000)]
* init_ctx.c (get_profile_etype_list): Discard DESONLY changes from 1999-09-01,
and revert call sites.

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

24 years ago* init_sec_context.c (krb5_gss_init_sec_context): Default to des-cbc-crc
Ken Raeburn [Thu, 27 Jan 2000 21:02:32 +0000 (21:02 +0000)]
* init_sec_context.c (krb5_gss_init_sec_context): Default to des-cbc-crc

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

24 years ago* k5-int.h [!NEED_SOCKETS]: Declare (but do not define) struct sockaddr if
Ken Raeburn [Thu, 27 Jan 2000 00:56:27 +0000 (00:56 +0000)]
* k5-int.h [!NEED_SOCKETS]: Declare (but do not define) struct sockaddr if
SOCK_DGRAM hasn't been defined yet.
(krb5_locate_srv_conf, krb5_locate_srv_dns): Declare.
(struct krb5_keytypes, struct krb5_cksumtypes): enc, hash, and keyhash provider
structures pointed to are now const.

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

24 years ago * kpasswd.0/changing.exp: Fix y2k bug
Tom Yu [Mon, 24 Jan 2000 22:58:38 +0000 (22:58 +0000)]
* kpasswd.0/changing.exp: Fix y2k bug

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

24 years ago * get_myaddress.c (gssrpc_get_myaddress): Copy in from NetBSD;
Tom Yu [Mon, 24 Jan 2000 21:53:43 +0000 (21:53 +0000)]
* get_myaddress.c (gssrpc_get_myaddress): Copy in from NetBSD;
use loopback address only.

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

24 years ago * krb5_libinit.c: Conditionalize call to stdcc_shutdown()
Tom Yu [Mon, 24 Jan 2000 20:42:45 +0000 (20:42 +0000)]
* krb5_libinit.c: Conditionalize call to stdcc_shutdown()

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

24 years ago * configure.in: Fix to build library objects in this directory
Tom Yu [Mon, 24 Jan 2000 20:38:38 +0000 (20:38 +0000)]
* configure.in: Fix to build library objects in this directory

* Makefile.in (STOBJLISTS): Fix to actually build krb5_libinit.o.

* krb5_libinit.c: Fix to use 0 and 1 instead of false and true.

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

24 years ago * Makefile.in (STLIBOBJS): Properly add gss_libinit.o to permit
Tom Yu [Mon, 24 Jan 2000 20:08:42 +0000 (20:08 +0000)]
* Makefile.in (STLIBOBJS): Properly add gss_libinit.o to permit
compiling.

* configure.in: Add libobj to Makefile frags.

* gss_libinit.c: Add terminating newline.  Use 0 and 1 instead of
false and true.

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

24 years ago * crypto_libinit.c: Add terminating newline; use 0 and 1 instead
Tom Yu [Mon, 24 Jan 2000 19:50:27 +0000 (19:50 +0000)]
* crypto_libinit.c: Add terminating newline; use 0 and 1 instead
of false and true.

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

24 years ago* krb5.conf: Put primary KDC for Cygnus first. Add GNU.ORG realm
Ken Raeburn [Sat, 22 Jan 2000 04:30:57 +0000 (04:30 +0000)]
* krb5.conf: Put primary KDC for Cygnus first.  Add GNU.ORG realm

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

24 years agoMoved krb5, gss, and crypto library initialization/cleanup code into new dedicated...
Miro Jurisic [Sat, 22 Jan 2000 04:04:36 +0000 (04:04 +0000)]
Moved krb5, gss, and crypto library initialization/cleanup code into new dedicated functions; added code to release global state allocated in prng.c

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

24 years agoVarious changes to:
Ken Raeburn [Sat, 22 Jan 2000 03:49:56 +0000 (03:49 +0000)]
Various changes to:
 * make most non-changing data const
 * silence "gcc -Wall -Werror" complaints on sparc-solaris2.6
 ** delete unused functions and variables
 ** change if(a=b) ... to if((a=b)) or if((a=b)!=0) [yeah, kinda gratuitous]
 ** insert extra braces for 2-D arrays
 * some basic thread safety checks

Not changing afsstring2key.c until I make sure I've got some tests for it.
Currently, prng.c and afsstring2key.c, at least, still aren't thread-safe.

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

24 years ago* prng.c (enc): Now static and const, and points to const
Ken Raeburn [Sat, 22 Jan 2000 02:53:02 +0000 (02:53 +0000)]
* prng.c (enc): Now static and const, and points to const

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

24 years agoAvoid non-const static data, and gcc warnings Solaris, except afsstring2key.c:
Ken Raeburn [Sat, 22 Jan 2000 02:42:19 +0000 (02:42 +0000)]
Avoid non-const static data, and gcc warnings Solaris, except afsstring2key.c:

* f_sched.c (PC2_C, PC2_D): Put braces around sub-arrays.
* f_tables.c (des_SP_table): Ditto.

* weak_key.c (weak): Now const.
(mit_des_is_weak_key): Adjust pointer type accordingly.

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

25 years agofrom 1.1 branch: use init_secure_context
Ken Raeburn [Wed, 15 Dec 1999 02:14:55 +0000 (02:14 +0000)]
from 1.1 branch: use init_secure_context

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

25 years ago* krb5.hin (krb5_secure_config_files): Delete declaration.
Ken Raeburn [Wed, 15 Dec 1999 02:10:15 +0000 (02:10 +0000)]
* krb5.hin (krb5_secure_config_files): Delete declaration.
(krb5_init_secure_context): Declare.

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

25 years ago1.1 branch changes -> trunk
Ken Raeburn [Wed, 15 Dec 1999 02:09:32 +0000 (02:09 +0000)]
1.1 branch changes -> trunk

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

25 years agomerge from 1.1 branch
Ken Raeburn [Mon, 6 Dec 1999 21:57:03 +0000 (21:57 +0000)]
merge from 1.1 branch

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

25 years ago* logger.c (klog_vsyslog): Convert pid_t to long for printing
Ken Raeburn [Mon, 6 Dec 1999 21:54:10 +0000 (21:54 +0000)]
* logger.c (klog_vsyslog): Convert pid_t to long for printing

* alt_prof.c (kadm5_get_config_params): Fix bug in direction of
test while walking through whitespace.  Thanks to Matt Crawford.

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

25 years ago* Makefile.in (LIBMINOR): Update to 2
Ken Raeburn [Mon, 6 Dec 1999 21:53:08 +0000 (21:53 +0000)]
* Makefile.in (LIBMINOR): Update to 2

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

25 years ago* init_ctx.c (get_profile_etype_list): Report an error if no
Ken Raeburn [Mon, 6 Dec 1999 21:52:07 +0000 (21:52 +0000)]
* init_ctx.c (get_profile_etype_list): Report an error if no
recognized enctypes are found in the config file.

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

25 years agomerge 1.1 branch, to 12/1/99
Ken Raeburn [Mon, 6 Dec 1999 21:49:19 +0000 (21:49 +0000)]
merge 1.1 branch, to 12/1/99

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

25 years ago* krb5_err.et (KRB5_OBSOLETE_FN): New error code
Ken Raeburn [Mon, 6 Dec 1999 21:45:03 +0000 (21:45 +0000)]
* krb5_err.et (KRB5_OBSOLETE_FN): New error code

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

25 years ago* mcc.h (mcc_head): Define as macro to give exported name a krb5 prefix
Ken Raeburn [Mon, 6 Dec 1999 21:41:53 +0000 (21:41 +0000)]
* mcc.h (mcc_head): Define as macro to give exported name a krb5 prefix

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

25 years agomerge from 1.1 branch
Ken Raeburn [Mon, 6 Dec 1999 21:38:22 +0000 (21:38 +0000)]
merge from 1.1 branch

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

25 years agoOn Windows, build error tables if we believe awk is present
Danilo Almeida [Sat, 4 Dec 1999 04:06:37 +0000 (04:06 +0000)]
On Windows, build error tables if we believe awk is present

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

25 years ago* kvno.c (main): Use krb5_free_unparsed_name() isntead of free().
Danilo Almeida [Sat, 4 Dec 1999 03:28:35 +0000 (03:28 +0000)]
* kvno.c (main): Use krb5_free_unparsed_name() isntead of free().
Free krb5 context when done.

* Makefile.in: Build kvno under Windows.

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

25 years agoAdd kvno to Windows build.
Danilo Almeida [Sat, 4 Dec 1999 03:27:49 +0000 (03:27 +0000)]
Add kvno to Windows build.
Clean kpasswd in Windows build.

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

25 years agoMake Windows Makefile target creation atomic.
Danilo Almeida [Sat, 4 Dec 1999 03:26:01 +0000 (03:26 +0000)]
Make Windows Makefile target creation atomic.
Build clients/kvno for Windows.  Also pull from 1.1 branch: Add
install target for windows.  Remove references to unused mit
directory.

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

25 years agoPull changes from krb5-1-1 branch
Danilo Almeida [Sat, 4 Dec 1999 02:07:12 +0000 (02:07 +0000)]
Pull changes from krb5-1-1 branch

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

25 years agoPull changes from krb5-1-1 branch: a) Make is so
Danilo Almeida [Sat, 4 Dec 1999 02:02:15 +0000 (02:02 +0000)]
Pull changes from krb5-1-1 branch: a) Make is so
that all C flags are the same and so that the only difference
between EXE and DLL builds are the DLL_LINKOPTS and EXE_LINKOPTS
linker options.  b) Fix DNS error messages to wshelper instead of
version server.  c) Fix DNS flags it does not try to depend on mit
dir.  Define NULL so we can do directory existence checks via the
shell under both NT and 9x.

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

25 years agoPull changes in from krb5-1-1 branch (remvove everything under src/mit)
Danilo Almeida [Sat, 4 Dec 1999 01:54:09 +0000 (01:54 +0000)]
Pull changes in from krb5-1-1 branch (remvove everything under src/mit)

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

25 years agoPull src/windows changes from krb5-1-1 branch (rename readme -> README)
Danilo Almeida [Sat, 4 Dec 1999 01:52:33 +0000 (01:52 +0000)]
Pull src/windows changes from krb5-1-1 branch (rename readme -> README)

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

25 years agoPull src/windows changes from krb5-1-1 branch
Danilo Almeida [Sat, 4 Dec 1999 01:50:44 +0000 (01:50 +0000)]
Pull src/windows changes from krb5-1-1 branch

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

25 years agoMacOS: only #define MAXHOSTNAMELEN when not already defined
Miro Jurisic [Mon, 22 Nov 1999 22:58:02 +0000 (22:58 +0000)]
MacOS: only #define MAXHOSTNAMELEN when not already defined

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

25 years agoReplaced Kerberos5GlobalsLib calls with CCAPI v3 calls on MacOS
Miro Jurisic [Mon, 22 Nov 1999 22:49:33 +0000 (22:49 +0000)]
Replaced Kerberos5GlobalsLib calls with CCAPI v3 calls on MacOS

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

25 years agoDon't need Kerberos5GlobalsLib, use CCAPI v3 instead
Miro Jurisic [Mon, 22 Nov 1999 22:46:55 +0000 (22:46 +0000)]
Don't need Kerberos5GlobalsLib, use CCAPI v3 instead

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

25 years agoUse CCache2.h under MacOS for CCAPI v2 compat
Miro Jurisic [Mon, 22 Nov 1999 22:44:37 +0000 (22:44 +0000)]
Use CCache2.h under MacOS for CCAPI v2 compat

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

25 years agoUse CCache2.h under MacOS for CCAPI v2 compatibility
Miro Jurisic [Mon, 22 Nov 1999 22:40:13 +0000 (22:40 +0000)]
Use CCache2.h under MacOS for CCAPI v2 compatibility

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

25 years agoRemoved globals lib and 68k targets
Miro Jurisic [Mon, 22 Nov 1999 22:37:10 +0000 (22:37 +0000)]
Removed globals lib and 68k targets

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

25 years ago* krb5_err.et (KRB5_CONFIG_ETYPE_NOSUPP): New error code
Ken Raeburn [Wed, 3 Nov 1999 01:15:49 +0000 (01:15 +0000)]
* krb5_err.et (KRB5_CONFIG_ETYPE_NOSUPP): New error code

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

25 years ago* t_ref_kerb.out: Fix expected zephyr/zephyr output
Ken Raeburn [Wed, 3 Nov 1999 01:09:10 +0000 (01:09 +0000)]
* t_ref_kerb.out: Fix expected zephyr/zephyr output

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

25 years ago* klist.c (one_addr): Always use indicated address family and length in
Ken Raeburn [Tue, 2 Nov 1999 15:38:18 +0000 (15:38 +0000)]
* klist.c (one_addr): Always use indicated address family and length in
gethostbyaddr or getipnodebyaddr calls.

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

25 years ago* configure.in: Invoke KRB5_AC_INET6. Delete most of the 10-17 changes except
Ken Raeburn [Tue, 2 Nov 1999 15:20:31 +0000 (15:20 +0000)]
* configure.in: Invoke KRB5_AC_INET6.  Delete most of the 10-17 changes except
for inet_ntoa/aton, since they're in KRB5_AC_INET6 now.

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

25 years ago* aclocal.m4 (KRB5_AC_INET6): New macro.
Ken Raeburn [Tue, 2 Nov 1999 15:19:27 +0000 (15:19 +0000)]
* aclocal.m4 (KRB5_AC_INET6): New macro.
* acconfig.h (KRB5_USE_INET6): Undef.

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

25 years ago* localaddr.c (krb5_os_localaddr): Conditionalize INET6 support on new
Ken Raeburn [Tue, 2 Nov 1999 15:18:22 +0000 (15:18 +0000)]
* localaddr.c (krb5_os_localaddr): Conditionalize INET6 support on new
KRB5_USE_INET6 macro.

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

25 years ago * krb5_decode_test.c (main): Add test case for zero-length
Tom Yu [Mon, 1 Nov 1999 21:12:13 +0000 (21:12 +0000)]
* krb5_decode_test.c (main): Add test case for zero-length
SequenceOfType.

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

25 years ago * krb5_decode.c (begin_structure): Update to deal with indefinite
Tom Yu [Mon, 1 Nov 1999 21:08:55 +0000 (21:08 +0000)]
* krb5_decode.c (begin_structure): Update to deal with indefinite
encodings better; also call asn1_get_sequence().

* asn1_k_decode.c (sequence_of): Update to deal with indefinite
encodings better.
(begin_structure): Update to deal with indefinite encodings
better; also call asn1_get_sequence().

* asn1_get.h: Update prototypes for asn1_get_tag_indef(),
asn1_get_tag(), asn1_get_sequence(), asn1_get_length().

* asn1_get.c (asn1_get_tag_indef): New function; get tag info,
lengths, etc. as well as flag indicating whether the length is
indefinite.
(asn1_get_tag): Modify to just call asn1_get_tag_indef().
(asn1_get_sequence): Call asn1_get_tag_indef() in order to
determine whether encoding is indefinite length.
(asn1_get_length): Add "indef" arg to indicate whether an encoding
has an indefinite length.

* asn1buf.h: Update asn1buf_imbed() prototype.

* asn1buf.c (asn1buf_imbed): Add "indef" arg so that we don't
treat a definite zero-length encoding as an indefinite encoding.

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

25 years ago* dispatch.c (dispatch): Make message in lookaside case less suggestive of
Ken Raeburn [Fri, 29 Oct 1999 19:25:10 +0000 (19:25 +0000)]
* dispatch.c (dispatch): Make message in lookaside case less suggestive of
replay attacks, since it can result from normal packet loss causing
retransmissions.

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

25 years ago* error_message.c, error_table.h: Added support to use ErrorLib
Alexandra Ellwood [Thu, 28 Oct 1999 21:34:52 +0000 (21:34 +0000)]
* error_message.c, error_table.h: Added support to use ErrorLib
to get MIT Support Library and Mac OS Toolbox error codes
(similar to the way windows does it).

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

25 years agoAdded support to use ErrorLib to get MIT Support Library and Mac OS Toolbox error...
Alexandra Ellwood [Thu, 28 Oct 1999 21:30:27 +0000 (21:30 +0000)]
Added support to use ErrorLib to get MIT Support Library and Mac OS Toolbox error codes (similar to the way windows does it)

Also committed some changes that were on the 1.1 branch.

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

25 years agoAdded support to use ErrorLib to get MIT Support Library and Mac OS Toolbox error...
Alexandra Ellwood [Thu, 28 Oct 1999 21:29:12 +0000 (21:29 +0000)]
Added support to use ErrorLib to get MIT Support Library and Mac OS Toolbox error codes (similar to the way windows does it)

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

25 years ago* accept_sec_context.c (krb5_gss_accept_sec_context): get rid of unused vars
Ken Raeburn [Wed, 27 Oct 1999 00:12:53 +0000 (00:12 +0000)]
* accept_sec_context.c (krb5_gss_accept_sec_context): get rid of unused vars

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

25 years ago* k5seal.c (make_integ_token_v2): Set 'code' when malloc fails
Ken Raeburn [Tue, 26 Oct 1999 23:57:20 +0000 (23:57 +0000)]
* k5seal.c (make_integ_token_v2): Set 'code' when malloc fails

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

25 years agolost date/name line in last checkin
Ken Raeburn [Tue, 26 Oct 1999 22:29:19 +0000 (22:29 +0000)]
lost date/name line in last checkin

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

25 years ago* trval.c (print_tag_type): Use fputs when there's no formatting to do
Ken Raeburn [Tue, 26 Oct 1999 22:12:27 +0000 (22:12 +0000)]
* trval.c (print_tag_type): Use fputs when there's no formatting to do

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

25 years agolog tritan's changes
Tom Yu [Tue, 26 Oct 1999 20:38:54 +0000 (20:38 +0000)]
log tritan's changes

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

25 years agoClean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES such
Wilfredo Sanchez [Tue, 26 Oct 1999 01:49:53 +0000 (01:49 +0000)]
Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES such
that one can override CFLAGS from the command line without losing CPP
search patchs and defines. Some associated Makefile cleanup.

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

25 years ago* asn1_decode.c (asn1_decode_integer): Initialize "n", to keep gcc happy
Ken Raeburn [Fri, 22 Oct 1999 23:14:11 +0000 (23:14 +0000)]
* asn1_decode.c (asn1_decode_integer): Initialize "n", to keep gcc happy

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

25 years agofix typos in comments
Ken Raeburn [Fri, 22 Oct 1999 22:32:24 +0000 (22:32 +0000)]
fix typos in comments

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

25 years agoSilence gcc longjmp warnings:
Ken Raeburn [Fri, 22 Oct 1999 22:17:35 +0000 (22:17 +0000)]
Silence gcc longjmp warnings:
* prompter.c (krb5_prompter_posix): Make ointrfunc, fd, and errcode volatile.
* promptusr.c (krb5_os_get_tty_uio): Make ointrfunc and retval volatile.
* read_pwd.c (krb5_read_password): Make ointrfunc volatile.  Fix volatile decl
for readin_string (pointer is volatile, doesn't point to volatile).

* changepw.c (krb5_change_password): Wait only two minutes, not indefinitely,
for a response from the kpasswd server.

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

25 years agoFixed strong link against DriverServicesLib
Miro Jurisic [Tue, 19 Oct 1999 22:45:47 +0000 (22:45 +0000)]
Fixed strong link against DriverServicesLib

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

25 years ago* localaddr.c (krb5_os_localaddr): Don't bother trying to create inet6 socket; any...
Ken Raeburn [Mon, 18 Oct 1999 05:18:56 +0000 (05:18 +0000)]
* localaddr.c (krb5_os_localaddr): Don't bother trying to create inet6 socket; any socket type will do

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

25 years agoIf INET6 support is built in but the socket creation fails, fall back to INET
Ken Raeburn [Sun, 17 Oct 1999 07:34:05 +0000 (07:34 +0000)]
If INET6 support is built in but the socket creation fails, fall back to INET

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

25 years agodisplay ipv6 addresses if supported
Ken Raeburn [Sun, 17 Oct 1999 07:27:19 +0000 (07:27 +0000)]
display ipv6 addresses if supported

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

25 years ago* localaddr.c (krb5_os_localaddr): Raise buffer size to 10K. Handle INET6
Ken Raeburn [Sun, 17 Oct 1999 07:16:32 +0000 (07:16 +0000)]
* localaddr.c (krb5_os_localaddr): Raise buffer size to 10K.  Handle INET6
addresses.

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

25 years ago* configure.in: Check for inet_{ntop,pton,ntoa,aton},
Ken Raeburn [Sun, 17 Oct 1999 07:15:28 +0000 (07:15 +0000)]
* configure.in: Check for inet_{ntop,pton,ntoa,aton},
getipnodeby{name,addr}, get{name,addr}info.

* krb5.hin (ADDRTYPE_INET6): Define.

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