Mark Eichin [Fri, 21 Apr 1995 00:21:07 +0000 (00:21 +0000)]
Changes for testsuite from Ian Taylor <ian@cygnus.com>
* kerberos5.c (telnet_srvtab): New global variable.
(telnet_krb5_realm): New global variable.
(kerberos5_send): If telnet_krb5_realm is set, copy it into
creds.server. Pass new_creds to krb5_mk_req_extended, not &creds.
Pass &new_creds->keyblock to krb5_copy_keyblock_contents, not
new_creds.
(kerberos5_is): pass telnet_srvtab in to krb_rd_req.
(kerberos5_forward): If telnet_krb5_realm is set, copy it into
local_creds->server.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5414
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 20 Apr 1995 22:59:52 +0000 (22:59 +0000)]
dejagnu test cases. (from Ian Taylor <ian@cygnus.com>)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5413
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 20 Apr 1995 22:20:47 +0000 (22:20 +0000)]
Changes from Ian Taylor <ian@cygnus.com> to support testsuite.
* adm_extern.h: declare admin_port.
* adm_extern.c: define admin_port.
* adm_server.c (process_args): set admin_port from -p command line
argument.
(usage): document -p port option.
* adm_network.c (setup_network): use admin_port if set.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5412
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 20 Apr 1995 22:18:34 +0000 (22:18 +0000)]
added missing htons
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5411
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 20 Apr 1995 22:11:56 +0000 (22:11 +0000)]
Changes from Ian Taylor <ian@cygnus.com> to support testsuite.
* adm_extern.h: declare admin_port.
* adm_extern.c: define admin_port.
* adm_server.c (process_args): set admin_port from -p command line
argument.
(usage): document -p port option.
* adm_network.c (setup_network): use admin_port if set.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5410
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 21:57:59 +0000 (21:57 +0000)]
Move the define of BACKWARDS_BITMASK_COMPAT to asn1_k_decode.c, since
it doesn't #include krbasn1.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5409
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 20 Apr 1995 21:57:26 +0000 (21:57 +0000)]
* aclocal.m4 (.ct.c): use $(RM) instead of plain rm
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5408
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Thu, 20 Apr 1995 21:55:55 +0000 (21:55 +0000)]
Some PC fix-ups due to the include structure changing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5407
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 21:40:03 +0000 (21:40 +0000)]
mk_req.c (krb5_mk_req): Use krb5_sname_to_principal() in order
to create the service principal from the service and
hostname pair. This allows for the host cannoncialization
to work correctly.
mk_req_ext.c (krb5_mk_req_extended): Revamp checksum handling
code so that no checksum is performed in in_data is NULL,
and the special case handing of cksumtype == 0x8003 for
the GSSAPI library is handled correctly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5406
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Thu, 20 Apr 1995 20:01:50 +0000 (20:01 +0000)]
Changes for the PC due to tytso's changing the include structure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5405
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Thu, 20 Apr 1995 18:07:46 +0000 (18:07 +0000)]
Updated windows readme file to reflect gssapi and makefile changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5398
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Thu, 20 Apr 1995 17:59:30 +0000 (17:59 +0000)]
Some top level makefile changes for the PC--does some of the Makefile
configuring on the Unix side versus the PC side.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5396
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Thu, 20 Apr 1995 17:21:36 +0000 (17:21 +0000)]
Smarter PC makefile pulling .h files from the gssapi world
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5395
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 17:14:50 +0000 (17:14 +0000)]
Remove .h files which are now collapsed into krb5.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5394
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 20 Apr 1995 17:14:26 +0000 (17:14 +0000)]
Modify usage to reflect reality. Modified getopt call to recognize the already
coded -r option. Cleanup memory on exit and set exit status to number of errors
found.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5393
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 16:09:48 +0000 (16:09 +0000)]
Use $(CC) instead of cc
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5392
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 16:09:34 +0000 (16:09 +0000)]
Add include of <errno.h>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5391
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 15:48:22 +0000 (15:48 +0000)]
Add include of adm_defs.h, since that's no longer included by krb5.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5390
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 15:44:40 +0000 (15:44 +0000)]
configure.in: Add checking for SIZEOF_SHORT, SIZEOF_INT, and
SIZEOF_LONG, so we don't need to depend on getting this
information from include/krb5/autoconf.h
gssapi.h: Removed dependence on krb5 include files.
gssapiP_generic.h: We need to include k5-config in order to get
Windows specific hackery. Somewhat of a wart, but this is a
gssapi internal header file, so the rest of the world doesn't
have to see this.
util_token.c: Define VALID_INT, instead of relying on this being
defined by krb5.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5388
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 15:39:52 +0000 (15:39 +0000)]
removed unneeded #include of wordsize.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5387
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 15:38:43 +0000 (15:38 +0000)]
Remove support for HAS_ANSI_CONST (that was needed only for
compatibility with the old imake build; autoconf uses -Dconst=), and
HAS_ANSI_VOLATILE, which isn't used at all.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5386
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 15:37:40 +0000 (15:37 +0000)]
Inlined the following include files in krb5.h, to simplify the header
files which actually need to be installed: wordsize.h, base-defs.h,
hostaddr.h, fieldbits.h, proto.h, macros.h, error_def.h, safepriv.h,
ccache.h, rcache.h, keytab.h, func-proto.h, k5-free.h. Also moved the
#include of k5-config.h and k5-errors.h to k5-int.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5385
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 14:58:28 +0000 (14:58 +0000)]
Add profile directory
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5383
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 20 Apr 1995 14:57:45 +0000 (14:57 +0000)]
Initial checkin of the profile library
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5382
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 19 Apr 1995 21:49:57 +0000 (21:49 +0000)]
asn1_k_decode.c (asn1_decode_krb5_flags): Make the function
accept bit strings which are less 32 bits long.
(RFC-1510 makes no guarantee that the length of the bit
string must be 32 bits long; the old code required that
the length of the bit string must be exactly 32 bits.)
Flip the bits with respect to a 32-bit boundary, since
that's what the old ASN.1 glue code did. (The values in
fieldbits.h are encoded backwards, for no good reason.)
If BACKWARDS_BITMASK_COMPAT is defined, then only flip the
bits if the high 16 bits are clear and there are some bits set
in the low 16 bits. This preserves interoperabilty with
the old beta 4 distribution, which sent the bit string
without flipping them around.
asn1_k_encode.c (asn1_encode_krb5_flags): Flip the bits with
respect to a 32-bit boundary, since that's what the
old ASN.1 glue code did. (The values in fieldbits.h
are encoded backwards, for no good reason.)
krb_asn1.h: #define BACKWARDS_BITMASK_COMPAT. Add extern
declaration for asn1_swbits, which is needed for the
bit reversing code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5380
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Apr 1995 18:03:52 +0000 (18:03 +0000)]
When default realm specified on command line, call krb5_set_default_realm so
that created keys will have the proper realm. (which may not be the same
as the machines default realm)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5379
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Apr 1995 17:59:06 +0000 (17:59 +0000)]
Added storing of default realm in context. Global default realm
variable removed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5378
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Apr 1995 17:45:22 +0000 (17:45 +0000)]
Initialize and free default realm in context
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5377
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Apr 1995 17:28:33 +0000 (17:28 +0000)]
Removed global_context hack
Added prototype for krb5_set_default_realm
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5376
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Apr 1995 17:27:51 +0000 (17:27 +0000)]
Added default_realm to krb5_context structure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5375
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 19 Apr 1995 15:29:00 +0000 (15:29 +0000)]
Change getdate.o to getdate.c in the SRCS list
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5374
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 19 Apr 1995 15:26:36 +0000 (15:26 +0000)]
Change depend: to depend::
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5373
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Wed, 19 Apr 1995 00:12:57 +0000 (00:12 +0000)]
Bug fix in the windows telnet program
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5372
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Tue, 18 Apr 1995 23:23:13 +0000 (23:23 +0000)]
Changed compile flags on windows cns program
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5371
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:54:15 +0000 (21:54 +0000)]
Add production for creating the .depend file, and updating the
Makefile.in with the new dependencies.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5370
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:52:39 +0000 (21:52 +0000)]
Sed script which postprocesses the output from cc -M for "make depend"
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5369
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:51:11 +0000 (21:51 +0000)]
kpropd uses fork instead of vfork, because it's closing file
descriptors in the child.
Print out the pid of the child process if debugging is enabled.
Use _exit() instead exit() after a fork(), so that child process
doesn't cause the stdio buffers don't get flushed twice.
When debugging is enabled and kpropd can't bind to the port, it should
try binding again after setting SO_REUSEADDR on the socket. This
avoids problems when debugging modifications to kprop/kpropd or its
setup, when kpropd is run twice quickly in succession.
kpropd shouldn't signal(SIGCHLD, SIG_IGN) in the parent. Instead, it
should wait() until the child exits. This was causing problems
because setting SIGCHLD to SIG_IGN under SYSV causes child processes
to get reaped automatically, so the wait() for kdb5_edit was failing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5368
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:49:44 +0000 (21:49 +0000)]
an_to_ln.c (dbm_an_to_ln): Don't compile dbm_an_to_ln() if
USE_DBM_LNAME isn't defined.
hst_realm.c (krb5_get_host_realm): Eliminate memory leak in the
unlikely case that gethostname fails.
If the krb.realms file isn't available, use the default
realm of the host.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5367
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:48:47 +0000 (21:48 +0000)]
* sendauth.c (krb5_sendauth): initialize error return parameter
* copy_princ.c (krb5_copy_principal): Fix bug where
krb5_copy_principal can fail if it is asked to copy a
principal with a zero-length component on a system where
malloc(0) returns null.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5366
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:47:36 +0000 (21:47 +0000)]
Remove unneeded include of adm_defs.h (since it's now included by krb5.h)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5365
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:46:38 +0000 (21:46 +0000)]
Set SUPPORT_DESMD5 attribute for the krbtgt entry
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5364
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 18 Apr 1995 21:45:50 +0000 (21:45 +0000)]
If there is an error while making in a subdirectory, abort the make in
the parent directory. This makes it more obvious when we have a
problem in the tree.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5363
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Tue, 18 Apr 1995 17:47:22 +0000 (17:47 +0000)]
Forgot a makefile change for the Windows gssapi dll
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5362
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 18 Apr 1995 15:00:12 +0000 (15:00 +0000)]
Spelling corrections. (was testing a new version of ispell)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5361
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Tue, 18 Apr 1995 01:09:33 +0000 (01:09 +0000)]
Cosmetic changes for the Windows CNS program
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5360
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 14 Apr 1995 22:00:16 +0000 (22:00 +0000)]
Add Cygnus's "Sanitize" system to the krb5 tree, to make it easier to do
releases....
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5359
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 14 Apr 1995 12:49:54 +0000 (12:49 +0000)]
com_err.h: If FAR is not defined, define it away
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5358
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 14 Apr 1995 12:32:16 +0000 (12:32 +0000)]
aclocal.m4 (MAKE_SUBDIRS, _MAKE_SUBDIRS): Creatre new macro
_MAKE_SUBDIRS which works like MAKE_SUBDIRS except that it
is possible for the target name in the parent Makefile and
the target name which should be built in each of the
subdirectories can be different. MAKE_SUBDIRS is now a
special case of _MAKE_SUBDIRS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5357
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 14 Apr 1995 12:30:10 +0000 (12:30 +0000)]
Makefile.in, configure.in: Move dependency for all-$WHAT back
into Makefile.in so that the Windows port can pick up the
line (since it doesn't use configure). Instead, change
the name of target which causes the subdirectories to be
built under Unix, and make that a dependency for all-unix.
Gross, but this should fix things for both DOS and Windows.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5356
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Fri, 14 Apr 1995 03:19:19 +0000 (03:19 +0000)]
Removed 'unreferenced local variable' problem
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5355
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Fri, 14 Apr 1995 00:56:21 +0000 (00:56 +0000)]
Windows global stuff:
o removed INTERFACE from non-api functions
o add FAR to pointers visible to the world
o made the tests for __STDC__ also check for _WINDOWS
o creates GSSAPI.DLL & GSSAPI.LIB as per spec.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 13 Apr 1995 16:35:42 +0000 (16:35 +0000)]
asn1_k_decode.c (setup, next_tag, apptag, get_field_body,
get_lenfield_body, asn1_decode_ticket): Use the taglength to
determine whether or not the indefinite encoding was used, and
if so skip over the termination flag bytes in the ASN.1
stream.
asn1buf.c (asn1buf_imbed, asn1buf_remains): Make changes to allow for
indefinite encodings. asn1buf_remains() is now only used for
decoding structures and arrays (i.e., asn.1 constructs which
terminate indefinite encodings with two zero octets.
[ Note these fixes to support indefinite encoding aren't
terribly clean; some invalid encodings may be accepted when they
should not be. This should be looked at in more detail later.]
asn1_get.c (asn1_get_tag): Inline original asn1buf_remains() code,
since asn1_get_tag doesn't use asn1buf_remains in the context of
a structure or an array.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5353
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 11 Apr 1995 18:25:12 +0000 (18:25 +0000)]
that everything is really up to date
errors.tex: Removes isode (yay!!)
Updated tables to reflect current reality
Added asn.1 tables and magic number table
Makefile: Two pass latex processing of library file will now realize
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5351
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Fri, 7 Apr 1995 22:39:16 +0000 (22:39 +0000)]
Changed syntax for windows on the stored ccache file name
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5345
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Fri, 7 Apr 1995 22:29:33 +0000 (22:29 +0000)]
Windows cns: user can now specify the ccache file on the options dialog.
Windows telnet: accepts and remembers port number specified after the host
name in the initial dialog.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5344
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Thu, 6 Apr 1995 03:49:47 +0000 (03:49 +0000)]
Bug fixes or better error handling for the following 4 Windows bugs
(note, these changes haven't yet been tested on the PC which were
failing so no guarantee that they fully work):
a) GUI to cns improved so that you don't need a resize for the widgets to
align properly, and so the interaction of typing: "username cr password
cr" is all you need to do to get you a ticket.
b) cns uses krb5_us_gettimeofday instead of krb5_timeofday because the
former is more accurate and handles timezones. Probably should make
the latter just call the former.
c) Added SOCKET_INIT and SOCKET_DESTROY around krb5_sendto_kdc to prevent
some tcp/ip stacks from locking up after 8 uses.
d) Added a new error message and better error handling to give more
precision as to why one PC was getting the error 'Cannot find KDC
for requested realm.'
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5342
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 4 Apr 1995 01:56:56 +0000 (01:56 +0000)]
pop_init.c (pop_init): Put in a type cast to shut up the compiler.
Popper is still using gethostbyname()'s static data wrong;
this should be fixed eventually.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5340
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Sat, 1 Apr 1995 03:36:43 +0000 (03:36 +0000)]
Fixed low-level i/o routine (dup) not being STDC on the PC
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5337
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 1 Apr 1995 03:16:14 +0000 (03:16 +0000)]
Initialize auth_context to NULL before calling sendauth()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5336
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 1 Apr 1995 03:15:24 +0000 (03:15 +0000)]
Use the local autoconf when rebuilding the configure script
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5335
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 1 Apr 1995 03:14:56 +0000 (03:14 +0000)]
Use configure to see if unistd.h needs to be included. Remove
leftover hair from emacs config.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5334
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 1 Apr 1995 01:23:31 +0000 (01:23 +0000)]
Move the dependency which causes all-$(WHAT) to be built so that it
occurs after the "make all" subdirectories rule.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5333
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Sat, 1 Apr 1995 00:58:28 +0000 (00:58 +0000)]
krb5_get_in_tkt returns proper error on clock skew mismatches
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5332
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Sat, 1 Apr 1995 00:55:50 +0000 (00:55 +0000)]
Can now specify port to telnet to on the command line
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5331
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 22:06:31 +0000 (22:06 +0000)]
Zero out the entry before inserting it
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5330
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 21:54:42 +0000 (21:54 +0000)]
Remove CFLAGS=@CCOPTS@ line, which is in pre.in
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5329
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 21:51:05 +0000 (21:51 +0000)]
Make sure the context is initialized before it is used
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5328
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 21:48:37 +0000 (21:48 +0000)]
* rc_dfl.c (krb5_rc_dfl_expunage): Close the old, temporary reply
cache after we're done expunging it.
* rc_io.c (krb5_rc_io_move): Make duplicate copies of the filename
and the file descriptor (via malloc/strcpy and dup), so
that the old rc_io object can be cleanly closed without
affecting the new rc_io object.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5327
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 21:33:18 +0000 (21:33 +0000)]
* realm_dom.c (krb5_get_realm_domain): Don't indent #ifdef's!
* hst_realm.c (krb5_get_host_realm): Don't indent #ifdef's!
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5326
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 21:13:16 +0000 (21:13 +0000)]
* configure.in (CONFIG_RULES): Replaced
(Why was this removed?)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5325
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 21:09:13 +0000 (21:09 +0000)]
Back out previous change so that it doesn't break people who are using
VPATH to have separate build directories. (See comments in the
Makefile.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5324
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 19:55:28 +0000 (19:55 +0000)]
Remove unused file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5323
dc483132-0cff-0310-8789-
dd5450dbe970
Jonathan Kamens [Fri, 31 Mar 1995 16:20:28 +0000 (16:20 +0000)]
Fix typos in Mike's changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5319
dc483132-0cff-0310-8789-
dd5450dbe970
Jonathan Kamens [Fri, 31 Mar 1995 16:18:36 +0000 (16:18 +0000)]
Changes from shanzer for API versioning tests
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5318
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 31 Mar 1995 05:46:29 +0000 (05:46 +0000)]
Fix typo which caused new_keytab to not get freed, causing a memory
leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5317
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Fri, 31 Mar 1995 02:05:49 +0000 (02:05 +0000)]
Commit on the whole tree to make a checkpoint for a working windows world
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5315
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 29 Mar 1995 22:06:26 +0000 (22:06 +0000)]
No need to have the session_key established for mutual authentication
to work. (That's only done if ENCRYPTION is defined.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5313
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 29 Mar 1995 20:45:44 +0000 (20:45 +0000)]
Add a makefile dependency for libtelnet.a, so that the executable gets
automatically relinked when the library changes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5312
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 29 Mar 1995 20:09:51 +0000 (20:09 +0000)]
Allow mutual authentication even if the ENCRYPTION option is not
turned on.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5311
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 16:59:39 +0000 (16:59 +0000)]
* def.h: Replace STDARG_PROTOTYPES with HAVE_STDARG_H
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5310
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 16:58:10 +0000 (16:58 +0000)]
* Makefile.in: Fix up Mac makefile.
* error_message.c: For errno, use strerror if HAS_STRERROR.
* configure.in: Define HAS_STRERROR.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5309
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 16:55:01 +0000 (16:55 +0000)]
* ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now.
FIXME, this needs to find the Preferences folder and use that.
FIXME, shouldn't be conditioned on HAVE_MACSOCK_H.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5308
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Wed, 29 Mar 1995 05:06:42 +0000 (05:06 +0000)]
Added functionality for windows to read default file locations from
windows ini files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5307
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Wed, 29 Mar 1995 04:20:02 +0000 (04:20 +0000)]
Chasing an elusive nmake bug
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5306
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Wed, 29 Mar 1995 04:13:53 +0000 (04:13 +0000)]
Added capability for windows version to read default values out of an ini file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5305
dc483132-0cff-0310-8789-
dd5450dbe970
Keith Vetter [Wed, 29 Mar 1995 04:07:14 +0000 (04:07 +0000)]
Moved the differing parts of osconf.win into osconf.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5304
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:56:31 +0000 (02:56 +0000)]
* Makefile.in: Fix up Mac build process somewhat. Not complete
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5303
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:51:56 +0000 (02:51 +0000)]
* Makefile.in (all): Run all-$(WHAT).
(unixmac): Build includes at this time.
(LDFLAGS): Punt duplicated setting.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5302
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:50:55 +0000 (02:50 +0000)]
* Makefile.in (all): Split into all-$(WHAT).
(unixmac): Add.
(libupdate): Use $(RM).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5301
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:49:44 +0000 (02:49 +0000)]
* configure.in (AC_REPLACE_FUNCS): Add getuid to the list.
* getuid.c: Simple getuid() to fake out single-user systems.
* strcasecmp.c: Remove duplicated <sys/types.h> and u_char.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5300
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:46:29 +0000 (02:46 +0000)]
* DNR.c: Add Apple MacTCP source file for domain name resolution.
* macsock.c: Add fake socket support routines for MacTCP.
* Makefile.in (OBJS, SRCS): Add DNR and macsock.
* ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now.
FIXME, this needs to find the Preferences folder and use that.
FIXME, shouldn't be conditioned on HAVE_MACSOCK_H.
* gmt_mktime.c: Use HAVE_SYS_TYPES_H.
* krbfileio.c: Remove <sys/types.h>.
* localaddr.c, sendto_kdc.c: Convert to more generic socket
support. Use closesocket instead of close, SOCKET_ERRNO rather
than errno, SOCKET rather than int, etc.
* localaddr.c: Use getmyipaddr() from macsock.c, if on Mac.
Add FIXME for multiple local addresses.
* lock_file.c: Provide a dummy version for MacOS.
* read_pwd.c (ECHO_PASSWORD): Add #ifdef's to avoid all the ioctls
and other stuff that turn off echoing. This is useful for debugging
on MacOS. FIXME: ECHO_PASSWORD needs to be added to configure.in.
* ustime.c: Bring in Mac-specific time-and-timezone code. It
probably isn't hooked up correctly, yet.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5299
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:35:05 +0000 (02:35 +0000)]
* rd_req_sim.c: Really remove the file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5298
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:34:03 +0000 (02:34 +0000)]
* Makefile.in (BUILDTOP2, etc): Make it possible
to build the error tables on Unix before a Mac build.
(all-mac): Don't build $(HDRS) on Mac.
(unixmac): Build `includes'.
(clean-mac): Add.
(includes, clean, .SUFFIXES, .et.h, .et.c): Add, to make it
possible to run `make -f Makefile.in unixmac' successfully.
* configure.in (ASN1_{HDRS,OBJS,SRCS, BOGUS): Remove, unused.
(CopyHeader rules): Remove, they're now in Makefile.in.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5297
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:28:37 +0000 (02:28 +0000)]
* Makefile.in (unixmac): Add to build header files
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5296
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:27:41 +0000 (02:27 +0000)]
* Makefile.in (clean-mac): Add.
* configure.in (LinkFile's): Put `./' on libraries to ease Mac
translation.
(AppendRule all-unix): Rename from AppendRule all.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5295
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:14:16 +0000 (02:14 +0000)]
* Makefile.in (KRB5_HEADERS, install): `Make install' now works.
* configure.in (WITH_KRB5ROOT): For `make install'.
* krb5.h: Include "k5-errors.h" rather than "errors.h".
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5294
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:12:14 +0000 (02:12 +0000)]
* k5-errors.h: Rename errors.h (which duplicated a standard Mac
header name, causing a problem).
* AddressXlation.h, GetMyIPAddr.h, MacTCPCommonTypes.h, TCPPB.h,
UDPPB.h: Add MacTCP header files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5293
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:08:58 +0000 (02:08 +0000)]
* Makefile.in (KRB5_HEADERS, install): Account for file renames.
(all-mac): Add.
* configure.in (CONFIG_RULES): Remove.
(krb5_sigtype): Define as either void or int.
* encryption.h: Insert parentheses in macros to avoid mis-expansion.
* k5-config.h: Further parameterize socket support.
* macsock.h: Support connect(), recv(), send(), getmyipaddr().
(WSAGetLastError): Fix typo -- there's no argument to this macro.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5292
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 02:01:43 +0000 (02:01 +0000)]
* mac-config.cache: Correct some entries.
* mac-mf.sed: Improve conversion of pathnames, $(srcdir),
support linking MPW tools (for make check, kinit).
* mac-pre.in (.c.o): Add -sym on for debugging.
(LDFLAGS): Remove ToolLibs.o.
(RANLIB, ARCHIVE): Make these work.
(MAKE): Make recursive makes work, with BuildProgram.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5291
dc483132-0cff-0310-8789-
dd5450dbe970
John Gilmore [Wed, 29 Mar 1995 01:57:39 +0000 (01:57 +0000)]
* Makefile.in (LDFLAGS): Remove, conflicts with pre.in.
(kinit): Link with $(CC) $(LDFLAGS), to work on the Mac.
* kinit.c (HAVE_PWD_H): Use.
(NO_KEYTAB): Skip keytab support if defined.
FIXME: NO_KEYTAB needs to be set by configure.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5290
dc483132-0cff-0310-8789-
dd5450dbe970