krb5.git
23 years ago * aclocal.m4 (WITH_CC): Reorganize test: Do not use cache variable
Ezra Peisach [Wed, 11 Apr 2001 21:01:09 +0000 (21:01 +0000)]
* aclocal.m4 (WITH_CC): Reorganize test: Do not use cache variable
that conflicts with an autoconf internal variable (prefix with
krb5_ instead of ac_). Ensure that the first time AC_PROG_CC is
invoked, is not within a conditional cache block. Autoconf 2.49
only include the compiler test code once in the configure script
instead of everytime it is seen.

aclocal now works with autoconf-2.49d... (as well as earlier versions)

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

23 years agosome stuff to be fixed in des code
Ken Raeburn [Tue, 10 Apr 2001 08:54:13 +0000 (08:54 +0000)]
some stuff to be fixed in des code

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

23 years agomore casting cleanup
Ken Raeburn [Tue, 10 Apr 2001 08:52:35 +0000 (08:52 +0000)]
more casting cleanup

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

23 years agofix/add casts as needed
Ken Raeburn [Tue, 10 Apr 2001 08:39:54 +0000 (08:39 +0000)]
fix/add casts as needed

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

23 years agomore cleanup - add const, reduce casting
Ken Raeburn [Tue, 10 Apr 2001 08:31:43 +0000 (08:31 +0000)]
more cleanup - add const, reduce casting

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

23 years agostuff to still address
Ken Raeburn [Tue, 10 Apr 2001 07:57:03 +0000 (07:57 +0000)]
stuff to still address

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

23 years agoremove some outdated comments
Ken Raeburn [Tue, 10 Apr 2001 07:49:14 +0000 (07:49 +0000)]
remove some outdated comments

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

23 years agouse const for some des inputs and reduce unnecessary casts
Ken Raeburn [Tue, 10 Apr 2001 07:40:02 +0000 (07:40 +0000)]
use const for some des inputs and reduce unnecessary casts

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

23 years ago* krb.h: Don't use "index" as argument name
Ken Raeburn [Tue, 10 Apr 2001 07:38:00 +0000 (07:38 +0000)]
* krb.h: Don't use "index" as argument name

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

23 years agouse const for some inputs (when practical) without changing api
Ken Raeburn [Tue, 10 Apr 2001 07:35:55 +0000 (07:35 +0000)]
use const for some inputs (when practical) without changing api

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

23 years ago* cr_err_repl.c (req_act_vno): Delete commented-out declaration
Ken Raeburn [Tue, 10 Apr 2001 06:29:56 +0000 (06:29 +0000)]
* cr_err_repl.c (req_act_vno): Delete commented-out declaration

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

23 years agomake prototypes unconditional
Ken Raeburn [Tue, 10 Apr 2001 06:27:01 +0000 (06:27 +0000)]
make prototypes unconditional

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

23 years ago* do_as_req.c, do_tgs_req.c, kdc_preauth.c, kdc_util.h, kerberos_v4.c, main.c,
Ken Raeburn [Tue, 10 Apr 2001 06:23:30 +0000 (06:23 +0000)]
* do_as_req.c, do_tgs_req.c, kdc_preauth.c, kdc_util.h, kerberos_v4.c, main.c,
policy.h: Don't use macros PROTOTYPE or KRB5_PROTOTYPE.
* kerberos_v4.c (req_act_vno): Delete variable definition.
(kerberos_v4): Don't set it.

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

23 years ago* kparse.c, send_to_kdc.c: Don't use macro PROTOTYPE
Ken Raeburn [Tue, 10 Apr 2001 06:01:59 +0000 (06:01 +0000)]
* kparse.c, send_to_kdc.c: Don't use macro PROTOTYPE

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

23 years ago* kparse.h: Don't use PROTOTYPE macro
Ken Raeburn [Tue, 10 Apr 2001 05:58:00 +0000 (05:58 +0000)]
* kparse.h: Don't use PROTOTYPE macro

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

23 years agofix pathname in comment
Ken Raeburn [Tue, 10 Apr 2001 05:06:34 +0000 (05:06 +0000)]
fix pathname in comment

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

23 years ago* des.h (des_cblock, des_key_schedule): Separate definitions into a block with
Ken Raeburn [Tue, 10 Apr 2001 05:06:19 +0000 (05:06 +0000)]
* des.h (des_cblock, des_key_schedule): Separate definitions into a block with
a comment indicating lib/crypto/des/des_int.h needs to be kept in sync.  Use
macro KRB5INT_DES_TYPES_DEFINED to avoid duplication.

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

23 years ago* des_int.h: Don't use PROTOTYPE macro.
Ken Raeburn [Tue, 10 Apr 2001 05:03:55 +0000 (05:03 +0000)]
* des_int.h: Don't use PROTOTYPE macro.
(des_cblock, des_key_schedule): Duplicate definitions here and in
kerberosIV/des.h, using macro KRB5INT_DES_TYPES_DEFINED to avoid duplication.
(mit_des_cblock, mit_des_key_schedule): Define in terms of the other types for
now.
(PROTOTYPE): Don't define.

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

23 years agoafsstring2key.c, destest.c: Don't use PROTOTYPE macro
Ken Raeburn [Tue, 10 Apr 2001 05:00:54 +0000 (05:00 +0000)]
afsstring2key.c, destest.c: Don't use PROTOTYPE macro

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

23 years agocleanup
Ken Raeburn [Tue, 10 Apr 2001 04:04:09 +0000 (04:04 +0000)]
cleanup

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

23 years ago* des.h: Include stdio.h.
Ken Raeburn [Tue, 10 Apr 2001 04:00:09 +0000 (04:00 +0000)]
* des.h: Include stdio.h.
(PROTOTYPE): Delete macro.  Make all function prototypes unconditional.
(des_ecb_encrypt, des_fixup_key_parity, des_check_key_parity,
des_new_random_key, des_init_random_number_generator, des_random_key,
des_is_weak_key, des_cblock_print_file): Add prototypes.
(des_cbc_cksum, des_cbc_encrypt, des_read_password) [KRB5_GENERAL__]: Add
prototypes.

* krb.h: Make all function prototypes unconditional, don't use PROTOTYPE macro.

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

23 years agonew test case for pcbc encryption
Ken Raeburn [Tue, 10 Apr 2001 03:33:11 +0000 (03:33 +0000)]
new test case for pcbc encryption

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

23 years ago* pcbc_encrypt.c (des_pcbc_encrypt): Initialize plainl and plainr to keep
Ken Raeburn [Tue, 10 Apr 2001 03:32:34 +0000 (03:32 +0000)]
* pcbc_encrypt.c (des_pcbc_encrypt): Initialize plainl and plainr to keep
compiler happy.

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

23 years ago* des425.h: Deleted to avoid confusion with the other des.h in the tree. All
Ken Raeburn [Tue, 10 Apr 2001 02:47:42 +0000 (02:47 +0000)]
* des425.h: Deleted to avoid confusion with the other des.h in the tree.  All
files changed to include des_int.h and (the other) des.h instead.
* new_rnd_key.c (des_init_random_number_generator): Cast seed data pointer to
keep compiler happy.
* read_passwd.c (intr_routine, des_read_pw_string): Add prototypes.
(des_read_password): Fix call sequence for des_string_to_key.
* str_to_key.c (des_string_to_key): Remove static storage in favor of automatic
storage.  Fix call sequence to des_key_sched.  Delete no-op while loop.
* t_quad.c (main): Fix call sequence for des_quad_cksum.
* verify.c (des_string_to_key, des_key_sched, des_ecb_encrypt,
des_cbc_encrypt): Removed declarations.
(do_encrypt, do_decrypt): Prototype.  Make args point to unsigned char, and
return types void.
(main): Declare return type.  Make automatic var in_length be unsigned long;
discard some casts, but cast it when passing to memcmp.  Remove extra arg
passed to des_cbc_cksum.
(flip): Delete unused function.

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

23 years agorename des.h -> des425.h
Ken Raeburn [Tue, 10 Apr 2001 01:11:52 +0000 (01:11 +0000)]
rename des.h -> des425.h

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

23 years ago* quad_cksum.c (des_quad_cksum): Add comments. Force 32-bit arithmetic just to be...
Ken Raeburn [Tue, 10 Apr 2001 00:47:01 +0000 (00:47 +0000)]
* quad_cksum.c (des_quad_cksum): Add comments.  Force 32-bit arithmetic just to be careful

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

23 years agoadd quad_cksum test case
Ken Raeburn [Sat, 7 Apr 2001 04:45:22 +0000 (04:45 +0000)]
add quad_cksum test case

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

23 years ago * mkrel: When generating multiple tarballs, also generate a
Tom Yu [Fri, 6 Apr 2001 02:05:14 +0000 (02:05 +0000)]
* mkrel: When generating multiple tarballs, also generate a
consolidated tarball.  Default to making a single
tarball. [pullups from krb5-1-2-2-branch]

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

23 years ago* kinit.c (k4_kinit): Use ANSI C-style string continuation
Danilo Almeida [Thu, 5 Apr 2001 20:06:48 +0000 (20:06 +0000)]
* kinit.c (k4_kinit): Use ANSI C-style string continuation

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

23 years ago * mk_safe.c (krb5_mk_safe): Only use safe_cksumtype from the
Tom Yu [Thu, 5 Apr 2001 00:29:16 +0000 (00:29 +0000)]
* mk_safe.c (krb5_mk_safe): Only use safe_cksumtype from the
auth_context (derived from the config file or hardcoded default)
if it's suitable for the enctype of the key we're going to
use. [pullup from krb5-1-2-2-branch]

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

23 years ago * krb5.conf.M: Update description of safe_checksum_type for recent
Tom Yu [Wed, 4 Apr 2001 22:31:31 +0000 (22:31 +0000)]
* krb5.conf.M: Update description of safe_checksum_type for recent
changes. [pullup from krb5-1-2-2-branch]

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

23 years ago * setenv.c: Add conditionals for compilation of setenv, unsetenv,
Tom Yu [Wed, 4 Apr 2001 02:31:56 +0000 (02:31 +0000)]
* 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@13142 dc483132-0cff-0310-8789-dd5450dbe970

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