krb5.git
23 years ago * configure.in: Add checks for unsetenv and getenv. Compile
Tom Yu [Wed, 4 Apr 2001 02:31:35 +0000 (02:31 +0000)]
* configure.in: Add checks for unsetenv and getenv.  Compile
setenv.o if any of setenv, unsetenv, or getenv are
missing. [pullup from krb5-1-2-2-branch]

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

23 years ago * configure.in: Check for setenv, unsetenv, and getenv. Compile
Tom Yu [Wed, 4 Apr 2001 02:31:12 +0000 (02:31 +0000)]
* configure.in: Check for setenv, unsetenv, and getenv.  Compile
setenv.c if at least of these is undefined. [pullup from
krb5-1-2-2-branch]

* setenv.c: Add conditionals for compilation of setenv, unsetenv,
and getenv such that they only get compiled if they don't already
exist. [pullup from krb5-1-2-2-branch]

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

23 years ago * login.M: Don't include "= 0" as part of the "accept_passwd"
Tom Yu [Tue, 3 Apr 2001 03:43:51 +0000 (03:43 +0000)]
* login.M: Don't include "= 0" as part of the "accept_passwd"
config option. [pullup from 1.2.2]

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

23 years ago* t_gifconf.c: New file
Ken Raeburn [Sat, 31 Mar 2001 06:33:48 +0000 (06:33 +0000)]
* t_gifconf.c: New file

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

23 years ago* init_ctx.c (DEFAULT_ETYPE_LIST): New macro. Old etype list, plus des-md4,
Ken Raeburn [Sat, 31 Mar 2001 05:23:42 +0000 (05:23 +0000)]
* init_ctx.c (DEFAULT_ETYPE_LIST): New macro.  Old etype list, plus des-md4,
with des-crc before des-mdX for now.
(get_profile_etype_list): Use DEFAULT_ETYPE_LIST.

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

23 years agoreindent for readability
Ken Raeburn [Sat, 31 Mar 2001 05:22:31 +0000 (05:22 +0000)]
reindent for readability

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

23 years agoI didn't intend to commit that on the trunk (oops). Undoing
Miro Jurisic [Wed, 21 Mar 2001 02:15:13 +0000 (02:15 +0000)]
I didn't intend to commit that on the trunk (oops). Undoing

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

23 years agomacsock.h: Updated Utilities.h and sockets includes
Miro Jurisic [Wed, 21 Mar 2001 02:09:19 +0000 (02:09 +0000)]
macsock.h: Updated Utilities.h and sockets includes

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

23 years agoupdate comments
Ken Raeburn [Thu, 15 Mar 2001 06:51:19 +0000 (06:51 +0000)]
update comments

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

23 years agot_nfold.c: run n-fold test vector from kerberos-revisions draft
Ken Raeburn [Thu, 15 Mar 2001 05:01:24 +0000 (05:01 +0000)]
t_nfold.c: run n-fold test vector from kerberos-revisions draft

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

23 years agominor cleanup + audit issues
Ken Raeburn [Thu, 15 Mar 2001 04:58:12 +0000 (04:58 +0000)]
minor cleanup + audit issues

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

23 years agoaudit issues
Ken Raeburn [Thu, 15 Mar 2001 04:45:42 +0000 (04:45 +0000)]
audit issues

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

23 years ago* shs.h: Stop using KRB5_PROTOTYPE
Ken Raeburn [Thu, 15 Mar 2001 04:45:18 +0000 (04:45 +0000)]
* shs.h: Stop using KRB5_PROTOTYPE

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

23 years agominor cleanup + audit issues
Ken Raeburn [Thu, 15 Mar 2001 04:42:37 +0000 (04:42 +0000)]
minor cleanup + audit issues

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

23 years ago* crc-32.h: Stop using PROTOTYPE macro
Ken Raeburn [Thu, 15 Mar 2001 02:59:52 +0000 (02:59 +0000)]
* crc-32.h: Stop using PROTOTYPE macro

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

23 years ago* Makefile.in (STLIBOBJS): Undo last change
Ken Raeburn [Tue, 13 Mar 2001 23:27:10 +0000 (23:27 +0000)]
* Makefile.in (STLIBOBJS): Undo last change

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

23 years ago * defines.h: Add prototypes for rcmd_stream_init_normal(),
Ezra Peisach [Mon, 12 Mar 2001 15:17:40 +0000 (15:17 +0000)]
* defines.h: Add prototypes for rcmd_stream_init_normal(),
rcmd_stream_init_krb4(), strsave() and rd_and_store_for_creds()

* Makefile.in: Add dependency of forward.o on defines.h

* forward.c: Include defines.h for prototypes.

* kcmd.c, krcp.c, krlogin.c, krlogind.c, krsh.c: Provide full prototype
for local functions and move include of kerberosIV/krb.h before
defines.h.

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

23 years ago * krb524d.c: Provide prototypes for local functions
Ezra Peisach [Mon, 12 Mar 2001 15:10:02 +0000 (15:10 +0000)]
* krb524d.c: Provide prototypes for local functions

* test.c: Declare local functions static.

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

23 years ago * com_err.h: For struct error_table, change the base from an
Ezra Peisach [Mon, 12 Mar 2001 00:15:55 +0000 (00:15 +0000)]
    * com_err.h: For struct error_table, change the base from an
        unsigned to signed long (error messages and tables are signed)

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

23 years ago * def_realm.c: Move prototype for krb5_try_realm_txt_rr() to
Ezra Peisach [Sun, 11 Mar 2001 03:21:13 +0000 (03:21 +0000)]
   * def_realm.c: Move prototype for krb5_try_realm_txt_rr() to
        os-proto.h.

        * init_os_ctx.c: Include os-proto.h

        * changepw.c, locate_kdc.c: Do not shadow sin() with local
        variable name.

        * os-proto.h: Add prototypes for krb5_try_realm_txt_rr() and the
        obsolete krb5_secure_config_files().

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

23 years ago * init_ctx.c: Provide a full prototype for init_common()
Ezra Peisach [Sun, 11 Mar 2001 03:04:59 +0000 (03:04 +0000)]
    * init_ctx.c: Provide a full prototype for init_common()

        * recvauth.c (recvauth_common): Declare recvauth_common as static.

        * parse.c, sendauth.c: Changes to prevent shadowing of local
        variables.

        * get_in_tkt.c, tgtname.c: Include int-proto.h for prototypes.

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

23 years ago * oid_ops.c: Avoid the use of a variable named index
Ezra Peisach [Sun, 11 Mar 2001 02:55:44 +0000 (02:55 +0000)]
   * oid_ops.c: Avoid the use of a variable named index

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

23 years ago * make_random_key.c, old_api_glue.c: Do not use a variable named
Ezra Peisach [Sun, 11 Mar 2001 02:53:49 +0000 (02:53 +0000)]
    * make_random_key.c, old_api_glue.c: Do not use a variable named
        random that might shadow a system header file definition.

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

23 years agostr_conv.c: Include adm_proto.h for prototypes
Ezra Peisach [Sun, 11 Mar 2001 02:47:09 +0000 (02:47 +0000)]
str_conv.c: Include adm_proto.h for prototypes

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

23 years ago * kdb_xdr.c: Change the variable index to idx to prevent function
Ezra Peisach [Sat, 10 Mar 2001 22:56:44 +0000 (22:56 +0000)]
    * kdb_xdr.c: Change the variable index to idx to prevent function
        name shadowing.

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

23 years agouse prototype-style function defs. meant to attach this log with last checkin of...
Ken Raeburn [Fri, 9 Mar 2001 22:27:16 +0000 (22:27 +0000)]
use prototype-style function defs. meant to attach this log with last checkin of old_??crypt.c

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

23 years agoMakefile.in (STLIBOBJS): Nothing uses des_stringtokey.o, drop it
Ken Raeburn [Fri, 9 Mar 2001 22:25:02 +0000 (22:25 +0000)]
Makefile.in (STLIBOBJS): Nothing uses des_stringtokey.o, drop it

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

23 years agoUse krb5int_ prefix for internal "provider" structures
Ken Raeburn [Fri, 9 Mar 2001 09:42:19 +0000 (09:42 +0000)]
Use krb5int_ prefix for internal "provider" structures

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

23 years agoUpdate ChangeLog for last checkin..
Ezra Peisach [Thu, 8 Mar 2001 22:47:48 +0000 (22:47 +0000)]
Update ChangeLog for last checkin..

* do_as_req.c: If KRBCONF_KDC_MODIFIES_KDB defined, produce code
that compiles and works.

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

23 years ago * kdc_util.h: Add prototype for process_v4_mode() for main.c to use
Ezra Peisach [Thu, 8 Mar 2001 22:45:29 +0000 (22:45 +0000)]
* kdc_util.h: Add prototype for process_v4_mode() for main.c to use

* kerberos_v4.c: Do not shadow progname and more variables.

* rtest.c (make_princ): Declare static.

* sock2p.c: Include kdc_util.h for prototypes.

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

23 years ago * krb5.hin: Add prototypes for krb5_auth_con_setpermetypes() and
Ezra Peisach [Thu, 8 Mar 2001 19:54:17 +0000 (19:54 +0000)]
* krb5.hin: Add prototypes for krb5_auth_con_setpermetypes() and
  krb5_auth_con_getpermetypes().

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

23 years ago* test_et.c (main): Only use sys_nerr tests if HAVE_SYS_ERRLIST
Ken Raeburn [Thu, 8 Mar 2001 03:47:22 +0000 (03:47 +0000)]
* test_et.c (main): Only use sys_nerr tests if HAVE_SYS_ERRLIST

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

23 years agoprefer strerror() over sys_errlist[], for sparcv9-solaris2.8
Ken Raeburn [Thu, 8 Mar 2001 03:40:49 +0000 (03:40 +0000)]
prefer strerror() over sys_errlist[], for sparcv9-solaris2.8

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

23 years agofix last change, it was very broken
Ken Raeburn [Thu, 8 Mar 2001 03:27:26 +0000 (03:27 +0000)]
fix last change, it was very broken

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

23 years agouse strerror when available, for sparcv9-solaris2.8
Ken Raeburn [Thu, 8 Mar 2001 03:19:21 +0000 (03:19 +0000)]
use strerror when available, for sparcv9-solaris2.8

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

23 years agokrb5_const -> const
Ken Raeburn [Tue, 6 Mar 2001 02:18:47 +0000 (02:18 +0000)]
krb5_const -> const

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

23 years agoprng.c: use des3 now
Ken Raeburn [Tue, 6 Mar 2001 00:47:32 +0000 (00:47 +0000)]
prng.c: use des3 now

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

23 years ago* localaddr.c (krb5_os_localaddr): Don't look for -1 return value from
Ken Raeburn [Mon, 5 Mar 2001 20:57:39 +0000 (20:57 +0000)]
* localaddr.c (krb5_os_localaddr): Don't look for -1 return value from
foreach_localaddr.
(print_addr): Only process AF_INET6 addresses if AF_INET6 is defined.

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

23 years ago* gmt_mktime.c (gmt_mktime): Handle years earlier than 1970.
Ken Raeburn [Mon, 5 Mar 2001 20:48:43 +0000 (20:48 +0000)]
* gmt_mktime.c (gmt_mktime): Handle years earlier than 1970.
(main) [TEST_LEAP]: New routine, driver for testing.
* Makefile.in (t_mktime): New target.

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

23 years ago2001-03-05 Sam Hartman <hartmans@mit.edu>
Sam Hartman [Mon, 5 Mar 2001 10:42:09 +0000 (10:42 +0000)]
2001-03-05  Sam Hartman  <hartmans@mit.edu>

* kuserok.c: Set max_username to 65 not 10.  65 should be enough
for a null terminated string from most current Unixes usernames.
The previous limit of 10 was too low.  I don't know how the
previous limit was chosen nor why this is not a dynamic buffer.

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

23 years ago * init_os_ctx.c: Get sys/ioctl.h for Solaris to get FIONBIO
Tom Yu [Mon, 5 Mar 2001 08:07:10 +0000 (08:07 +0000)]
* init_os_ctx.c: Get sys/ioctl.h for Solaris to get FIONBIO

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

23 years ago * configure.in: Check for sys/filio.h for FIONBIO
Tom Yu [Mon, 5 Mar 2001 08:06:34 +0000 (08:06 +0000)]
* configure.in: Check for sys/filio.h for FIONBIO

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

23 years agoonly call ioctl on /dev/random if open succeeded
Ken Raeburn [Sat, 3 Mar 2001 22:05:29 +0000 (22:05 +0000)]
only call ioctl on /dev/random if open succeeded

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

23 years agoinit_os_ctx.c: On UNIX, seed PRNG with data from /dev/[u]random if available
Ken Raeburn [Sat, 3 Mar 2001 22:02:00 +0000 (22:02 +0000)]
init_os_ctx.c: On UNIX, seed PRNG with data from /dev/[u]random if available

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

23 years ago* preauth2.c (pa_sam): Return an error if no prompter was provided
Ken Raeburn [Sat, 3 Mar 2001 21:31:59 +0000 (21:31 +0000)]
* preauth2.c (pa_sam): Return an error if no prompter was provided

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

23 years ago *adm_conn.c, adm_rw.c, kadm5_defs.h, kpasswd.c, main.c,
Ezra Peisach [Mon, 26 Feb 2001 20:25:23 +0000 (20:25 +0000)]
*adm_conn.c, adm_rw.c, kadm5_defs.h, kpasswd.c, main.c,
  proto_serv.c, srv_net.c: Warnings cleanup including assignments in
  conditionals, shadowed variables, unused variables, prototypes.

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

23 years ago * loadv4.c, ovload.c, kdb5_util.h, kdb5_util.c, kadm5_create.c,
Ezra Peisach [Mon, 26 Feb 2001 20:03:16 +0000 (20:03 +0000)]
* loadv4.c, ovload.c, kdb5_util.h, kdb5_util.c, kadm5_create.c,
  dumpv4.c, dump.c: Compiler warning cleanup including prototypes,
  assignments in conditionals, unused variables, varaibles shadowing
  one-another.

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

23 years ago * ktutil.c, ktutil_funcs.c: Do not shadow system "index" and
Ezra Peisach [Mon, 26 Feb 2001 19:31:03 +0000 (19:31 +0000)]
* ktutil.c, ktutil_funcs.c: Do not shadow system "index" and
  "stime" variables.

* ktutil.h: Add prototypes for SS callback functions.

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

23 years ago * ss_wrapper.c: Include kadmin.h
Ezra Peisach [Mon, 26 Feb 2001 19:14:29 +0000 (19:14 +0000)]
* ss_wrapper.c: Include kadmin.h

* kadmin.c, keytab.c: Warning cleanup of shadowing variables,
  missing prototypes, assignments within conditionals. variables
  type mismatches.

* getdate.y: Prototypes in file are for getdate_yylex() and
  getdaye_yyerror() and not yylex()/yyerror().

* kadmin.h: New header file with ss callback prototypes and global
  variables.

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

23 years ago* adm_proto.h (krb5_adm_connect): Declare prompt string const char
Ezra Peisach [Mon, 26 Feb 2001 18:23:34 +0000 (18:23 +0000)]
* adm_proto.h (krb5_adm_connect): Declare prompt string const char

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

23 years ago * kpasswd.c, tty_kpasswd.c, xm_kpasswd.c: Compiler warning
Ezra Peisach [Mon, 26 Feb 2001 18:22:08 +0000 (18:22 +0000)]
* kpasswd.c, tty_kpasswd.c, xm_kpasswd.c: Compiler warning
  clenups. Use const when apropriate, remove assignments in
  conditionals, remove unnecessary casts.

* kpasswd.h: New file with prototypes of functions used in
  different files.

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

23 years agonote that file is unused
Ken Raeburn [Mon, 19 Feb 2001 20:14:51 +0000 (20:14 +0000)]
note that file is unused

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

23 years ago * kadm_rpc_svc.c, server_stubs.c: Rename all server side dispatch
Ezra Peisach [Sun, 18 Feb 2001 23:00:37 +0000 (23:00 +0000)]
* kadm_rpc_svc.c, server_stubs.c: Rename all server side dispatch
        routines to end in _svc so as to not conflict with prototypes of
        client side handlers.

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

23 years ago * server_internal.h: Add prototype for
Ezra Peisach [Sun, 18 Feb 2001 23:00:08 +0000 (23:00 +0000)]
* server_internal.h: Add prototype for
        krb5_free_key_data_contents() which really should be in libkdb.

* kadm_rpc_xdr.c: Include krb5/admin_xdr.h for prototypes.

* kadm_rpc.h: Add prototypes for client and server stub
        functions. Server functions renamed to have _svc appended.

* alt_prof.c: Clean up warnings. Do not shadow index() with local
        variable.

* admin_xdr.h: Add prototypes for xdr_nulltype(), xdr_krb5_ui_4(),
        xdr_krb5_int16(), xdr_krb5_key_data_nocontents(),
        xdr_krb5_key_salt_tuple(), xdr_krb5_tl_data(),
        xdr_kadm5_principal_ent_rec_v1(), xdr_cprinc3_arg(),
        xdr_generic_ret(0, xdr_chpass3_arg(), xdr_setv4key_arg(),
        xdr_setkey_arg(), xdr_setkey3_arg(), xdr_chrand3_arg(),
        xdr_gprincs_arg(), xdr_grpincs_ret(), xdr_gpols_arg(),
        xdr_gpols_ret(), xdr_getprivs_ret(), xdr_krb5_salttype().

* admin_internal.h: Add prototype for _kadm5_check_handle().

* admin.h: Add prototypes for kadm5_free_config_params(),
        kadm5_decrypt_key(), ovsec_kadm_free_name_list().

* adb.h: Add prototypes for xdr_osa_pw_hist_ent(),
        xdr_krb5_key_data(), osa_adb_rename_db(),
        osa_adb_rename_policy_db().

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

23 years ago * adb_openclose.c, adb_policy.c, server_acl.c, server_dict.c,
Ezra Peisach [Sun, 18 Feb 2001 22:59:30 +0000 (22:59 +0000)]
* adb_openclose.c, adb_policy.c, server_acl.c, server_dict.c,
        server_init.c, server_kdb.c, server_misc.c, svr_iters.c,
        svr_principal.c: Cleanup assignments in conditionals, variables
        sadowing one another, unused variables and declared some functions
        as static.

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

23 years ago * client_rpc.c: Insure pointer argument type is same as passed
Ezra Peisach [Sun, 18 Feb 2001 22:58:36 +0000 (22:58 +0000)]
* client_rpc.c: Insure pointer argument type is same as passed
        onto xdr functions. (arguments specified to *3_1 functions were
        for the *_1 functions).

* client_init.c, client_principal.c, clnt_policy.c: Cleanup unused
        variables and assignments in conditionals.

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

23 years ago * xdr.h: Flush out prototypes for xdrmem_create(),
Ezra Peisach [Sun, 18 Feb 2001 22:56:00 +0000 (22:56 +0000)]
* xdr.h: Flush out prototypes for xdrmem_create(),
        xdrstdio_create(), xdrrec_create(), xdralloc_create(),
        xdralloc_release(), xdrrec_endofrecord(), xdrrec_skiprecord(),
        xdrrec_eof(), xdralloc_getdata(). Add prototype for
        gssrpc_xdr_fre().

* xdr.c: Argument to gssrpc_xdr_free(0 changed from char * to void
        *. xdr_u_char() changed to take unsigned char * instead of char *.

* auth_unix.c: Include unistd.h and string.h for
        prototypes. Declare marshal_new_auth() as static void instead of
        static bool_t based on usage.

* auth.h, svc_auth.h: Provide full prototypes for a number of
        functions.

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

23 years ago * trval.c: Add prototypes for trval() and trval2()
Ezra Peisach [Sun, 18 Feb 2001 20:34:15 +0000 (20:34 +0000)]
 * trval.c: Add prototypes for trval() and trval2()

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

23 years ago* Makefile.in: Add $(datadir) to INSTALLMKDIRS for util/et
Ezra Peisach [Fri, 16 Feb 2001 21:26:13 +0000 (21:26 +0000)]
* Makefile.in: Add $(datadir) to INSTALLMKDIRS for util/et

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

23 years ago * t_deltat.c (main): Test of overflow and underflow of krb5_int32
Ezra Peisach [Fri, 16 Feb 2001 20:16:02 +0000 (20:16 +0000)]
* t_deltat.c (main): Test of overflow and underflow of krb5_int32

* x-deltat.y: Test for over/underflow of krb5_int32 for a
krb5_deltat. Return EINVAL. [krb5-libs/922]

* deltat.c: Regenerated from x-deltat.y

* str_conv.c (krb5_string_to_timestamp): Do not accept a time
format that only partially matches the input string. [krb5-lib/922]

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

23 years ago * loadv4.c: Remove references to KRB_NEVERDATE
Tom Yu [Fri, 9 Feb 2001 07:01:53 +0000 (07:01 +0000)]
* loadv4.c: Remove references to KRB_NEVERDATE

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

23 years ago * kerberos_v4.c (kerberos_v4): Remove references to
Tom Yu [Fri, 9 Feb 2001 07:01:38 +0000 (07:01 +0000)]
* kerberos_v4.c (kerberos_v4): Remove references to
KRB_NEVERDATE.

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

23 years ago * kdb5_util.M: Fix some formatting nits and document new flags
Tom Yu [Tue, 6 Feb 2001 01:43:57 +0000 (01:43 +0000)]
* kdb5_util.M: Fix some formatting nits and document new flags
controlling dump formats.

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

23 years ago * cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free;
Tom Yu [Mon, 5 Feb 2001 23:11:49 +0000 (23:11 +0000)]
* cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free;
caller should free v5tkt.

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

23 years ago * prompter.c (krb5_prompter_posix): Fix up terminal modes if we're
Tom Yu [Mon, 5 Feb 2001 22:01:23 +0000 (22:01 +0000)]
* prompter.c (krb5_prompter_posix): Fix up terminal modes if we're
interrupted. [reported by Booker Bense]

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

23 years ago * krb5.conf: Test with trailing whitespace on "default_realm"
Tom Yu [Fri, 2 Feb 2001 22:49:33 +0000 (22:49 +0000)]
* krb5.conf: Test with trailing whitespace on "default_realm"
line.

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

23 years ago * preauth.c (krb5_obtain_padata): Don't dereference a NULL pointer
Tom Yu [Tue, 30 Jan 2001 22:40:54 +0000 (22:40 +0000)]
* preauth.c (krb5_obtain_padata): Don't dereference a NULL pointer
if we receive an empty ETYPE_INFO preauth. [krb5-libs/903 from
craziboy77@hotmail.com]

* preauth2.c (krb5_do_preauth): Don't dereference a NULL pointer
if we receive an empty ETYPE_INFO preauth. [krb5-libs/903 from
craziboy77@hotmail.com]

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

23 years ago * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Free
Ezra Peisach [Tue, 30 Jan 2001 20:55:48 +0000 (20:55 +0000)]
* rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Free
krb5_keytab_entry if call to krb5_decrypt_tkt_part()
fails. [krb5-libs/855 reported by guy@packeteer.com]

Pullup from krb5-1-2

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

23 years ago * sclient.c (main): Do not free auth_context unless
Ezra Peisach [Tue, 30 Jan 2001 20:28:06 +0000 (20:28 +0000)]
* sclient.c (main): Do not free auth_context unless
set. (krb5-appl/895 from tim.mann@compaq.com)

Pull up from 1-2 branch.

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

23 years ago* kpropd.c (load_database): Initialize save_stderr variable
Ken Raeburn [Tue, 30 Jan 2001 18:20:45 +0000 (18:20 +0000)]
* kpropd.c (load_database): Initialize save_stderr variable

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

23 years ago* make_checksum.c (krb5_c_make_checksum): Clear checksum contents pointer after
Ken Raeburn [Tue, 30 Jan 2001 04:23:56 +0000 (04:23 +0000)]
* make_checksum.c (krb5_c_make_checksum): Clear checksum contents pointer after
freeing it in error case.

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

23 years ago * krb.h: Remove KRB_NEVERDATE
Tom Yu [Tue, 30 Jan 2001 04:14:13 +0000 (04:14 +0000)]
* krb.h: Remove KRB_NEVERDATE

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

23 years ago* kprop.h (KPROP_CKSUMTYPE): Delete unused macro
Ken Raeburn [Tue, 30 Jan 2001 04:11:18 +0000 (04:11 +0000)]
* kprop.h (KPROP_CKSUMTYPE): Delete unused macro

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

23 years ago * lifetime.c: Remove support for "magic" lifetime value of 255
Tom Yu [Tue, 30 Jan 2001 02:58:43 +0000 (02:58 +0000)]
* lifetime.c: Remove support for "magic" lifetime value of 255

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

23 years ago * Makefile.in: Remove rule for aix.bincmds; we don't need it
Tom Yu [Mon, 29 Jan 2001 00:07:27 +0000 (00:07 +0000)]
* Makefile.in: Remove rule for aix.bincmds; we don't need it
anymore.

* makeshlib.sh: Use the linker flag -berok so that unresolved
symbols don't turn into link-time errors for building shared libs
on AIX.

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

23 years ago * shlib.conf: We don't need aix.bincmds anymore for AIX. Use the
Tom Yu [Mon, 29 Jan 2001 00:05:38 +0000 (00:05 +0000)]
* shlib.conf: We don't need aix.bincmds anymore for AIX.  Use the
-blibpath flag instead.

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

23 years ago * aclocal.m4 (KRB5_LIB_AUX): Smash some shared lib file extensions
Tom Yu [Mon, 29 Jan 2001 00:04:18 +0000 (00:04 +0000)]
* aclocal.m4 (KRB5_LIB_AUX): Smash some shared lib file extensions
so that AIX doesn't break, since static and shared libs are
mutually exclusive on AIX.

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

23 years ago * dest_tkt.c: Clean up uid handling. Fix stat checks
Tom Yu [Sat, 27 Jan 2001 04:41:32 +0000 (04:41 +0000)]
* dest_tkt.c: Clean up uid handling.  Fix stat checks

* in_tkt.c: Clean up uid handling.  Fix stat checks.

* tf_util.c: Clean up uid handling.  Fix stat checks.

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

23 years ago * krshd.c: Get path for NOLOGIN file from paths.h if present,
Tom Yu [Fri, 26 Jan 2001 22:54:40 +0000 (22:54 +0000)]
* krshd.c: Get path for NOLOGIN file from paths.h if present,
mirroring logic in login.c.  [patch from David MacKenzie
krb5-appl/913]

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

23 years ago * Makefile.in (OBJS, SRCS): Add prot_client.o, prot_client.c
Tom Yu [Fri, 26 Jan 2001 04:21:52 +0000 (04:21 +0000)]
* Makefile.in (OBJS, SRCS): Add prot_client.o, prot_client.c

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

23 years ago * prot_client.c: New file; client-side protocol support
Tom Yu [Fri, 26 Jan 2001 04:20:57 +0000 (04:20 +0000)]
* prot_client.c: New file; client-side protocol support

* prot_common.c (krb4prot_decode_header): Decode the first two
bytes of a krb4 packet.

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

23 years ago * prot.h: Add new prototypes for prot_client.c stuff. Also, add
Tom Yu [Fri, 26 Jan 2001 04:20:07 +0000 (04:20 +0000)]
* prot.h: Add new prototypes for prot_client.c stuff.  Also, add
new prototype for decode_header().

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

23 years ago * state.c (envvarok): Disallow LC_* and NLSPATH
Tom Yu [Fri, 26 Jan 2001 01:19:04 +0000 (01:19 +0000)]
* state.c (envvarok): Disallow LC_* and NLSPATH

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

23 years agomore afsstring2key unterminated-input checks & fixes
Ken Raeburn [Thu, 25 Jan 2001 23:52:14 +0000 (23:52 +0000)]
more afsstring2key unterminated-input checks & fixes

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

23 years ago* t_afss2k.c: Extend test cases to cover situation where krb5_data refers to
Ken Raeburn [Thu, 25 Jan 2001 21:12:55 +0000 (21:12 +0000)]
* t_afss2k.c: Extend test cases to cover situation where krb5_data refers to
strings that are not nul-terminated.  Reorder functions to avoid inlining, to
keep debugging easier.
* afsstring2key.c (mit_afs_string_to_key): Don't depend on nul-termination of
input strings.

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

23 years ago * prot_common.c: Fix up some error returns
Tom Yu [Wed, 24 Jan 2001 05:19:45 +0000 (05:19 +0000)]
* prot_common.c: Fix up some error returns

* prot_kdc.c: Fix up some error returns.  Add
decode_kdc_request().

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

23 years ago * prot.h: Add prototype for decode_kdc_request() and some rough
Tom Yu [Wed, 24 Jan 2001 05:15:21 +0000 (05:15 +0000)]
* prot.h: Add prototype for decode_kdc_request() and some rough
starting points for KRB4PROT_* error codes.

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

23 years ago* stringtokey.c (kerberos): Now const.
Ken Raeburn [Wed, 24 Jan 2001 04:59:07 +0000 (04:59 +0000)]
* stringtokey.c (kerberos): Now const.
(krb5_dk_string_to_key): Cast it to non-const.

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

23 years ago * forward.c (rd_and_store_for_creds): Overwrite any existing value
Tom Yu [Wed, 24 Jan 2001 04:22:43 +0000 (04:22 +0000)]
* forward.c (rd_and_store_for_creds): Overwrite any existing value
of the KRB5CCNAME environment variable.

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

23 years ago * rc_io.c (getdir): Subtract one from dirlen, since sizeof
Tom Yu [Wed, 24 Jan 2001 02:18:20 +0000 (02:18 +0000)]
* rc_io.c (getdir): Subtract one from dirlen, since sizeof
includes the terminating NUL character.  Avoid redundant path
separators.
(krb5_rc_io_move): When renaming OLD to NEW, don't copy the
filename.  This was causing temporary files to get leaked.
(krb5_rc_io_close): Don't FREE if d->fn is NULL.

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

23 years agodocument recent large number of changes
Tom Yu [Tue, 23 Jan 2001 05:52:43 +0000 (05:52 +0000)]
document recent large number of changes

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

23 years ago* cr_ciph.c: Include prot.h. KRB4_PUT32 -> KRB4_PUT32BE.
Tom Yu [Tue, 23 Jan 2001 05:52:15 +0000 (05:52 +0000)]
* cr_ciph.c: Include prot.h.  KRB4_PUT32 -> KRB4_PUT32BE.
[missed one]

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

23 years ago * prot_common.c: New file; contains functions to encode/decode
Tom Yu [Tue, 23 Jan 2001 05:48:06 +0000 (05:48 +0000)]
* prot_common.c: New file; contains functions to encode/decode
string triples for principals.

* prot_kdc.c: New file; contains encoders and decoders
(eventually) for the KDC's use.

* Makefile.in (OBJS, SRCS): Add prot_common.o, prot_kdc.o.

* cr_auth_repl.c: KRB4_PUT{16,32} -> KRB4_PUT{16,32}BE.

* cr_ciph.c: Include prot.h.  KRB4_PUT32 -> KRB4_PUT32BE.

* cr_err_repl.c: KRB4_PUT32 -> KRB4_PUT32BE.

* cr_tkt.c: KRB4_PUT32 -> KRB4_PUT32BE.

* decomp_tkt.c: krb_strnlen -> krb4int_strnlen.

* g_ad_tkt.c: krb_strnlen -> krb4int_strnlen.  KRB4_PUT32 ->
KRB4_PUT32BE.  Properly skip date while parsing error.

* g_in_tkt.c: krb_strnlen -> krb4int_strnlen.  KRB4_PUT32 ->
KRB4_PUT32BE.  Properly skip date while parsing error.

* g_phost.c: Changes from audit.  Actually bail out instead of
failing silently if h->h_name is too long.

* kname_parse.c: Changes from audit.  Check overrun per character
processed.

* mk_auth.c: krb_strnlen -> krb4int_strnlen.  KRB4_PUT32 ->
KRB4_PUT32BE.  Include prot.h.

* mk_err.c: KRB4_PUT32 -> KRB4_PUT32BE.

* mk_priv.c: KRB4_PUT32 -> KRB4_PUT32BE.

* mk_req.c: KRB4_PUT32 -> KRB4_PUT32BE.

* mk_safe.c: KRB4_PUT32 -> KRB4_PUT32BE.

* rd_req.c: krb_strnlen -> krb4int_strnlen.

* strnlen.c: Rename to krb4int_strnlen.  Also include prot.h,
which is where strnlen is declared now.

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

23 years ago * krb.h: Remove internal prototypes and macros
Tom Yu [Tue, 23 Jan 2001 05:39:27 +0000 (05:39 +0000)]
* krb.h: Remove internal prototypes and macros

* prot.h: Put internal prototypes and macros here.  Make
KRB4_PUT{16,32} into little-endian and big-endian versions
thereof, with the original names getting an extra arg to determine
endianness of encoding.

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

23 years ago* krb5_32.def: Add krb5_rc_close() so gssapi builds
Danilo Almeida [Mon, 22 Jan 2001 21:42:03 +0000 (21:42 +0000)]
* krb5_32.def: Add krb5_rc_close() so gssapi builds

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

23 years agomissed a variable that should've been made const
Ken Raeburn [Sun, 21 Jan 2001 01:27:53 +0000 (01:27 +0000)]
missed a variable that should've been made const

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

23 years agoadd mit copyright
Ken Raeburn [Sun, 21 Jan 2001 01:15:56 +0000 (01:15 +0000)]
add mit copyright

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

23 years agofix year for last change
Ken Raeburn [Sun, 21 Jan 2001 01:07:12 +0000 (01:07 +0000)]
fix year for last change

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

23 years agomake afs string2key thread-safe
Ken Raeburn [Sat, 20 Jan 2001 13:17:32 +0000 (13:17 +0000)]
make afs string2key thread-safe

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

23 years agoadd some comments
Ken Raeburn [Sat, 20 Jan 2001 13:10:34 +0000 (13:10 +0000)]
add some comments

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