krb5.git
29 years agoDefine PROTOTYPE if it is not defined elsewhere
Theodore Tso [Sat, 23 Sep 1995 03:33:26 +0000 (03:33 +0000)]
Define PROTOTYPE if it is not defined elsewhere

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

29 years agogss-clie.c: turned const_gss_OID into const gss_OID.
Theodore Tso [Sat, 23 Sep 1995 03:19:15 +0000 (03:19 +0000)]
gss-clie.c: turned const_gss_OID into const gss_OID.
gss-misc.c: needed more includes.
gss.c: needed more includes.

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

29 years agokeysalt.c: 16/32 bit integer mismatch.
Theodore Tso [Sat, 23 Sep 1995 03:10:24 +0000 (03:10 +0000)]
keysalt.c: 16/32 bit integer mismatch.
str_conv.c:  sftime_format_table is conditional upon HAVE_STRFTIME,
cast some constants to long so that math wouldn't overflow,
16/32 bit integer size mismatch.

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

29 years agoChange length field in krb5_alt_method and krb5_etype_info_entry to be
Theodore Tso [Sat, 23 Sep 1995 02:30:24 +0000 (02:30 +0000)]
Change length field in krb5_alt_method and krb5_etype_info_entry to be
an int, instead of an int32.  This allows the ASN.1 length parsing
routines to work properly.

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

29 years agoRemove the (int) cast, since you can't take address of a value which
Theodore Tso [Sat, 23 Sep 1995 02:29:08 +0000 (02:29 +0000)]
Remove the (int) cast, since you can't take address of a value which
has been casted.  Instead we change the underlying type in the
structure to be an int.

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

29 years agoacquire_.c: changed int to size_t.
Theodore Tso [Sat, 23 Sep 1995 02:16:21 +0000 (02:16 +0000)]
acquire_.c: changed int to size_t.
gssapip_.h: added prototype for kg_seal_size.
k5seal.c: 16/32 bit mismatch and removed unused variables.
seal.c: 16/32 bit mismatch.
sign.c: 16/32 bit mismatch.
ser_sctx.c: added prototypes for all functions since they get
assigned into a structure that has been prototyped.

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

29 years agooid_ops.c: signed/unsigned mismatch, removed unused variables
Theodore Tso [Sat, 23 Sep 1995 02:05:01 +0000 (02:05 +0000)]
oid_ops.c: signed/unsigned mismatch, removed unused variables

util_oid.c: changed int to a size_t.

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

29 years agoPut back in all:: all-$(WHAT) rule--PC needs it
Theodore Tso [Sat, 23 Sep 1995 02:03:31 +0000 (02:03 +0000)]
Put back in all:: all-$(WHAT) rule--PC needs it

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

29 years agoRemoved ^M's from DOS integration. (Oops!)
Theodore Tso [Sat, 23 Sep 1995 02:00:50 +0000 (02:00 +0000)]
Removed ^M's from DOS integration.  (Oops!)

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

29 years agoPut back in all:: all-$(WHAT) rule--PC needs it
Theodore Tso [Sat, 23 Sep 1995 01:39:51 +0000 (01:39 +0000)]
Put back in all:: all-$(WHAT) rule--PC needs it

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

29 years agoMakefile.in: PC needs sscanf.c
Theodore Tso [Sat, 23 Sep 1995 01:38:54 +0000 (01:38 +0000)]
Makefile.in: PC needs sscanf.c

sscanf.c: cleanup to compile cleanly on the PC, mostly fixing
signed/unsigned mismatches.

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

29 years agohad to define away DBFLAGS for the PC
Theodore Tso [Sat, 23 Sep 1995 01:37:02 +0000 (01:37 +0000)]
had to define away DBFLAGS for the PC

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

29 years agoget_in_t.c: removed unused variable.
Theodore Tso [Sat, 23 Sep 1995 01:35:53 +0000 (01:35 +0000)]
get_in_t.c: removed unused variable.
rd_cred.c: removed INTERFACE keyword.
ser_auth.c: passing int32 where a size_t is wanted.
ser_ctx.c: 16/32 bit int size mismatch.

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

29 years agoAdded MSDOS to wherever MACINTOSH was used
Theodore Tso [Sat, 23 Sep 1995 01:29:10 +0000 (01:29 +0000)]
Added MSDOS to wherever MACINTOSH was used

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

29 years agosigned/unsigned mismatch
Theodore Tso [Sat, 23 Sep 1995 01:27:39 +0000 (01:27 +0000)]
signed/unsigned mismatch

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

29 years ago32 bit word being passed as an int
Theodore Tso [Sat, 23 Sep 1995 01:26:17 +0000 (01:26 +0000)]
32 bit word being passed as an int

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

29 years agoMakefile.in: moved shared rule to all-unix:: target
Theodore Tso [Sat, 23 Sep 1995 00:29:09 +0000 (00:29 +0000)]
Makefile.in: moved shared rule to all-unix:: target

des_crc.c, des_md5.c, raw_des.c: had a volatile/const mismatch
which needs a cast to resolve.

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

29 years agoMakefile.in: PC builds all C files because of function name changes
Theodore Tso [Sat, 23 Sep 1995 00:26:04 +0000 (00:26 +0000)]
Makefile.in: PC builds all C files because of function name changes

c_localtime.c, c_ustime.c: removed INTERFACE keyword.

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

29 years agomd5crypt.c: put function prototype back in, fixed signed/unsigned
Theodore Tso [Sat, 23 Sep 1995 00:20:59 +0000 (00:20 +0000)]
md5crypt.c: put function prototype back in, fixed signed/unsigned
mismatch and removed unused variables.

md5glue.c: put function prototypes back in.

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

29 years agomd4crypt.c: put function prototype back in, fixed signed/unsigned
Theodore Tso [Sat, 23 Sep 1995 00:19:35 +0000 (00:19 +0000)]
md4crypt.c: put function prototype back in, fixed signed/unsigned
        mismatch and removed unused variables.

md4glue.c: put function prototypes back in.

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

29 years agoput function prototype back in
Theodore Tso [Sat, 23 Sep 1995 00:17:28 +0000 (00:17 +0000)]
put function prototype back in

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

29 years agoprof_int.h: added SIZEOF defines for the PC, and added missing
Theodore Tso [Sat, 23 Sep 1995 00:00:54 +0000 (00:00 +0000)]
prof_int.h: added SIZEOF defines for the PC, and added missing
prototype for profile_find_node_name()

prof_init.c (profile_get_first_values): Remove unused variables.

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

29 years agoOnly define sys_nerr if we're on a Macintosh. On those systems which
Theodore Tso [Fri, 22 Sep 1995 23:59:56 +0000 (23:59 +0000)]
Only define sys_nerr if we're on a Macintosh.  On those systems which
use sys_nerr, it's an external variable, defined by libc.  Under
Windows, it's apparently an cpp macro.

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

29 years agoadded windows value for SRCTOP
Theodore Tso [Fri, 22 Sep 1995 23:46:10 +0000 (23:46 +0000)]
added windows value for SRCTOP

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

29 years ago(from Keith Vetter's windows changes); define THREEPARAMOPEN and
Theodore Tso [Fri, 22 Sep 1995 23:44:14 +0000 (23:44 +0000)]
(from Keith Vetter's windows changes); define THREEPARAMOPEN and
prototype for sscanf.  Also add #define for strncasecmp() to the
microsoft's strnicmp() function.

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

29 years agoBuild the error table header files into include, not include/krb5; and
Theodore Tso [Fri, 22 Sep 1995 23:40:54 +0000 (23:40 +0000)]
Build the error table header files into include, not include/krb5; and
construct krb5.h from krb5.hin and the error table header files.

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

29 years agoDeclare cleanup function as void and propogate thoughout the file. This handles
Ezra Peisach [Wed, 20 Sep 1995 16:21:44 +0000 (16:21 +0000)]
Declare cleanup function as void and propogate thoughout the file. This handles
conflicts with free

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

29 years agoDon't modify a const input variable val; copy it to a scratch variable
Theodore Tso [Mon, 18 Sep 1995 18:18:18 +0000 (18:18 +0000)]
Don't modify a const input variable val; copy it to a scratch variable
and modify that.

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

29 years ago * main.c (init_realm): strdup KRB5_KDB_M_NAME if we use it, to
Mark Eichin [Mon, 18 Sep 1995 15:17:40 +0000 (15:17 +0000)]
* main.c (init_realm): strdup KRB5_KDB_M_NAME if we use it, to
avoid free'ing a constant later.

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

29 years agoMakefile.in (check): Only build libdb.a when making the self checks. Do
Ezra Peisach [Mon, 18 Sep 1995 12:39:04 +0000 (12:39 +0000)]
Makefile.in (check): Only build libdb.a when making the self checks. Do
not install the library.

configure.in: Do not build a shared library - the contents are already
merged into libkrb5. (continue to build shared object files though)

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

29 years agoInitialize the service name to SAMPLE_SERVICE instead of leaving as NULL
Ezra Peisach [Mon, 18 Sep 1995 09:09:28 +0000 (09:09 +0000)]
Initialize the service name to SAMPLE_SERVICE instead of leaving as NULL

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

29 years agokdb5_edit.c (show_principal): Show key version and last password change
Ezra Peisach [Mon, 18 Sep 1995 08:04:14 +0000 (08:04 +0000)]
kdb5_edit.c (show_principal): Show key version and last password change

cpw.c: Fix typo in below change in which list was terminated after third
entry. (extra } removed)

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

29 years agoFix typo error in checkin
Ezra Peisach [Mon, 18 Sep 1995 03:42:16 +0000 (03:42 +0000)]
Fix typo error in checkin

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

29 years agoProgram for testing if getsockname() works like the BSD networking code
Theodore Tso [Sat, 16 Sep 1995 07:56:46 +0000 (07:56 +0000)]
Program for testing if getsockname() works like the BSD networking code
or not.

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

29 years agoFix optional host parsing so that host is recognized as an argument
Theodore Tso [Sat, 16 Sep 1995 07:46:49 +0000 (07:46 +0000)]
Fix optional host parsing so that host is recognized as an argument
without the -h option.  Free the context and auth_context structures
before exiting.

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

29 years agoFree the context and auth_context before exiting
Theodore Tso [Sat, 16 Sep 1995 07:42:04 +0000 (07:42 +0000)]
Free the context and auth_context before exiting

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

29 years agoAdd an optional third argument which allows the user to set the
Theodore Tso [Sat, 16 Sep 1995 07:41:21 +0000 (07:41 +0000)]
Add an optional third argument which allows the user to set the
Kerberos service name to be used.

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

29 years agoAllow the user to specify the service instance using the -s option.
Theodore Tso [Sat, 16 Sep 1995 07:40:20 +0000 (07:40 +0000)]
Allow the user to specify the service instance using the -s option.
Use SO_REUSEEADDR so that the port can be immediately reused.  Free
the context and auth_context before exiting.

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

29 years ago(sign_server): Only try using gss_export_context and
Theodore Tso [Sat, 16 Sep 1995 07:37:50 +0000 (07:37 +0000)]
(sign_server): Only try using gss_export_context and
gss_import_context if the dov2 flag has been set.

(server_establish_context): Make sure the client gss_name_t is
released.

(main): Add a -once option which causes the gss-server to exit after
processing one client.  Allows purify to report memory leaks.

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

29 years agoLots of memory leaks and other fixes...
Theodore Tso [Sat, 16 Sep 1995 07:33:23 +0000 (07:33 +0000)]
Lots of memory leaks and other fixes...

gssapiP_krb5.h: Remove context and cred from the gssapi security
context, as they aren't needed.  kg_seal and kg_unseal now take a
krb5_context argument.

ser_sctx.c (kg_ctx_size, kg_ctx_externalize, kg_ctx_internalize): No
longer serialize the context and cred fields of the gssapi security
context.

krb5_gss_glue.c: Don't rely on the context field of the gssapi
security context.  Use kg_context instead.

verify.c (krb5_gss_verify, krb5_gss_verify_mic):
unseal.c (krb5_gss_unwrap, krb5_gss_unseal):
sign.c (krb5_gss_sign, krb5_gss_get_mic):
seal.c (krb5_gss_seal, krb5_gss_wrap):
process_context_token.c (krb5_gss_process_context_token):
k5unseal.c (kg_unseal):
k5seal.c (kg_seal_size): Add a krb5_context argument to this function,
so we don't have to depend on the context field in the gssapi
security context.

init_sec_context.c (krb5_gss_init_sec_context): Don't initialize the
context and cred fields in the gssapi security context.  Copy
ctx->subkey to ctx->seq.key, so they are separately allocated.

gssapi_krb5.c (kg_get_context): When initialize kg_context, call
krb5_init_ets() so that the error tables are initialized.

export_sec_context.c (krb5_gss_export_sec_context): Don't depend on
the context field from the gssapi security context.  Free
ctx->seq.key.

delete_sec_context.c (krb5_gss_delete_sec_context): kg_seal() now
takes a krb5_context argument.  Free ctx->seq.key.

acquire_cred.c (krb5_gss_acquire_cred): Clear the gssapi credential
before setting it, to prevent purify from complaining.

accept_sec_context.c (krb5_gss_accept_sec_context): Remove context and
cred from the gssapi security context.  Make sure the ticket is freed
after we're done with it.

import_sec_context.c (krb5_gss_import_sec_context): Don't bash the
input interprocess_token.  Otherwise, it can't be freed.  Don't
depend on the context field in the gss security context.

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

29 years agosendauth.c (krb5_sendauth): Make sure the scratch credentials
Theodore Tso [Sat, 16 Sep 1995 07:00:32 +0000 (07:00 +0000)]
sendauth.c (krb5_sendauth): Make sure the scratch credentials
structure may have possible been used be freed..

rd_safe.c (krb5_rd_safe_basic): Fall through to the cleanup code at
the end, to make sure the decoded message in message is freed.

rd_req_dec.c (krb5_rd_req_decoded): Use krb5_copy_keyblock to copy
authent->subkey to auth_context->remote_subkey.  Keeping them
separate avoids aliasing problems.

mk_req_ext.c (krb5_generate_authenticator): Fix memory leak.  Don't
bash authent->subkey with key after carefully copying it using
krb5_copy_keyblock!

recvauth.c (krb5_recvauth): krb5_get_server_rcache() already opens the
rcache; doing it again merely causes a memory leak.

gen_subkey.c (krb5_generate_subkey): Eliminate memory leak.
krb5_init_random_key() does its own allocation of the
keyblock.

gc_via_tkt.c (krb5_kdcrep2creds): Fix memory leak.

srv_rcache.c (krb5_get_server_rcache): Fix memory leak.

rd_safe.c (krb5_rd_safe_basic): Fix memory leak.

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

29 years agoklist.M: Updated the man page to include all of the supported options
Theodore Tso [Fri, 15 Sep 1995 21:14:12 +0000 (21:14 +0000)]
klist.M: Updated the man page to include all of the supported options

klist.c (main, show_credential): Reimplement the -e option, and
display the encryption used by the session key and of the ticket.

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

29 years agoImproved (and changed) input argument handling, to make sim_server
Theodore Tso [Fri, 15 Sep 1995 18:32:15 +0000 (18:32 +0000)]
Improved (and changed) input argument handling, to make sim_server
more flexible.  This should make it possible to run sim_server from a
DejaGnu test suite.  Fixed -Wall nits.

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

29 years agoUse separate definitions for the Kerberos instance name and the UDP
Theodore Tso [Fri, 15 Sep 1995 18:25:11 +0000 (18:25 +0000)]
Use separate definitions for the Kerberos instance name and the UDP
port name.

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

29 years agoAdd DES_CBC_MD5 and DES_CBC_CRC with the V4 salt as default key/salt
Theodore Tso [Fri, 15 Sep 1995 18:23:25 +0000 (18:23 +0000)]
Add DES_CBC_MD5 and DES_CBC_CRC with the V4 salt as default key/salt
tuples to be added.  (Once proven's DES_* folding code is implemented,
we can shorten this list.) Eventually, this list should be read in
from kdc.conf.

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

29 years agoUpdate production rule of kerbsrc-nt.zip to be like the modified
Theodore Tso [Fri, 15 Sep 1995 09:08:10 +0000 (09:08 +0000)]
Update production rule of kerbsrc-nt.zip to be like the modified
kerbsrc.zip rule.

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

29 years agosim_client.c (main): Added better options parsing for more flexibility
Theodore Tso [Fri, 15 Sep 1995 09:03:42 +0000 (09:03 +0000)]
sim_client.c (main): Added better options parsing for more flexibility
in calling this program.  Worked around breakage in the Solaris
Streams Sockets emulation where getsockname() can not be used to find
out the address of a network interface.

configure.in: If we are including both -lsocket and -lnsl, #define
BROKEN_STREAMS_SOCKETS.

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

29 years agoStop after finding the first TGS key which matches an entry in the
Theodore Tso [Fri, 15 Sep 1995 05:50:03 +0000 (05:50 +0000)]
Stop after finding the first TGS key which matches an entry in the
key/salt list.  (Typo; added missing '!')

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

29 years ago * krb524d.c (usage): needs to get context to pass to
Mark Eichin [Thu, 14 Sep 1995 21:39:03 +0000 (21:39 +0000)]
* krb524d.c (usage): needs to get context to pass to
cleanup_and_exit so it does get freed, since it is allocated
before parsing arguments.
(main): change caller as well.

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

29 years agoWed Sep 13 23:53:19 1995 Mark Eichin <eichin@cygnus.com>
Mark Eichin [Thu, 14 Sep 1995 03:55:13 +0000 (03:55 +0000)]
Wed Sep 13 23:53:19 1995  Mark Eichin  <eichin@cygnus.com>

* kprop.h (KPROP_SRVTAB, KPROP_DEFAULT_FILE, KPROPD_DEFAULT_FILE,
KPROPD_DEFAULT_KDB5_EDIT, KPROPD_DEFAULT_KRB_DB, KPROPD_ACL_FILE):
removed configurable pathnames, they are now in osconf.h (which
gets included here via k5-int.h).

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

29 years agoWed Sep 13 23:50:02 1995 Mark Eichin <eichin@cygnus.com>
Mark Eichin [Thu, 14 Sep 1995 03:52:05 +0000 (03:52 +0000)]
Wed Sep 13 23:50:02 1995  Mark Eichin  <eichin@cygnus.com>

* osconf.h (KPROP_DEFAULT_FILE, KPROPD_DEFAULT_FILE,
KPROPD_DEFAULT_KDB5_EDIT, KPROPD_DEFAULT_KRB_DB): set defaults
correctly for kprop/kpropd in respect to prefix.

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

29 years ago(key_encrypt_keys): Remove equally errneous krb5_use_enctype() call
Theodore Tso [Thu, 14 Sep 1995 02:54:13 +0000 (02:54 +0000)]
(key_encrypt_keys): Remove equally errneous krb5_use_enctype() call
from key_encrypt_keys().

(key_string2key_keysalt and key_randomkey_keysalt): Install really
ugly hack to prevent these routines from munging the master_encblock.
This is not the correct fix.  Proven will be making the correct fix
which will involve removing these routines and using the corect
libkdb functions.

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

29 years agomoderately clean handling of allocated storage on error during partial
Mark Eichin [Thu, 14 Sep 1995 02:41:33 +0000 (02:41 +0000)]
moderately clean handling of allocated storage on error during partial
construction, in spite of not having exception handling in the language.

* krb5_decode.c (clean_krb5_authenticator, clean_krb5_ticket,
clean_krb5_enc_tkt_part,clean_krb5_ap_req,
clean_krb5_ap_rep_enc_part, clean_krb5_safe,
clean_krb5_priv_enc_part, clean_krb5_cred_enc_part,
clean_krb5_error): new static functions to free objects that may
be partially constructed.
(setup_buf_only, setup_no_tagnum, setup_no_length, setup): define
in terms of each other to remove duplication, then add local
variable error_cleanup to common declarations.
(clean_return): new macro, uses error_cleanup on rep if possible
and the allows the argument to be returned.
(alloc_field, check_apptag, next_tag, begin_structure,
get_field_body, get_field, get_lenfield_body, get_lenfield): use
clean_return.
(free_field): new macro to simplify the writing of clean_*.
(clear_field): macro to clean up preparation of fields for later
use by clean_* functions.
(decode_krb5_authenticator, decode_krb5_ticket,
decode_krb5_encryption_key, decode_krb5_enc_tkt_part,
decode_krb5_enc_kdc_rep_part, decode_krb5_as_rep,
decode_krb5_tgs_rep, decode_krb5_ap_req, decode_krb5_ap_rep,
decode_krb5_ap_rep_enc_part, decode_krb5_as_req,
decode_krb5_tgs_req, decode_krb5_kdc_req_body, decode_krb5_safe,
decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred,
decode_krb5_enc_cred_part, decode_krb5_error,
decode_krb5_authdata, decode_krb5_pwd_sequence,
decode_krb5_pwd_data, decode_krb5_padata_sequence,
decode_krb5_alt_method, decode_krb5_etype_info): change setup
macro to pass a cleanup method (or just free if there were no
partial allocations, or 0 for the two cases with no allocation at
all.) Also explicitly zero pointer subfields, since calloc is not
a safe way to assure that. Generally, provide for automatic
deallocation of storage on error.

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

29 years agoKeys are encrypted in the key of the master key encryption type, not
Theodore Tso [Thu, 14 Sep 1995 02:26:18 +0000 (02:26 +0000)]
Keys are encrypted in the key of the master key encryption type, not
in the keytype of the key!!!  Removed erroneous krb5_use_enctype()
call.

Fixed -Wall flames all over the file.

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

29 years ago(tgt_keysalt_iterate): Don't bash the master key encblock when
Theodore Tso [Wed, 13 Sep 1995 23:04:30 +0000 (23:04 +0000)]
(tgt_keysalt_iterate): Don't bash the master key encblock when
creating the various TGT keys.  Otherwise, the keys end up getting
encrypted using the wrong encryption algorithm.  Initialize a new
encblock, random_encblock, from the master key password.

(main): Prompt for the master key password ourselves, and store it
away so that it can be used by tgt_keysalt_iterate.

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

29 years agoClear the buffer before calling the SIOCGIFCONF ioctl. This makes
Theodore Tso [Wed, 13 Sep 1995 23:02:18 +0000 (23:02 +0000)]
Clear the buffer before calling the SIOCGIFCONF ioctl.  This makes
purify happy.

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

29 years agoRemove definition of the profile field, which is being desupported from kdc.conf
Theodore Tso [Wed, 13 Sep 1995 23:01:48 +0000 (23:01 +0000)]
Remove definition of the profile field, which is being desupported from kdc.conf

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

29 years agoFix memory leak. Free the default realm when we're done. Remove the
Theodore Tso [Wed, 13 Sep 1995 23:01:22 +0000 (23:01 +0000)]
Fix memory leak.  Free the default realm when we're done.  Remove the
"profile" parameter from the kdc.conf file.  This is bad idea,
architecturally.

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

29 years agoFix memory leaks and lint flames
Theodore Tso [Wed, 13 Sep 1995 22:14:59 +0000 (22:14 +0000)]
Fix memory leaks and lint flames

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

29 years agofetch_mkey.c (krb5_db_fetch_mkey): This routine now sets the master
Theodore Tso [Wed, 13 Sep 1995 21:05:01 +0000 (21:05 +0000)]
fetch_mkey.c (krb5_db_fetch_mkey): This routine now sets the master
encblock's crypto system using krb5_use_enctype() from the stored
keytype of the master key.

decrypt_key.c (krb5_dbekd_decrypt_key_data): Remove the encryption
type; the master_encblock should always be set correctly.

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

29 years agoSave the key used to generate the database files. Also generate a set
Theodore Tso [Wed, 13 Sep 1995 19:34:11 +0000 (19:34 +0000)]
Save the key used to generate the database files.  Also generate a set
of environment setup scripts.  These are the convenience of someone
who wishes to run some of the tests by hand, when tests are bombing.

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

29 years agoFree the auth context when freeing the GSSAPI context structure
Theodore Tso [Wed, 13 Sep 1995 19:33:23 +0000 (19:33 +0000)]
Free the auth context when freeing the GSSAPI context structure

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

29 years agoFix fencepost error; use argv[1] to test for a specfied host if argc
Theodore Tso [Wed, 13 Sep 1995 17:59:23 +0000 (17:59 +0000)]
Fix fencepost error; use argv[1] to test for a specfied host if argc
is >= 1, not just > 1.

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

29 years agoMinor updates in generation of kerbsrc.mac
Keith Vetter [Wed, 13 Sep 1995 03:49:49 +0000 (03:49 +0000)]
Minor updates in generation of kerbsrc.mac

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

29 years agoAdded inclusion of des_int.h
Keith Vetter [Wed, 13 Sep 1995 03:06:22 +0000 (03:06 +0000)]
Added inclusion of des_int.h

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

29 years agoRemoved duplicate definitions of KRB5_REALM_CANT_RESOLVE,
Keith Vetter [Wed, 13 Sep 1995 03:03:54 +0000 (03:03 +0000)]
Removed duplicate definitions of KRB5_REALM_CANT_RESOLVE,
PROF_NO_SECTION and PROF_NO_RELATION

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

29 years agoRevert keytype -> emctype changes.
Ezra Peisach [Tue, 12 Sep 1995 17:24:11 +0000 (17:24 +0000)]
Revert keytype -> emctype changes.
Document the Macintosh changes to adm_conn.c (hardwired path for adm cache)

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

29 years agoUndo MACINTOSH changes to path in these files - theye were correct. The
Ezra Peisach [Tue, 12 Sep 1995 17:07:46 +0000 (17:07 +0000)]
Undo MACINTOSH changes to path in these files - theye were correct. The
Makefile.in alread specifies the right locations to include so that
,krb5/...> is not required for unix

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

29 years agoReintegrate the keytab -> enctype changes
Ezra Peisach [Tue, 12 Sep 1995 17:01:25 +0000 (17:01 +0000)]
Reintegrate the keytab -> enctype changes

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

29 years agoPut back in the keytype -> enctype changes
Ezra Peisach [Tue, 12 Sep 1995 16:48:09 +0000 (16:48 +0000)]
Put back in the keytype -> enctype changes

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

29 years agoReintegrate Macintosh changes
Ezra Peisach [Tue, 12 Sep 1995 16:43:27 +0000 (16:43 +0000)]
Reintegrate Macintosh changes

t_ser.c: Work around an optimizer bug in gcc under OSF/1 2.1.

The timeofday calls were left in the stage as described in the ChangeLog

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

29 years agoDocument that Makefile.in has changed.
Ezra Peisach [Tue, 12 Sep 1995 02:08:35 +0000 (02:08 +0000)]
Document that Makefile.in has changed.
Replace top level Makefile with the one indicating that one should read the
documentation. (not one generated from Makefile.in)

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

29 years agoIntegrate Macintosh changes into previous sources
Ezra Peisach [Tue, 12 Sep 1995 01:25:10 +0000 (01:25 +0000)]
Integrate Macintosh changes into previous sources

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

29 years agoReintegrate changes lost during Macintosh checkin
Ezra Peisach [Tue, 12 Sep 1995 01:14:12 +0000 (01:14 +0000)]
Reintegrate changes lost during Macintosh checkin

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

29 years agoReinstate previous changes that were lost
Ezra Peisach [Tue, 12 Sep 1995 00:56:25 +0000 (00:56 +0000)]
Reinstate previous changes that were lost

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

29 years agoReinstate the keytype -> enctype changes and keep the new Mac changes
Ezra Peisach [Tue, 12 Sep 1995 00:42:25 +0000 (00:42 +0000)]
Reinstate the keytype -> enctype changes and keep the new Mac changes

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

29 years agoRvert lost changes
Ezra Peisach [Tue, 12 Sep 1995 00:27:48 +0000 (00:27 +0000)]
Rvert lost changes

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

29 years agoReintegrate the keytype->enctype changes
Ezra Peisach [Tue, 12 Sep 1995 00:24:13 +0000 (00:24 +0000)]
Reintegrate the keytype->enctype changes

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

29 years agoInitial version of a sscanf() replacement, for those platforms (like
Theodore Tso [Tue, 12 Sep 1995 00:22:10 +0000 (00:22 +0000)]
Initial version of a sscanf() replacement, for those platforms (like
Macroloss) that don't have sscanf().

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

29 years agoReplace nuked history in ChangeLog
Ezra Peisach [Tue, 12 Sep 1995 00:18:58 +0000 (00:18 +0000)]
Replace nuked history in ChangeLog

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

29 years agoReintegrate the keytype->enctype changes
Ezra Peisach [Tue, 12 Sep 1995 00:14:28 +0000 (00:14 +0000)]
Reintegrate the keytype->enctype changes

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

29 years agoReintegrate the keytype -> enctype changes
Ezra Peisach [Tue, 12 Sep 1995 00:11:23 +0000 (00:11 +0000)]
Reintegrate the keytype -> enctype changes

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

29 years agoRevert back proven's changes which were removed
Ezra Peisach [Tue, 12 Sep 1995 00:08:35 +0000 (00:08 +0000)]
Revert back proven's changes which were removed

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

29 years agoReintegrate Macintosh changes while keeping Proven's changes
Ezra Peisach [Mon, 11 Sep 1995 23:52:35 +0000 (23:52 +0000)]
Reintegrate Macintosh changes while keeping Proven's changes

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

29 years agoReplace function declaration back to taking an int. SOCKET is defined as
Ezra Peisach [Mon, 11 Sep 1995 22:00:16 +0000 (22:00 +0000)]
Replace function declaration back to taking an int. SOCKET is defined as
unsigned int under unix and this causes a prototype error

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

29 years agoConvert C+ comment to older 'standard' C style comment
Ezra Peisach [Mon, 11 Sep 1995 19:33:00 +0000 (19:33 +0000)]
Convert C+ comment to older 'standard' C style comment

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

29 years agoMac Beta 1 submission
Keith Vetter [Mon, 11 Sep 1995 19:06:45 +0000 (19:06 +0000)]
Mac Beta 1 submission

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

29 years agoWhen checking for master in tthe list of valid encryption types, do not
Ezra Peisach [Sun, 10 Sep 1995 14:54:30 +0000 (14:54 +0000)]
When checking for master in tthe list of valid encryption types, do not
stop after checking the first one.

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

29 years agoAdd des-cbc-crc to supported_enctypes as krb5_edit requires it to generate random...
Ezra Peisach [Sun, 10 Sep 1995 14:12:52 +0000 (14:12 +0000)]
Add des-cbc-crc to supported_enctypes as krb5_edit requires it to generate random keys

Note: this is to work around a misfeature which should be changed.

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

29 years agosupported_keytypes -> supported_enctypes in the kdc.conf file
Ezra Peisach [Sat, 9 Sep 1995 20:30:16 +0000 (20:30 +0000)]
supported_keytypes -> supported_enctypes in the kdc.conf file

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

29 years agoSet the encryption type before decrypting
Ezra Peisach [Sat, 9 Sep 1995 19:05:42 +0000 (19:05 +0000)]
Set the encryption type before decrypting

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

29 years ago(gss_delete_sec_context): Add extra indirection so that we actually
Theodore Tso [Sat, 9 Sep 1995 04:17:29 +0000 (04:17 +0000)]
(gss_delete_sec_context): Add extra indirection so that we actually
fetch the context correctly.

(gss_accept_sec_context): Remove unused code.

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

29 years agodecrypt_key.c: Upon error, after freeing contents field, set to
Ezra Peisach [Fri, 8 Sep 1995 23:55:28 +0000 (23:55 +0000)]
decrypt_key.c: Upon error, after freeing contents field, set to
null to indicate to upper levels that it is really empty.

Another bug discovered by purify...

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

29 years agoChanges to compile under AIX--made a while back but never committed
Sam Hartman [Fri, 8 Sep 1995 20:01:16 +0000 (20:01 +0000)]
Changes to compile under AIX--made a while back but never committed

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

29 years agoIf V4 compatibility is not enabled, provide a dummy routine for
Ezra Peisach [Fri, 8 Sep 1995 11:38:11 +0000 (11:38 +0000)]
If V4 compatibility is not enabled, provide a dummy routine for
loading a v4 database.

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

29 years agoAdded Macintosh source tree for mac development
Keith Vetter [Fri, 8 Sep 1995 03:16:18 +0000 (03:16 +0000)]
Added Macintosh source tree for mac development

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

29 years agoRenamed a file since the Mac can't have two files with the same name
Keith Vetter [Fri, 8 Sep 1995 03:07:52 +0000 (03:07 +0000)]
Renamed a file since the Mac can't have two files with the same name

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

29 years ago * scc_gennew.c (krb5_scc_generate_new): don't use automatic
Mark Eichin [Thu, 7 Sep 1995 22:14:58 +0000 (22:14 +0000)]
* scc_gennew.c (krb5_scc_generate_new): don't use automatic
aggregate initialization.

so we can still compile under sunos

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

29 years agoGlobally change use of ENCTYPE_DES_CBC_MD5 to DEFAULT_KDC_ENCTYPE, so
Theodore Tso [Thu, 7 Sep 1995 21:56:02 +0000 (21:56 +0000)]
Globally change use of ENCTYPE_DES_CBC_MD5 to DEFAULT_KDC_ENCTYPE, so
that we use the same encryption type by default for all KDC server
programs.

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

29 years agosrv_key.c: Globally change use of ENCTYPE_DES_CBC_MD5 to
Theodore Tso [Thu, 7 Sep 1995 21:55:29 +0000 (21:55 +0000)]
srv_key.c: Globally change use of ENCTYPE_DES_CBC_MD5 to
DEFAULT_KDC_ENCTYPE, so that we use the same encryption type by
default for all KDC server programs.

srv_main.c (main): Set the default realm from the -r argument, so that
correct defaulting takes place for things like krb5_parse().

srv_net.c (net_init): Use KRB5_ADM_SERVICE_INSTANCE to determine the
service instance, instance of KRB5_ADMIN_SERVICE_NAME.

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