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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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