krb5.git
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

23 years agonew test case for afs string2key
Ken Raeburn [Sat, 20 Jan 2001 13:08:45 +0000 (13:08 +0000)]
new test case for afs string2key

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

23 years ago* preauth.c: Don't use PROTOTYPE macro, just always use the prototypes
Ken Raeburn [Sat, 20 Jan 2001 04:16:01 +0000 (04:16 +0000)]
* preauth.c: Don't use PROTOTYPE macro, just always use the prototypes

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

23 years ago * preauth.c: Remove uses of KRB5_NPROTOTYPE() macro
Tom Yu [Sat, 20 Jan 2001 04:03:09 +0000 (04:03 +0000)]
* preauth.c: Remove uses of KRB5_NPROTOTYPE() macro

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

23 years ago* krb5.hin (KRB5_NPROTOTYPE): Delete
Ken Raeburn [Sat, 20 Jan 2001 03:19:52 +0000 (03:19 +0000)]
* krb5.hin (KRB5_NPROTOTYPE): Delete

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

23 years agoAlways use ANSI C features (prototypes, const, void *, etc).
Ken Raeburn [Sat, 20 Jan 2001 03:08:42 +0000 (03:08 +0000)]
Always use ANSI C features (prototypes, const, void *, etc).
Convert rcache dispatch macros to functions; hide rcache data structures.

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

23 years ago* rcfns.c: New file, with fn versions of former dispatch macros from krb5.h
Ken Raeburn [Sat, 20 Jan 2001 03:06:32 +0000 (03:06 +0000)]
* rcfns.c: New file, with fn versions of former dispatch macros from krb5.h

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

23 years ago* coding-style: Assume ANSI C '89. Use krb5int_ for internal names
Ken Raeburn [Sat, 20 Jan 2001 02:38:04 +0000 (02:38 +0000)]
* coding-style: Assume ANSI C '89.  Use krb5int_ for internal names

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

23 years agosome updates, looking towards 1.3
Ken Raeburn [Sat, 20 Jan 2001 02:10:20 +0000 (02:10 +0000)]
some updates, looking towards 1.3

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

23 years agorebuilt
Ken Raeburn [Sat, 20 Jan 2001 01:54:26 +0000 (01:54 +0000)]
rebuilt

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

23 years ago* com_err.h (add_error_table, remove_error_table): Annotate as modifying
Ken Raeburn [Sat, 20 Jan 2001 01:54:16 +0000 (01:54 +0000)]
* com_err.h (add_error_table, remove_error_table): Annotate as modifying
internal state.
(struct et_list, _et_list): Remove.

* error_table.h (struct et_list, _et_list): Put back here.

* error_message.c (add_error_table, remove_error_table): Annotate specific
modifications.  Disable inconsistent-defifition checks since _et_list isn't
describe in the header file but is global and modified.

* et_c.awk: Make the generated initialization function simply call
add_error_table, and drop the static linked-list node.

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

23 years ago * g_ad_tkt.c: Fix error packet parsing
Tom Yu [Fri, 19 Jan 2001 01:05:13 +0000 (01:05 +0000)]
* g_ad_tkt.c: Fix error packet parsing

* g_in_tkt.c: Fix error packet parsing.  Also, declare some
internal functions as static and add prototypes.

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

23 years agouse revised compile_et script instead of calling awk directly
Ken Raeburn [Thu, 18 Jan 2001 03:48:05 +0000 (03:48 +0000)]
use revised compile_et script instead of calling awk directly

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

23 years agoupdate to implement equivalent of ref count
Ken Raeburn [Thu, 18 Jan 2001 01:42:11 +0000 (01:42 +0000)]
update to implement equivalent of ref count

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

23 years agoMake compile_et script installable, and install it.
Ken Raeburn [Thu, 18 Jan 2001 01:05:22 +0000 (01:05 +0000)]
Make compile_et script installable, and install it.
Use it when building test programs too.

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

24 years agoMake prototypes unconditional
Ken Raeburn [Wed, 17 Jan 2001 04:50:54 +0000 (04:50 +0000)]
Make prototypes unconditional

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

24 years ago* str_conv.c (krb5_keysalt_iterate): Always use the prototype for
Ken Raeburn [Wed, 17 Jan 2001 02:05:52 +0000 (02:05 +0000)]
* str_conv.c (krb5_keysalt_iterate): Always use the prototype for
function-pointer argument ITERATOR.

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

24 years ago* krcp.c (error): Always declare with ellipsis
Ken Raeburn [Wed, 17 Jan 2001 02:02:11 +0000 (02:02 +0000)]
* krcp.c (error): Always declare with ellipsis

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

24 years ago* acconfig.h (HAVE_SA_LEN): Undef
Ken Raeburn [Tue, 16 Jan 2001 19:01:01 +0000 (19:01 +0000)]
* acconfig.h (HAVE_SA_LEN): Undef

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

24 years ago* configure.in: Call AC_REQUIRE_CPP before checking for GCC, to ensure that we
Ken Raeburn [Tue, 16 Jan 2001 19:00:45 +0000 (19:00 +0000)]
* configure.in: Call AC_REQUIRE_CPP before checking for GCC, to ensure that we
always set $CPP.

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

24 years agoDocument configure.in change
Sam Hartman [Sun, 14 Jan 2001 03:31:19 +0000 (03:31 +0000)]
Document configure.in change

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

24 years ago2001-01-12 Sam Hartman <hartmans@mit.edu>
Sam Hartman [Sun, 14 Jan 2001 03:26:06 +0000 (03:26 +0000)]
2001-01-12  Sam Hartman  <hartmans@mit.edu>

* krlogin.c: Previously, we only used TIOCGLTC  on systems with
termios.  This is sort of silly since its a BSD 4.[23] IOCTL.  We
then go out of our way not to use it on IRIX, Solaris or HPUX.  I
think all this comes about because you really want to use BSD
IOCTLS on Sunos rather than termios.  I propose to do that and
never use BSD IOCTLs on Sunos.

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

24 years ago * sane_hostname.c: Switch off of KRB5_USE_INET6 instead of
Tom Yu [Sat, 13 Jan 2001 00:55:07 +0000 (00:55 +0000)]
* sane_hostname.c: Switch off of KRB5_USE_INET6 instead of
AF_INET6, which may be defined without a corresponding struct
sockaddr_in6.

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

24 years ago* configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if found
Ken Raeburn [Mon, 18 Dec 2000 08:03:48 +0000 (08:03 +0000)]
* configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if found

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

24 years agolocaladdr.c: Add getnameinfo support. Annotate for lclint.
Ken Raeburn [Mon, 18 Dec 2000 08:00:49 +0000 (08:00 +0000)]
localaddr.c: Add getnameinfo support.  Annotate for lclint.
Makefile.in: New target for running lclint on localaddr.c.

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

24 years ago* ktutil.c (ktutil_list): Provide a real usage message
Ken Raeburn [Fri, 15 Dec 2000 07:32:16 +0000 (07:32 +0000)]
* ktutil.c (ktutil_list): Provide a real usage message

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

24 years agoadd "-4" option to rlogin to not try krb5 auth
Ken Raeburn [Fri, 15 Dec 2000 07:11:07 +0000 (07:11 +0000)]
add "-4" option to rlogin to not try krb5 auth

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

24 years agofix multiple-include problem on OpenBSD
Ken Raeburn [Wed, 13 Dec 2000 03:41:59 +0000 (03:41 +0000)]
fix multiple-include problem on OpenBSD

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

24 years agoupdate network.c with getifaddrs support from lib/krb5/os/localaddr.c
Ken Raeburn [Wed, 13 Dec 2000 03:29:51 +0000 (03:29 +0000)]
update network.c with getifaddrs support from lib/krb5/os/localaddr.c

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

24 years agolog msg for previous checkins
Ken Raeburn [Sat, 9 Dec 2000 02:48:42 +0000 (02:48 +0000)]
log msg for previous checkins

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

24 years agocheck in -01 draft
Ken Raeburn [Fri, 8 Dec 2000 04:55:09 +0000 (04:55 +0000)]
check in -01 draft

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

24 years ago* k5seal.c (make_seal_token_v1): Use ANSI-style definition, instead of K&R plus
Ken Raeburn [Fri, 8 Dec 2000 04:48:24 +0000 (04:48 +0000)]
* k5seal.c (make_seal_token_v1): Use ANSI-style definition, instead of K&R plus
prototype.  Don't use too-big numbers even as placeholders.

* accept_sec_context.c (rd_and_store_for_creds): After creating an auth
context, set flags to require sequence numbers.
(krb5_gss_accept_sec_context): Likewise.
* init_sec_context.c (krb5_gss_init_sec_context): Likewise.
(thanks to assar for noticing this)

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

24 years agomake some variables volatile
Ken Raeburn [Wed, 6 Dec 2000 23:31:05 +0000 (23:31 +0000)]
make some variables volatile

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

24 years ago* aclocal.m4 (KRB5_AC_INET6): Ensure that we check for sa_len field
Ken Raeburn [Wed, 6 Dec 2000 11:47:47 +0000 (11:47 +0000)]
* aclocal.m4 (KRB5_AC_INET6): Ensure that we check for sa_len field

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

24 years agoUse const sockaddr pointer in interface.
Ken Raeburn [Wed, 6 Dec 2000 11:46:04 +0000 (11:46 +0000)]
Use const sockaddr pointer in interface.
Use get{name,addr}info if available, to pick up IPv6 support.

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

24 years agomake pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*
Ken Raeburn [Wed, 6 Dec 2000 09:46:49 +0000 (09:46 +0000)]
make pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*

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

24 years agorestore GSS_DLLIMP, KRB5_EXPORTVAR, NEAR macros
Ken Raeburn [Wed, 6 Dec 2000 09:01:33 +0000 (09:01 +0000)]
restore GSS_DLLIMP, KRB5_EXPORTVAR, NEAR macros

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

24 years agofix typo
Ken Raeburn [Wed, 6 Dec 2000 08:47:42 +0000 (08:47 +0000)]
fix typo

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

24 years agoRemove a bunch of macro definitions we don't use.
Ken Raeburn [Wed, 6 Dec 2000 08:47:11 +0000 (08:47 +0000)]
Remove a bunch of macro definitions we don't use.
Run lclint on t_com_err test case; tune options; more annotations.
Use <com_err.h> instead of duplicated definitions in generated files.
Rebuild Perl versions of awk scripts for generating files.
Dump K&R C support, assume C89/C++.

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

24 years agoundo last change
Ken Raeburn [Wed, 6 Dec 2000 01:51:57 +0000 (01:51 +0000)]
undo last change

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

24 years agotweak names of perl scripts
Ken Raeburn [Wed, 6 Dec 2000 01:49:05 +0000 (01:49 +0000)]
tweak names of perl scripts

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

24 years agotry lclint on a com_err test program; misc cleanup
Ken Raeburn [Wed, 6 Dec 2000 01:47:28 +0000 (01:47 +0000)]
try lclint on a com_err test program; misc cleanup

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

24 years agosome notes on interactions with 64-bit systems
Ken Raeburn [Wed, 6 Dec 2000 01:41:41 +0000 (01:41 +0000)]
some notes on interactions with 64-bit systems

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

24 years ago(WITH_CC): Don't use -Wtraditional, we're always assuming ANSI mode now
Ken Raeburn [Wed, 6 Dec 2000 01:36:33 +0000 (01:36 +0000)]
(WITH_CC): Don't use -Wtraditional, we're always assuming ANSI mode now

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

24 years ago* aclocal.m4 (KRB5_AC_INET6): Look for netdb.h.
Ken Raeburn [Tue, 5 Dec 2000 23:17:28 +0000 (23:17 +0000)]
* aclocal.m4 (KRB5_AC_INET6): Look for netdb.h.
(KRB5_AC_CHECK_INET6): Require <netinet/in.h>, <netdb.h>, inet_ntop,
getaddrinfo, AF_INET6, several NI_* macros, AI_ADDRCONFIG, and AI_NUMERICHOST.
This should be a reasonable test for conformance to certain parts of RFC2553,
giving us reasonable generic sockaddr/hostname processing.

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

24 years ago* cmds.c (globulize): Use correct address of globbed results when
Ken Raeburn [Tue, 21 Nov 2000 23:32:47 +0000 (23:32 +0000)]
* cmds.c (globulize): Use correct address of globbed results when
freeing storage.  Patch from Nalin Dahyabhai <nalin@redhat.com>.

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