krb5.git
24 years ago* in_tkt.c: Add krb_in_tkt() function to initialize ticket for a
Danilo Almeida [Wed, 19 Jul 2000 15:59:36 +0000 (15:59 +0000)]
* in_tkt.c: Add krb_in_tkt() function to initialize ticket for a
given principal.  It is like in_tkt() but it is public and also
takes a realm for credentials caches that require a full
principal name (e.g., CCAPI).

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

24 years ago * locate_kdc.c, hst_realm.c, def_realm.c, changepw.c: Include
Ezra Peisach [Tue, 18 Jul 2000 14:38:33 +0000 (14:38 +0000)]
* locate_kdc.c, hst_realm.c, def_realm.c, changepw.c: Include
os-proto.h for internal prototypes.

* os-proto.h: Prototypes for _krb5_use_dns_realm(),
_krb5_use_dns_kdc(), _krb5_conf_boolean().

* t_std_conf.c: Include k5-int.h for internal function prototypes.

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

24 years ago * vfy_increds.c: include int-proto.h for krb5_libdefault_boolean
Ezra Peisach [Tue, 18 Jul 2000 14:33:51 +0000 (14:33 +0000)]
* vfy_increds.c: include int-proto.h for krb5_libdefault_boolean
prototype.

* t_ser.c (ser_eblock_test): ifdef out old eblock serialization
test which is no longer called. (see 1999-09-01 ChangeLog)

* t_kerb.c: Cast argument to fprintf to long to agree with format
string.

* t_deltat.c: If MIN is defined, undef before redefined as 60.

* str_conv.c: Provide strptime prototype if the system header
files fail to provide a prototype.

* int-proto.h:  Add prototype for krb5_libdefault_boolean()

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

24 years ago * k5-int.h: Move prototypes for krb5 only internal functions
Ezra Peisach [Tue, 18 Jul 2000 14:25:17 +0000 (14:25 +0000)]
* k5-int.h: Move prototypes for krb5 only internal functions
krb5_libdefault_boolean, _krb5_use_dns_realm, _krb5_use_dns_kdc,
_krb5_conf_boolean to the header files in the lib/krb5/{os,krb}
directories.

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

24 years ago * krcp.c: Provide format attribute for error() for versions of gcc
Ezra Peisach [Tue, 18 Jul 2000 14:21:41 +0000 (14:21 +0000)]
* krcp.c: Provide format attribute for error() for versions of gcc
that support it.

* configure.in (LOGINLIBS): Test for crypt() in crypt library only
modifies LOGINLIBS.

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

24 years ago* cc_memory.c (mcc_head): Now static
Ken Raeburn [Fri, 14 Jul 2000 23:38:12 +0000 (23:38 +0000)]
* cc_memory.c (mcc_head): Now static

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

24 years agomissed a stray #endif
Ken Raeburn [Fri, 14 Jul 2000 23:23:42 +0000 (23:23 +0000)]
missed a stray #endif

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

24 years agomerge duplicate copyright notices; eliminate #if 0 code
Ken Raeburn [Fri, 14 Jul 2000 23:21:14 +0000 (23:21 +0000)]
merge duplicate copyright notices; eliminate #if 0 code

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

24 years agoEliminate duplicated copyright messages, and most "former file foo.c" markers
Ken Raeburn [Fri, 14 Jul 2000 23:08:05 +0000 (23:08 +0000)]
Eliminate duplicated copyright messages, and most "former file foo.c" markers

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

24 years agokeep scc.h too
Ken Raeburn [Fri, 14 Jul 2000 22:59:25 +0000 (22:59 +0000)]
keep scc.h too

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

24 years agoDelete subdirectories we aren't compiling any more.
Ken Raeburn [Fri, 14 Jul 2000 22:47:27 +0000 (22:47 +0000)]
Delete subdirectories we aren't compiling any more.
Rescued contents of "README", "todo", and test cases.
Test cases aren't actually used at present; this should be fixed, but
they'll probably need some work.

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

24 years agolog for ccache changes
Ken Raeburn [Fri, 14 Jul 2000 22:35:56 +0000 (22:35 +0000)]
log for ccache changes

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

24 years agofix typo in comment
Ken Raeburn [Fri, 14 Jul 2000 22:35:27 +0000 (22:35 +0000)]
fix typo in comment

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

24 years agoCollapse ccache implementations file, stdio, memory into single files.
Ken Raeburn [Fri, 14 Jul 2000 22:33:59 +0000 (22:33 +0000)]
Collapse ccache implementations file, stdio, memory into single files.
(Old files not removed yet.)
Add a new file for krb5_cc_* dispatch functions that are no longer macros.

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

24 years ago* krb5.hin (krb5_cc_*): Replace macro definitions with function declarations.
Ken Raeburn [Fri, 14 Jul 2000 22:15:28 +0000 (22:15 +0000)]
* krb5.hin (krb5_cc_*): Replace macro definitions with function declarations.
(struct _krb5_ccache, struct _krb5_cc_ops): Declare only; move definitions...
* k5-int.h: To here.

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

24 years ago* aclocal.m4 (KRB5_LIB_PARAMS): Moved bulk of the work into config/shlib.conf.
Ken Raeburn [Fri, 14 Jul 2000 22:04:39 +0000 (22:04 +0000)]
* aclocal.m4 (KRB5_LIB_PARAMS): Moved bulk of the work into config/shlib.conf.
(K5_AC_CHECK_FILES): Require AC_PROG_CC be run first.
(WITH_CC): If we're using gcc, enable a bunch of warning options.

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

24 years ago* shlib.conf: New file, taken from KRB5_LIB_PARAMS in ../aclocal.m4
Ken Raeburn [Fri, 14 Jul 2000 22:04:12 +0000 (22:04 +0000)]
* shlib.conf: New file, taken from KRB5_LIB_PARAMS in ../aclocal.m4

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

24 years ago * coding-style: Update after some discussion. Add sections
Tom Yu [Thu, 13 Jul 2000 00:55:24 +0000 (00:55 +0000)]
* coding-style: Update after some discussion.  Add sections
comparing to BSD KNF and GNU coding standards.

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

24 years ago * coding-style: Some minor tweaks. Require do-while to always be
Tom Yu [Wed, 12 Jul 2000 02:38:04 +0000 (02:38 +0000)]
* coding-style: Some minor tweaks.  Require do-while to always be
braced.  Note some aspects of function pointer and array pointer
usage.  Elaborate on function declaration practices.  Add
placeholders for sections on Makefiles and test suites.

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

24 years ago * coding-style: Another pass. Add secion on namespaces.
Tom Yu [Mon, 10 Jul 2000 20:34:47 +0000 (20:34 +0000)]
* coding-style: Another pass.  Add secion on namespaces.
Elaborate some on null pointers.

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

24 years ago * coding-style: First pass draft of coding standards
Tom Yu [Mon, 10 Jul 2000 05:18:26 +0000 (05:18 +0000)]
* coding-style: First pass draft of coding standards

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

24 years ago* dump.c: Various message char arrays turned into macros, to permit gcc to
Ken Raeburn [Wed, 5 Jul 2000 22:18:29 +0000 (22:18 +0000)]
* dump.c: Various message char arrays turned into macros, to permit gcc to
verify format strings and arguments match.
(k5beta6_dump_header, k5beta7_dump_header): Deleted.
(dump_ov_princ): Use %lx for aux_attributes.

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

24 years ago * rsh.exp: Drain buffers on klist test to avoid wedging rsh on
Tom Yu [Wed, 5 Jul 2000 00:57:42 +0000 (00:57 +0000)]
* rsh.exp: Drain buffers on klist test to avoid wedging rsh on
exit under HP/UX.

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

24 years ago * test/dbtest.c: Cleanup gcc -Wall complaints with printf format
Ezra Peisach [Tue, 4 Jul 2000 14:36:24 +0000 (14:36 +0000)]
   * test/dbtest.c: Cleanup gcc -Wall complaints with printf format
        strings.

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

24 years ago * encrypt_key.c, kdb_cpw.c, kdb_xdr.c: Add parenthesis about
Ezra Peisach [Tue, 4 Jul 2000 12:16:48 +0000 (12:16 +0000)]
    * encrypt_key.c, kdb_cpw.c, kdb_xdr.c: Add parenthesis about
        assignment in conditional and remove unused variables.

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

24 years ago * gssapi.exp: Rework significantly to deal with HP/UX lossage that
Tom Yu [Tue, 4 Jul 2000 10:59:27 +0000 (10:59 +0000)]
* gssapi.exp: Rework significantly to deal with HP/UX lossage that
probably resulted from when either the client or the server wound
up blocking on tty output.  Abstract things a little more.  Remove
dead duplicate code that used to deal with "-v2".  Should figure
out why the "-v2" stuff disappeared mysteriously.

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

24 years ago * cr_tkt.c: Frob prototypes so they don't involve narrow types
Tom Yu [Tue, 4 Jul 2000 01:19:12 +0000 (01:19 +0000)]
* cr_tkt.c: Frob prototypes so they don't involve narrow types

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

24 years ago * krb.h: Add prototypes for get_pw_tkt() and unix_time_gmt_unixsec()
Ezra Peisach [Mon, 3 Jul 2000 16:41:07 +0000 (16:41 +0000)]
   * krb.h: Add prototypes for get_pw_tkt() and unix_time_gmt_unixsec()

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

24 years ago * k5-int.h: Add prototypes for krb5_libdefault_boolean,
Ezra Peisach [Mon, 3 Jul 2000 16:37:59 +0000 (16:37 +0000)]
    * k5-int.h: Add prototypes for krb5_libdefault_boolean,
        _krb5_use_dns_realm, _krb5_use_dns_kdc, _krb5_conf_boolean.

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

24 years agoadmin.h: Add kadm5_free_name_list prototype
Ezra Peisach [Mon, 3 Jul 2000 16:32:36 +0000 (16:32 +0000)]
admin.h: Add kadm5_free_name_list prototype

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

24 years agoAdded prototype for ss_create_invocation()
Ezra Peisach [Mon, 3 Jul 2000 15:16:39 +0000 (15:16 +0000)]
Added prototype for ss_create_invocation()

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

24 years ago * Makefile.in (ktutil): Do not link with the V4
Ezra Peisach [Mon, 3 Jul 2000 15:09:35 +0000 (15:09 +0000)]
* Makefile.in (ktutil): Do not link with the V4
libraries. Although the program can write out a v4 srvtab, the one
necessary function is here.

* ktutil_funcs.c (ktutil_read_keytab): Add explicit braces to
avoid ambiguous `else'.
(getstr): register count -> register int count

* ktutil.c (main): ss_listen() takes only one argument.

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

24 years ago * ss_wrapper.c (main): ss_listen() takes only one argument
Ezra Peisach [Mon, 3 Jul 2000 15:04:27 +0000 (15:04 +0000)]
* ss_wrapper.c (main): ss_listen() takes only one argument

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

24 years ago * test_ss.c (main): Change usage of ss_listen to agree with
Ezra Peisach [Mon, 3 Jul 2000 15:02:45 +0000 (15:02 +0000)]
* test_ss.c (main): Change usage of ss_listen to agree with
prototype.

* ss.h: Add prototype for ss_listen()

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

24 years ago * Makefile.in: Remove linking of krb5util library from
Ezra Peisach [Mon, 3 Jul 2000 14:22:27 +0000 (14:22 +0000)]
* Makefile.in: Remove linking of krb5util library from
applications that never use it.

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

24 years agoMakefile.in (rtest): Link in the kdb5 library
Ezra Peisach [Mon, 3 Jul 2000 14:21:04 +0000 (14:21 +0000)]
Makefile.in (rtest): Link in the kdb5 library

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

24 years ago * pre.in: Remove the kdb5 and db libraries from the
Ezra Peisach [Mon, 3 Jul 2000 14:19:28 +0000 (14:19 +0000)]
* pre.in: Remove the kdb5 and db libraries from the
common application list but list them for server applications.

Clients in general do not depend on the database libraries. (this
improves startup time with shared libraries by not requiring
the resolve of a library that is not used.

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

24 years ago * Makefile.in: v5passwd does not depend on the kadm5
Ezra Peisach [Mon, 3 Jul 2000 14:17:00 +0000 (14:17 +0000)]
* Makefile.in: v5passwd does not depend on the kadm5
libraries. This is the older protocol.

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

24 years agoMakefile.in: kadmin4d depends on the kdb5 lib
Ezra Peisach [Mon, 3 Jul 2000 14:14:58 +0000 (14:14 +0000)]
Makefile.in: kadmin4d depends on the kdb5 lib

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

24 years ago * Makefile.in: The client library does not depend on the database
Ezra Peisach [Mon, 3 Jul 2000 14:11:47 +0000 (14:11 +0000)]
* Makefile.in: The client library does not depend on the database
library. Remove reference to it.

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

24 years ago * recno/rec_seq.c: Include unused sccsid when LIBC_SCCS defined
Ezra Peisach [Mon, 3 Jul 2000 03:43:42 +0000 (03:43 +0000)]
   * recno/rec_seq.c: Include unused sccsid when LIBC_SCCS defined

        * recno/rec_close.c (__rec_close): Explicit braces to avoid
        ambiguous `else'

        * btree/bt_split.c (bt_psplit): Parenthesis about && and ||
        conditional.

        * btree/bt_put.c (__bt_put): Extra {} to make nested if/else
        unambiguous.

        * btree/bt_open.c (__bt_open): Add parenthesis to ensure
        precedence ordering.

        * hash/dbm.c (kdb2_dbm_firstkey): Conditionalize defintion of
        variables based on use.

        * hash/hash_func.c: Ifdef out unused static hash functions.

        * hash/hash.c (init_htab): Remove unused variable.

gcc -Wall warnings.

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

24 years agot_imp_name.c: Define GSSAPI_V2 for proper variable types
Ezra Peisach [Mon, 3 Jul 2000 03:27:53 +0000 (03:27 +0000)]
t_imp_name.c: Define GSSAPI_V2 for proper variable types

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

24 years ago kdb5_mkdums.c: Remove unused variable
Ezra Peisach [Mon, 3 Jul 2000 03:25:39 +0000 (03:25 +0000)]
 kdb5_mkdums.c: Remove unused variable

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

24 years agokdb5_verify.c: Remove unused variable
Ezra Peisach [Mon, 3 Jul 2000 03:23:44 +0000 (03:23 +0000)]
kdb5_verify.c: Remove unused variable

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

24 years ago * env-setup.shin: Do not override the EXPECT environment variable
Ezra Peisach [Mon, 3 Jul 2000 03:18:30 +0000 (03:18 +0000)]
    * env-setup.shin: Do not override the EXPECT environment variable
                if set.

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

24 years agoback out format-attribute change
Ken Raeburn [Sun, 2 Jul 2000 20:52:00 +0000 (20:52 +0000)]
back out format-attribute change

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

24 years ago * default.exp: Add rudimentary support for multiple passes. For
Tom Yu [Sun, 2 Jul 2000 18:50:12 +0000 (18:50 +0000)]
* default.exp: Add rudimentary support for multiple passes.  For
now, iterate over a few combinations of des_krbtgt and assorted
enctype lists.  Will eventually allow for separate krb5.conf files
for clients and servers.  Add varibles RLOGIN and RLOGIN_FLAGS to
permit run-time configuration of rlogin program if necessary.  Set
up an onexit handler that calls stop_kerberos_daemons.  Replace
many uses of doubled-up send_log and verbose with single calls to
verbose -log.  Replace instances of send_error with perror where
appropriate, since this will cause successor test to fail, which
is usually what we want.
(setup_root_shell): Replace calls to untested with calls to
unsupported; also use note for explanatory text previously printed
using untested.  Add match string for "connection refused" and
collapse common code into a single expect clause by using the -re
flag.
(start_kerberos_daemons): Conditionalize calls to fail based on
$standalone; in the !$standalone case, call perror instead.  Calls
to fail and pass for a given test should have consistent strings,
and extraneous calls to fail should not be made in order to keep
the total number of passed and failed tests constant regardless of
success of setup steps.  Much remains to be done in this area
though.

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

24 years ago * Makefile.in (SHLIB_EXPLIBS): Use $(LIBS) not @RESOLV_LIB@ in
Tom Yu [Sat, 1 Jul 2000 15:44:17 +0000 (15:44 +0000)]
* Makefile.in (SHLIB_EXPLIBS): Use $(LIBS) not @RESOLV_LIB@ in
order to get -lnsl, -lsocket, etc. if necessary.

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

24 years ago * acconfig.h: Add function replacement renaming symbols for
Tom Yu [Sat, 1 Jul 2000 15:43:11 +0000 (15:43 +0000)]
* acconfig.h: Add function replacement renaming symbols for
util/db2/include/config.h.in.

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

24 years ago * lib.in: Fix up lib build rules to deal properly (hopefuly) with
Tom Yu [Sat, 1 Jul 2000 15:34:34 +0000 (15:34 +0000)]
* lib.in: Fix up lib build rules to deal properly (hopefuly) with
empty objlist files.

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

24 years ago * clib/strerror.c: #include config.h
Tom Yu [Sat, 1 Jul 2000 15:33:04 +0000 (15:33 +0000)]
* clib/strerror.c: #include config.h

* clib/mkstemp.c: #include config.h.

* clib/memmove.c: #include config.h.

* clib/Makefile.in (LOCALINCLUDES): Add -I../include to get
config.h.

* configure.in: Generate two config headers, one for internal use
and one for external use.  Rework clib replacement code to use
AC_DEFINE rather than ADD_DEF.

* Makefile.in (STOBJLISTS): Add clib.

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

24 years ago * db-config.h.in: New file; contains useful tidbits from
Tom Yu [Sat, 1 Jul 2000 15:32:14 +0000 (15:32 +0000)]
* db-config.h.in: New file; contains useful tidbits from
config.h.in generated by autoheader.  It is needed because
config.h.in has some thing we don't want to leak, like renaming of
missing libc functions.

* .cvsignore: Twiddle to reflect current reality.

* db-int.h: #include config.h since db.h includes db-config.h
which is not quite the same now.

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

24 years agoRun RPC tests with one invocation of DejaGnu rather than two
Ken Raeburn [Sat, 1 Jul 2000 04:52:51 +0000 (04:52 +0000)]
Run RPC tests with one invocation of DejaGnu rather than two

* Makefile.in (unit-test-body): Combine -tcp and -udp versions, setting PASS
instead of PROT.
* configure.in: Set and substitute PASS instead of UDP_TEST.
* config/unix.exp: Don't invoke rpc_test_start.  Set MULTIPASS, including a
setting for PROT and a dummy to trigger rpc_test_start invocation.
(rpc_test_start): If a server has already been started, call rpc_test_exit to
verify that it's still running.

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

24 years agopullup from 1.2.1 release
Ken Raeburn [Sat, 1 Jul 2000 03:48:01 +0000 (03:48 +0000)]
pullup from 1.2.1 release

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

24 years ago * adb.h: Add btinfo
Tom Yu [Sat, 1 Jul 2000 01:55:33 +0000 (01:55 +0000)]
* adb.h: Add btinfo

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

24 years ago * adb_openclose.c (osa_adb_create_db): Default to btree.
Tom Yu [Sat, 1 Jul 2000 01:54:25 +0000 (01:54 +0000)]
* adb_openclose.c (osa_adb_create_db): Default to btree.
(osa_adb_init_db): Set up btinfo as well.
(osa_adb_open_and_lock): Try btree, then hash.

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

24 years agopullup from 1.2-beta4
Ken Raeburn [Sat, 1 Jul 2000 01:14:04 +0000 (01:14 +0000)]
pullup from 1.2-beta4

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

24 years agopullup from 1.2-beta4
Ken Raeburn [Sat, 1 Jul 2000 00:59:57 +0000 (00:59 +0000)]
pullup from 1.2-beta4

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

24 years agopullup from 1.2-beta4
Ken Raeburn [Sat, 1 Jul 2000 00:51:58 +0000 (00:51 +0000)]
pullup from 1.2-beta4

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

24 years ago * dump.c: Add a new dump version, r1_3_version, and make it the
Tom Yu [Sat, 1 Jul 2000 00:31:06 +0000 (00:31 +0000)]
* dump.c: Add a new dump version, r1_3_version, and make it the
default; it will be used in krb5-1.3 and will permit a principal's
kadm5 data to be dumped.  This is an interim measure until we
redesign the dump format somewhat.

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

24 years ago* rpc_test_setup.sh: Error out if server_handle doesn't get set in the Tcl script
Ken Raeburn [Fri, 30 Jun 2000 23:57:42 +0000 (23:57 +0000)]
* rpc_test_setup.sh: Error out if server_handle doesn't get set in the Tcl script

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

24 years ago * Makefile.in (all-unix, clean_unix): Removed util/db2 include
Tom Yu [Fri, 30 Jun 2000 23:20:53 +0000 (23:20 +0000)]
* Makefile.in (all-unix, clean_unix): Removed util/db2 include
symlinking rules.

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

24 years agoadd include file copying
Tom Yu [Fri, 30 Jun 2000 23:20:09 +0000 (23:20 +0000)]
add include file copying

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

24 years ago * Makefile.in (SHLIB_EXPDEPS): Add libdb.
Tom Yu [Fri, 30 Jun 2000 22:01:50 +0000 (22:01 +0000)]
* Makefile.in (SHLIB_EXPDEPS): Add libdb.
(SHLIB_EXPLIBS): Add -ldb.

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

24 years ago * configure.in: Remove AIX_DB_LIB kludge as we're now building
Tom Yu [Fri, 30 Jun 2000 22:00:19 +0000 (22:00 +0000)]
* configure.in: Remove AIX_DB_LIB kludge as we're now building
libdb reasonably.

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

24 years ago * Makefile.in (SHLIB_EXPDEPS): Add libdb, since we can build this
Tom Yu [Fri, 30 Jun 2000 21:59:27 +0000 (21:59 +0000)]
* Makefile.in (SHLIB_EXPDEPS): Add libdb, since we can build this
shared now.
(SHLIB_EXPLIBS): Add -ldb.

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

24 years ago * Makefile.in (all-unix, clean_unix): Update for current geography
Tom Yu [Fri, 30 Jun 2000 21:58:00 +0000 (21:58 +0000)]
* Makefile.in (all-unix, clean_unix): Update for current geography
of util/db2; needs to be moved to util/db2/Makefile.in at some
point.

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

24 years ago * pre.in: Twiddle things around to support building libdb under
Tom Yu [Fri, 30 Jun 2000 21:57:09 +0000 (21:57 +0000)]
* pre.in: Twiddle things around to support building libdb under
krb5 build system.

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

24 years ago * configure.in: Rework to use krb5 build system
Tom Yu [Fri, 30 Jun 2000 21:55:07 +0000 (21:55 +0000)]
* configure.in: Rework to use krb5 build system

* Makefile.in: Rework to use krb5 build system.

* btree/Makefile.in: New file.

* clib/Makefile.in: New file.

* db/Makefile.in: New file.

* mpool/Makefile.in: New file.

* recno/Makefile.in: New file.

* test/Makefile.in: New file.

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

24 years ago * db-int.h: Remove renaming for memmove, strerror, mkstemp since
Tom Yu [Fri, 30 Jun 2000 21:52:53 +0000 (21:52 +0000)]
* db-int.h: Remove renaming for memmove, strerror, mkstemp since
this is now done by the build system.

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

24 years agoMove .cvsignore from obj to include to reflect the discontinuation of
Tom Yu [Fri, 30 Jun 2000 21:50:05 +0000 (21:50 +0000)]
Move .cvsignore from obj to include to reflect the discontinuation of
the obj directory.

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

24 years ago * Makefile.in: kprop does not depend on the database libraries.
Ezra Peisach [Fri, 30 Jun 2000 19:56:54 +0000 (19:56 +0000)]
* Makefile.in: kprop does not depend on the database libraries.
kpropd does not depend, nor need to link in the database libraries.

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

24 years ago * t_walk_rtree.c (main): Declare as returning int
Ezra Peisach [Fri, 30 Jun 2000 19:55:18 +0000 (19:55 +0000)]
* t_walk_rtree.c (main): Declare as returning int

* get_in_tkt.c (_krb5_conf_boolean): Declare as taking a const char *

* str_conv.c (krb5_timestamp_to_string): Work around gcc's warning
that %c format in strftime might return only two digits for the
year.

* mk_safe.c, rd_rep.c, send_tgs.c: Remove unused goto label.

* kdc_rep_dc.c (krb5_kdc_rep_decrypt_proc): Remove code with no
effect.

* init_ctx.c: Make krb5_brand[] look used.

* chpw.c, decode_kdc.c, decrypt_tk.c, enc_helper.c, get_creds.c,
get_in_tkt.c, gic_keytab.c, gic_pwd.c, preauth2.c, vfy_increds.c:
Add parentheses around assignment used as truth value

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

24 years ago * t_an_to_ln.c: Include <stdio.h> for prototypes
Ezra Peisach [Fri, 30 Jun 2000 19:51:59 +0000 (19:51 +0000)]
* t_an_to_ln.c: Include <stdio.h> for prototypes

* locate_kdc.c (krb5_locate_srv_dns): Remove unused variable.

* changepw.c, sendto_kdc.c, sn2princ.c: Add parentheses around
assignment used as truth value.

* ccdefname.c (get_from_os): Cast return from getuid() to long and
indicate use of format in sprintf.

gcc -Wall complaints.

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

24 years agoinit_ets.c: Remove unused variable
Ezra Peisach [Fri, 30 Jun 2000 19:48:38 +0000 (19:48 +0000)]
init_ets.c: Remove unused variable

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

24 years ago * rc_io.c (krb5_rc_io_creat): Cast getpid() to int.
Ezra Peisach [Fri, 30 Jun 2000 19:47:24 +0000 (19:47 +0000)]
    * rc_io.c (krb5_rc_io_creat): Cast getpid() to int.
        (Use of a long might overflow buffer if pid_t is 64 bits */

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

24 years ago * afsstring2key.c: Initialization of S[8][64] - each 64 elements
Ezra Peisach [Fri, 30 Jun 2000 19:46:34 +0000 (19:46 +0000)]
* afsstring2key.c: Initialization of S[8][64] - each 64 elements
enclosed in brackets.

gcc -Wall complaint.

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

24 years ago crypto_libinit.c: Add prototype for prng_cleanup()
Ezra Peisach [Fri, 30 Jun 2000 19:44:54 +0000 (19:44 +0000)]
 crypto_libinit.c: Add prototype for prng_cleanup()

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

24 years ago * pty-int.h: Add getutmpx() prototype if needed
Ezra Peisach [Fri, 30 Jun 2000 19:34:38 +0000 (19:34 +0000)]
* pty-int.h: Add getutmpx() prototype if needed

* configure.in: If getutmpx() exists on the system, test if a
prototype is provided by the system headers.

This was picked up by gcc -Wall. Under Linux glibc 2.1, the system
header file <utmpx.h> provides a prototype for getutmpx() only if
_GNU_SOURCE is defined (GNU extensions). The test offeres a prototype
(which matches in this case) - if the prototype conflicts with a system
provided one, we do not provide it.

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

24 years ago * setenv.c: Do not provide prototype for static function unless
Ezra Peisach [Fri, 30 Jun 2000 12:57:11 +0000 (12:57 +0000)]
  * setenv.c: Do not provide prototype for static function unless
      defined.

gcc -Wall error.

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

24 years ago * random_key.c (des_random_key): Add parentheses around assignment
Ezra Peisach [Fri, 30 Jun 2000 12:54:49 +0000 (12:54 +0000)]
    * random_key.c (des_random_key): Add parentheses around assignment
        used as truth value.

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

24 years ago * asn1buf.h (asn1buf_insert_octet): Define using __inline__ rather
Tom Yu [Fri, 30 Jun 2000 01:24:13 +0000 (01:24 +0000)]
* asn1buf.h (asn1buf_insert_octet): Define using __inline__ rather
than inline in order to shut up gcc -pedantic.

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

24 years agopullup from 1.2-beta4
Ken Raeburn [Fri, 30 Jun 2000 00:43:01 +0000 (00:43 +0000)]
pullup from 1.2-beta4

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

24 years agopullup from 1.2-beta4
Ken Raeburn [Fri, 30 Jun 2000 00:36:31 +0000 (00:36 +0000)]
pullup from 1.2-beta4

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

24 years agomerge from 1.2 branch
Ken Raeburn [Fri, 30 Jun 2000 00:31:09 +0000 (00:31 +0000)]
merge from 1.2 branch

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

24 years ago1.2-beta4 pullup
Ken Raeburn [Fri, 30 Jun 2000 00:16:21 +0000 (00:16 +0000)]
1.2-beta4 pullup

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

24 years agodyn_insert.c, dyn_put.c: Include string.h for memmove prototype
Ezra Peisach [Thu, 29 Jun 2000 15:07:14 +0000 (15:07 +0000)]
dyn_insert.c, dyn_put.c: Include string.h for memmove prototype

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

24 years ago * iter-test.c (main): Code was using ovsec_kadm_ret_t in place of
Ezra Peisach [Thu, 29 Jun 2000 01:10:31 +0000 (01:10 +0000)]
    * iter-test.c (main): Code was using ovsec_kadm_ret_t in place of
        an int for referencing array.

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

24 years ago * client_init.c (_kadm5_init_any): gss_krb5_ccache_name returns
Ezra Peisach [Thu, 29 Jun 2000 01:08:55 +0000 (01:08 +0000)]
    * client_init.c (_kadm5_init_any): gss_krb5_ccache_name returns
        const char *, but the code was treating it as a char *.

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

24 years ago * alt_prof.c (krb5_aprof_init): profile_init takes a
Ezra Peisach [Thu, 29 Jun 2000 01:05:21 +0000 (01:05 +0000)]
    * alt_prof.c (krb5_aprof_init): profile_init takes a
        profile_filespec_t as argument instad of char **.

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

24 years ago * cr_tkt.c: Provide prototype for static krb_cr_tkt_int function
Ezra Peisach [Thu, 29 Jun 2000 01:02:57 +0000 (01:02 +0000)]
    * cr_tkt.c: Provide prototype for static krb_cr_tkt_int function
        before being used.

        * getst.c: Remove unused variable.

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

24 years agoprng.c (prng_cleanup): Ensure memory allocated before calling free
Ezra Peisach [Thu, 29 Jun 2000 01:00:13 +0000 (01:00 +0000)]
prng.c (prng_cleanup): Ensure memory allocated before calling free

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

24 years ago * conv_princ.c, get_creds.c, get_in_tkt.c, mk_rep.c, parse.c,
Ezra Peisach [Thu, 29 Jun 2000 00:53:24 +0000 (00:53 +0000)]
    * conv_princ.c, get_creds.c, get_in_tkt.c, mk_rep.c, parse.c,
        send_tgs.c: Remove unused variable.

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

24 years ago * def_realm.c: Add newline at end of file
Ezra Peisach [Thu, 29 Jun 2000 00:47:11 +0000 (00:47 +0000)]
    * def_realm.c: Add newline at end of file

        * gmt_mktime.c: Define days_in_month as type int.

        * locate_kdc.c (krb5_locate_srv_dns): Cleanup unused variables.

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

24 years agoClean up unused variable
Ezra Peisach [Thu, 29 Jun 2000 00:42:17 +0000 (00:42 +0000)]
Clean up unused variable

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

24 years agoRemove unused variables
Ezra Peisach [Thu, 29 Jun 2000 00:33:05 +0000 (00:33 +0000)]
Remove unused variables

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

24 years agoccdefault.c: Add newline at end of file (compiler warning)
Ezra Peisach [Thu, 29 Jun 2000 00:30:54 +0000 (00:30 +0000)]
ccdefault.c: Add newline at end of file (compiler warning)

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

24 years agoasn1_get.c (asn1_get_tag): Remove unused variable
Ezra Peisach [Thu, 29 Jun 2000 00:26:13 +0000 (00:26 +0000)]
asn1_get.c (asn1_get_tag):  Remove unused variable

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

24 years ago * getpty.c (pty_getpty): More conditionalizing variable defintion
Ezra Peisach [Thu, 29 Jun 2000 00:21:47 +0000 (00:21 +0000)]
    * getpty.c (pty_getpty): More conditionalizing variable defintion
        based on OS features.

        * cleanup.c (pty_cleanup): Add parenthesis about assignment in
        conditional (gcc suggestion).

        * pty-int.h: Include pty.h if it exists (for openpty prototype
        under Linux).

        * configure.in: Check for pty.h

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

24 years agoGet rid of unused variable
Ezra Peisach [Wed, 28 Jun 2000 17:00:27 +0000 (17:00 +0000)]
Get rid of unused variable

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