Tom Yu [Sat, 8 Dec 2001 01:57:17 +0000 (01:57 +0000)]
* update_utmp.c (PTY_GETUTXENT): Fix typo. Thanks to Shawn
Stepper. [fixes krb5-build/1020]
[pullup from 1.2.3]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14057
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 7 Dec 2001 19:24:40 +0000 (19:24 +0000)]
* k5-int.h (krb5int_des_init_state): Change variable name in
prototype away from usage.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14055
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 7 Dec 2001 19:20:17 +0000 (19:20 +0000)]
* clnt_raw, clnt_tcp.c, clnt_udp.c: Use a union structure to
ensure argument alignment.
* pmap_clnt.c, pmap_clnt.h (pmap_set): Change port argument to int
to avoid width warnings.
* rpc_callmsg.c (xdr_callmsg): Cast argument to XDR_INLINE to
avoid signed vs. unsigned warning.
* svc.c: Cast assignment to avoid signed warning.
* xdr.c (xdr_u_short, xdr_u_long): cast pointers to long * in
invocation of XDR_PUTLONG.
* xdr_alloc.c (xdralloc_putbytes): Cast argument to DynInsert to
avoid signed/unsigned warning.
* auth_gssapi.c, svc_auth_gssapi, xdr_rec.c: Cast arguments to
avoid alignment warnings.
* svc_tcp.c, xdr_stdio.c: Cast argument to fread/fwrite/read/write.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14054
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 6 Dec 2001 19:02:05 +0000 (19:02 +0000)]
* configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGS
* kprop.c, kpropd.c: Use GETSOCKNAME_ARG3_TYPE and
GETPEERNAME_ARG3_TYPE.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14051
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 6 Dec 2001 18:27:06 +0000 (18:27 +0000)]
* krcp.c, krlogin.c, krlogind.c, krsh.c, krshd.c, login.c,
setenv.c, v4rcp.c: Signed v.s unsigned int cleanup.
* defines.h: rcmd_stream_{read,write} take size_t as length argument.
* kcmd.c: Use GETSOCKNAME_ARG3_TYPE instead of assuming int. input
and output handler take size_t as length argument instead of
int. Other signed vs. unsigned fixes.
* configure.in: Add KRB5_GETSOCKNAME_ARGS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14050
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:30:25 +0000 (23:30 +0000)]
* string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead
of int for local variable.
(asctouni): Length argument now size_t instead of int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14049
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:30:00 +0000 (23:30 +0000)]
* t_encrypt.c (main): Free memory when finished to test for memory
leaks.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14048
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:16:28 +0000 (23:16 +0000)]
* yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned.
(krb5int_yarrow_init): Zero cipher context on init.
* yhash.h (HASH_Final): Use a variable other than out (shadow in
yarrow.c)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14047
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 23:14:30 +0000 (23:14 +0000)]
* shs.c, shs.h (shsUpdate): Declare second argument as const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14046
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 22:49:34 +0000 (22:49 +0000)]
Fix typo in last checkin
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14045
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 22:26:52 +0000 (22:26 +0000)]
* rsh.exp: Fix date-grabbing regexp to deal with older versions of
expect/tcl that have limited regexp capabilities.
Pullup from 1-2-3 branch
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14044
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:07:41 +0000 (12:07 +0000)]
* krb524d.c (cleanup_and_exit): Call krb5_klog_close()
* encode.c (encode_bytes, decode_bytes): Make length field
unsigned to clean up unsigned/signed warnings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14043
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:03:18 +0000 (12:03 +0000)]
* t_ser.c (main): Free context on failure exit route
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14042
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:02:10 +0000 (12:02 +0000)]
* sendto_kdc.c (krb5_sendto_kdc): Get rid of unecessary casts
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14041
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 12:01:17 +0000 (12:01 +0000)]
* t_cksum.c (main): Free memory leak in tests
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14040
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 11:58:54 +0000 (11:58 +0000)]
* test_profile.c (main): Call profile_release() before exiting
in case of error return. (memory leak testing)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14039
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 5 Dec 2001 11:39:39 +0000 (11:39 +0000)]
* gss-client.c, gss-misc.c, gss-server.c: Cast buffer length to
int in length argument for printf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14038
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 4 Dec 2001 01:04:12 +0000 (01:04 +0000)]
Fix documentation bug
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14035
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 28 Nov 2001 23:51:11 +0000 (23:51 +0000)]
* klist.c (flags_string): Display transit-policy-checked, ok-as-delegate, and anonymous ticket flags
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14029
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Wed, 28 Nov 2001 21:20:38 +0000 (21:20 +0000)]
* ms2mit.c: Make sure we get a des-cbc-crc session key instead of
potentially getting whatever happens to be in the cache. Remove
unnecessary static variables. Make function headers use a
consistent format. Rename ShowLastError() to ShowWinError() and
ShowNTError() to ShowLsaError().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14024
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 27 Nov 2001 17:17:55 +0000 (17:17 +0000)]
* api.2/init-v2.exp: For test 101 failure, change port number 1 -
which is used by tcpmux under Irix, to 4 - which is unassigned by
IANA.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14021
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 26 Nov 2001 20:43:10 +0000 (20:43 +0000)]
2001-11-24 Sam Hartman <hartmans@mit.edu>
* fwd_tgt.c (krb5_fwd_tgt_creds): Get a session key for the
forwarded tgt that is the same as the session key for the
auth_context. This is an enctype we know the remote side
supports.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14019
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 26 Nov 2001 20:37:46 +0000 (20:37 +0000)]
Add entropy source identifiers for random seed calls
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14018
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 21 Nov 2001 21:28:14 +0000 (21:28 +0000)]
On fork, perturb the PRNG stream in the child
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14016
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 20 Nov 2001 18:34:03 +0000 (18:34 +0000)]
export krb5_set_default_tgs_enctypes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14014
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 20 Nov 2001 17:03:24 +0000 (17:03 +0000)]
* Makefile.in (check-unix): Use $(srcdir) in file specification
for input to t_prng.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14011
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 20 Nov 2001 00:59:19 +0000 (00:59 +0000)]
Add regression test
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14010
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 20 Nov 2001 00:26:54 +0000 (00:26 +0000)]
Work around hash using host byte order
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14009
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Mon, 19 Nov 2001 23:45:38 +0000 (23:45 +0000)]
Fix up yarrow build on Windows
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14008
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 19 Nov 2001 20:05:35 +0000 (20:05 +0000)]
Fix memory handling bug in t_prng; update expected results as they changedd
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14007
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 19 Nov 2001 19:49:30 +0000 (19:49 +0000)]
Add t_prng.reseedtest
Fix t_prng not to output random data if 0 bytes requested
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14003
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:41:24 +0000 (18:41 +0000)]
* kdb5_verify.c (main): Use krb5_free_unparsed_name() to free up
memory.
(check_princ): Use krb5_free_data_contents() and
krb5_free_principal() to cleanup memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13996
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:39:32 +0000 (18:39 +0000)]
* kdb5_mkdums.c (main): Invoke krb5_free_context when finished.
(add_princ): Use krb5_free_principal to prevent memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13995
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:34:40 +0000 (18:34 +0000)]
* t_kdb.c (do_testing): Invoke krb5_free_principal and
krb5_free_keyblock_contents on master key to prevent minor memory
leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13994
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:32:44 +0000 (18:32 +0000)]
* kadm_server.h: Update prototype for convert_kadm5_to_kadm
* admin_server.c (process_client): Do not assign negative value to
unsigned variable.
(convert_kadm5_to_kadm): Return krb5_int32 instead of krb5_ui_4 to
be compatible with error codes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13993
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 19 Nov 2001 18:29:45 +0000 (18:29 +0000)]
* gss-server.c (server_establish_context, sign_server): Ensure
that memory blocks are only freed once.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13991
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Mon, 19 Nov 2001 18:28:57 +0000 (18:28 +0000)]
Add Yarrow copyright
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13990
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sun, 18 Nov 2001 23:46:32 +0000 (23:46 +0000)]
When initiating GSSAPI context override tgs-enctypes
rather than trying all acceptable enctypes in a loop.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13989
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 16 Nov 2001 19:24:55 +0000 (19:24 +0000)]
* init_ctx.c (DEFAULT_ETYPE_LIST): Ensure space present after
arcfour-hmac-md5 entry for when ANSI strings concatenated the
des-cbc-crc entry was dropped.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13984
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 16 Nov 2001 15:00:48 +0000 (15:00 +0000)]
* Link Yarrow into the build
* Use Yarrow as the PRNG with the compatibility API
* Write most of new PRNG entropy API
* Write but (currently) do not use PRNG test harness
* Fix Yarrow ciphers not to depend on libkrb5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13982
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 21:47:54 +0000 (21:47 +0000)]
Rename to be consistent with krb5 libraries internals
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13975
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 21:11:38 +0000 (21:11 +0000)]
Compiles now
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13974
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 20:12:37 +0000 (20:12 +0000)]
We don't need this
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13973
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 9 Nov 2001 19:59:20 +0000 (19:59 +0000)]
Next pass at making things use krb5 types and functions
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13972
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 8 Nov 2001 22:50:21 +0000 (22:50 +0000)]
First pass cleaning up headers and types
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13971
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 8 Nov 2001 21:54:31 +0000 (21:54 +0000)]
Remove OS-dependent files.
yseed contains some win32 code to seed based on system events etc.
We may want to look at this in the future, but I want to get things working
in a portable manner before I worry about OS-specific things.
ystate.c contains routines to save/load state.
We're not doing that now.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13970
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 8 Nov 2001 21:51:58 +0000 (21:51 +0000)]
Add Yarrow from http://www.zeroknowledge.com/
This is version 0.1 of their Yarrow implementation. I have flattened the distribution,
copying files in the src directory directly into this directory.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13969
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Nov 2001 23:12:16 +0000 (23:12 +0000)]
* state.c (krb5_c_init_state, krb5_c_free_state): Use KRB5_CALLCONV
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13968
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 23:03:46 +0000 (23:03 +0000)]
Update to be consistent with what MS uses
for key usage
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13967
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 22:05:46 +0000 (22:05 +0000)]
2001-11-07 Sam Hartman <hartmans@mit.edu>
* init_ctx.c (DEFAULT_ETYPE_LIST): Add arcfour-hmac-md5; it really
is probably at least as good as DES
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13966
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 22:02:19 +0000 (22:02 +0000)]
2001-11-06 Sam Hartman <hartmans@mit.edu>
* kcmd.c: Define storage for our key usages
(rcmd_stream_init_krb5): Support c_init_state for non-des non-des3 enctypes
(v5_des_write v5_des_read): support variable keyusage
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13965
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 22:01:24 +0000 (22:01 +0000)]
Set output length correctly
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13964
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 7 Nov 2001 19:23:55 +0000 (19:23 +0000)]
Allow rc4 to be used for kadmin
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13961
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 7 Nov 2001 13:48:07 +0000 (13:48 +0000)]
* gss-misc.c (recv_token): Do not attempt to malloc 0 bytes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13960
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 6 Nov 2001 22:20:42 +0000 (22:20 +0000)]
update to use makeindex instead of index
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13959
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 6 Nov 2001 22:19:49 +0000 (22:19 +0000)]
* Makefile (clean): Delete *.ilg
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13956
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 6 Nov 2001 15:25:49 +0000 (15:25 +0000)]
* Add krb5_c_init_state and krb5_c_free_state functions
* Add init_state and free_state to enc_providers as operations that need to be filled in
* Implement generic free_state and des-specific init_state
* Implement arcfour-specific init_state
* Add functions to find enctype state functions and call them
* Add tests for above
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13948
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Tue, 6 Nov 2001 13:28:55 +0000 (13:28 +0000)]
Update form of copyright for new files to play nice with Emacs
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13947
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 6 Nov 2001 01:51:54 +0000 (01:51 +0000)]
* configure.in: Add KRB5_GETPEERNAME_ARGS and
KRB5_GETSOCKNAME_ARGS for sample apps.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13946
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 6 Nov 2001 01:50:51 +0000 (01:50 +0000)]
* sserver.c (main): Use GETPEERNAME_ARG3_TYPE instead of int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13945
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 6 Nov 2001 01:50:39 +0000 (01:50 +0000)]
* sclient.c (main): Use GETSOCKNAME_ARG3_TYPE instead of int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13944
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 5 Nov 2001 16:50:07 +0000 (16:50 +0000)]
* alt_prof.c (krb5_aprof_get_boolean): Return krb5_boolean *
instead of int *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13938
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 2 Nov 2001 21:40:35 +0000 (21:40 +0000)]
* rsh.exp: Fix date grabbing code so we don't try to parse the
timezone-less date out of of a syslog message. expect eof in
places to drain pty buffers and avoid deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13932
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 2 Nov 2001 20:03:00 +0000 (20:03 +0000)]
* v4gssftp.exp: Calling send_error from within a dejagnu test is
wrong. So is calling exit. Fix to not do these things. Expect
eof rather than "\r" so as to drain pty buffers and avoid
deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13931
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 2 Nov 2001 19:06:52 +0000 (19:06 +0000)]
* gssftp.exp: Calling send_error from within a dejagnu test is
wrong. So is calling exit. Fix to not do these things. Expect
eof rather than "\r" so as to drain pty buffers and avoid
deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13928
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 1 Nov 2001 21:21:28 +0000 (21:21 +0000)]
2001-11-01 Sam Hartman <hartmans@mit.edu>
* gss-server.c gss-client.c: ONly free buffers returned from
GSSAPI using gss_release_buffer
* gss-client.c (client_establish_context): Trailing null should
not be part of service name
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13926
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 1 Nov 2001 19:56:43 +0000 (19:56 +0000)]
Sufficiently outdated as to be confusing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13925
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 1 Nov 2001 00:09:14 +0000 (00:09 +0000)]
* default.exp (check_k5login, check_klogin): Error out if there is
a nonexistent .k5login or .klogin for root.
(setup_{kadmind_,}srvtab, add_{random,kerberos}_key): Notice
unmatched output to avoid timing out on certain errors. Look for
command echoes. Clear the expect_after list in places to avoid
problems with lingering expect_after clauses against invalid
spawn_ids. expect eof in places to avoid pty deadlock.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13924
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 31 Oct 2001 03:19:53 +0000 (03:19 +0000)]
minor update: a note that the contents are out of date
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13912
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 23:14:50 +0000 (23:14 +0000)]
* main.c (main): Do not pass LOG_AUTH facility into openlog() as a
logopt.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13910
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 18:12:26 +0000 (18:12 +0000)]
* k5unseal.c: Fix whitespace in copyright message
* k5seal.c (make_seal_token_v1): Cleanup code for mic
tokens. Essentially revert code to Sam's 10/25 code, with one
correction - allocation of data_ptr - use msglen and not tmsglen.
Additionally, do not rely on malloc(0) being non-NULL.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13907
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 16:29:40 +0000 (16:29 +0000)]
* kdb_cpw.c (cleanup_key_data): Do not free NULL pointer
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13906
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 16:14:16 +0000 (16:14 +0000)]
* fake-addrinfo.c (freeaddrinfo): Do not free NULL pointers
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13905
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 30 Oct 2001 13:14:38 +0000 (13:14 +0000)]
* kpasswd.c (main): Do not free potentially NULL pointers
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13904
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Mon, 29 Oct 2001 14:56:59 +0000 (14:56 +0000)]
2001-10-29 Jeff Altman <jaltman@columbia.edu>
* Makefile.in - Windows configuration for src/lib/crypto/arcfour
directory
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13872
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Mon, 29 Oct 2001 02:50:27 +0000 (02:50 +0000)]
* Makefile.in - added dependency info for hmac_md5.c
Fixed typo $(OUTP)hmac_md5.c -> $(OUTPRE)hmac_md5.c which prevented
builds on Windows.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13871
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sat, 27 Oct 2001 04:22:08 +0000 (04:22 +0000)]
* Use right key usage for seal without encryption.
Now tested and working against win2k ldap server; wrap and unwrap
of encrypted and unencrypted data tested.
So far no test of getmic or verify_mic.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13870
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 27 Oct 2001 04:18:10 +0000 (04:18 +0000)]
* default.exp: Mark as unused the test passes that won't
accomplish anything due to disabling of SUPPORT_DESMD5 in the
code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13869
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 22:14:31 +0000 (22:14 +0000)]
* k5seal.c (make_seal_token_v1): Correct errors in code
pertaining to case when signing message only. Fixes buffer
overflows as found by gssapi dejagnu testsuite.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13868
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 17:10:33 +0000 (17:10 +0000)]
* rcp.exp, rsh_exp (stop_rsh_daemon): Do not close a process and
then look for eof. Some versions of expect go through a full
timeout in this scenario and others return immediately. New order:
kill process, expect eof, close, and then wait.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13866
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 15:49:47 +0000 (15:49 +0000)]
* string_to_key.c (krb5_arcfour_string_to_key): Cleanup variables
defined but not used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13865
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 15:37:38 +0000 (15:37 +0000)]
* k5-int.h: Do not use "usage" in argument names in
krb5_keyhash_provider functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13864
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 15:35:29 +0000 (15:35 +0000)]
* configure.in: Add KRB5_GETSOCKNAME_ARGS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13863
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 15:34:40 +0000 (15:34 +0000)]
* schpw.c (process_chpw_request): Use GETSOCKNAME_ARG3_TYPE
instead of int as argument to getsockname().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13862
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 15:33:36 +0000 (15:33 +0000)]
* dump.c (dump_db): Pass krb5_boolean instead of char * as
argument to kb5_db_fetch_mkey().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13861
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 26 Oct 2001 15:30:25 +0000 (15:30 +0000)]
* kdb_xdr.c (krb5_encode_princ_contents): Use krb5_ui_2 instead of
krb5_int16 for key_data_length.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13860
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Fri, 26 Oct 2001 05:50:25 +0000 (05:50 +0000)]
* Expose some rc4 crypto routines through the accessor mechanism; cleaner than raw enctype
* Deal with GSSAPI key usage in microsoft translation
* Add rc4 gssapi mechanism; works with itself, not tested against
* Windows yet
* Refactor large chunks of k5seal.c to make code more readable for
debugging
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13859
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 25 Oct 2001 20:26:00 +0000 (20:26 +0000)]
* loadv4.c (fixup_database): Don't set SUPPORT_DESMD5 anymore
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13858
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 25 Oct 2001 20:25:32 +0000 (20:25 +0000)]
* do_as_req.c (process_as_req: Treat SUPPORT_DESMD5 as if it were
always cleared.
* do_tgs_req.c (process_tgs_req): Treat SUPPORT_DESMD5 as if it
were always cleared.
* kdc_util.c (select_session_keytype): Don't issue session key
enctype that is not in permitted_enctypes.
(dbentry_supports_enctype): For now, always treat SUPPORT_DESMD5
as if it were cleared.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13857
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 25 Oct 2001 20:22:14 +0000 (20:22 +0000)]
* svr_principal.c (kadm5_decrypt_key): For now, coerce enctype of
output keyblock in case we got a match on a similar enctype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13856
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 25 Oct 2001 20:21:28 +0000 (20:21 +0000)]
* kdb_xdr.c (krb5_dbe_search_enctype): Filter out enctypes that
aren't in permitted_enctypes. This prevents the KDC from issuing
a ticket whose enctype that it won't accept.
* keytab.c (krb5_ktkdb_get_entry): For now, coerce enctype of
output keyblock in case we got a match on a similar enctype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13855
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 25 Oct 2001 20:20:57 +0000 (20:20 +0000)]
* kdb5_err.et: Add KRB5_KDB_NO_PERMITTED_KEY,
KRB5_KDB_NO_MATCHING_KEY for libkdb so we can return something
other than ENOENT (which was Just Wrong).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13854
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 25 Oct 2001 17:41:07 +0000 (17:41 +0000)]
Remove autoconf 2.13 from source tree. We require at least 2.13 now -
and users to have the execuable in their path.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13848
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 25 Oct 2001 17:36:45 +0000 (17:36 +0000)]
* reconf: Require autoconf 2.13. Remove support for local autoconf
tree.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13847
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 25 Oct 2001 17:31:54 +0000 (17:31 +0000)]
* rsh.exp (rsh_test): Add stop_rsh_daemon before invoking
start_rsh_daemon again to prevent running out of ptys.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13846
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 24 Oct 2001 18:34:04 +0000 (18:34 +0000)]
* t_encrypt.c: Argument to krb5_c_encrypt_length must be size_t
instead of int (which is the length in krb5_data) or unaligned
access occurs on Dec OSF machines.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13845
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 24 Oct 2001 15:23:49 +0000 (15:23 +0000)]
* configure.in: Add optional argument to AC_DEFINE to provide
comment in generated header file.
* acconfig.h: Remove int32_t and u_int32_t, handled by configure.in
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13843
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 24 Oct 2001 15:23:25 +0000 (15:23 +0000)]
* db-config.h.in: Remove unnecessary definitions for including
db.h header file. These include WORDS_BIGENDIAN, ssize_t, u_short,
int8_t, u_int8_t, int16_t, u_int16_t, int32_t.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13842
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 24 Oct 2001 15:22:55 +0000 (15:22 +0000)]
* configure.in: Use of AC_DEFINE modified to include third
argument - the comment for the generated header file so that
acconfig.h can be cleaned up.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13841
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 24 Oct 2001 15:22:32 +0000 (15:22 +0000)]
* aclocal.m4: Require 2.13 of autoconf.
(DECLARE_SYS_ERRLIST, CHECK_SIGPROCMASK, CHECK_DIRENT,
CHECK_WAIT_TYPE, CHECK_SIGNALS, KRB5_SIGTYPE, KRB5_AC_CHECK_INET6,
HAVE_YYLINENO, KRB5_SOCKADDR_SA_LEN, AC_HEADER_STDARG,
KRB5_AC_NEED_LIBGEN, KRB5_AC_ENABLE_DNS): Use of AC_DEFINE
modified to provide comment for autoheader generated file.
* acconfig.h: Remove ANSI_STDIO, NO_YYLINENO, POSIX_FILE_LOCKS,
POSIX_SIGTYPE, POSIX_TERMIOS, USE_DIRENT_H, WAIT_USES_INT,
krb5_sigtype, HAVE_STDARG_H, HAVE_VARARGS_H, HAV_REGCOMP,
HAVE_SA_LEN, HAVE_SOCKLEN_T, KRB5_ATHENA_COMPAT, KRB5_KRB4_COMPAT,
KRB5_DNS_LOOKUP, KRB5_DNS_LOOKUP_KDC, KRB5_DNS_LOOKUP_REALM,
KRB5_USE_INET6, MEMMOVE, memmove, mkstemp and strerror. All
replaced by use of third argument to AC_DEFINE.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13840
dc483132-0cff-0310-8789-
dd5450dbe970