Marc Horowitz [Mon, 22 Jul 1996 20:49:46 +0000 (20:49 +0000)]
this commit includes all the changes on the OV_9510_INTEGRATION and
OV_MERGE branches. This includes, but is not limited to, the new openvision
admin system, and major changes to gssapi to add functionality, and bring
the implementation in line with rfc1964. before committing, the
code was built and tested for netbsd and solaris.
New routine which does the timebomb and version server checking.
Windows 3.1 doesn't allow you to do any messaging calls in LibMain, so
the timebomb and version server code was moved to krb5_win_do_init(),
which is called by krb5_init_context().
Richard Basch [Tue, 9 Jul 1996 20:46:59 +0000 (20:46 +0000)]
Ted left off Ezra & me in the contributors to k5b6. I'll let Ted re-work
the text for b7, if he wants... I just added the names to the MIT folks
past&present...
* kinit.c (krb5_tgt_gen): Code from krb5_validate_tgt() modified
to handle both renewal and validation of postdated tickets.
(krb5_renew_tgt): Takes a credential cache with a tgt with the
"renewable flag" set and asks ths kdc to renew it. Cache is wiped
and only new tgt is stored.
(main): New option -R to renew tickets.
* get_creds.c: (krb5_get_credentials_val_renew_core) Combine
common internals needed from krb5_get_credentials_validate()
and used by new function krb5_get_credentials_renew()
* gc_frm_kdc.c (krb5_get_cred_from_kdc_renew): A wrapper that
passes KDC_OPT_RENEW to the static
krb5_get_cred_from_kdc_opt so that kinit can use it.
Ezra Peisach [Thu, 27 Jun 1996 14:38:14 +0000 (14:38 +0000)]
* asn1buf.c (asn12krb5_buf): Initialize magic fields of structure.
(asn1buf_expand): If pre-allocating memory for future use, store
proper end of buffer.
This was a big performance hit in asn.1 routines as every time it tried to
decode an octet, 200 bytes were allocated (for future use), but the
buffer structure pnly thought that one byte was allocated and the next
time through would try to allocate memory again.
Tom Yu [Mon, 17 Jun 1996 22:39:13 +0000 (22:39 +0000)]
* aclocal.m4 (CHECK_DB): explicitly set $LIBS before calling
AC_CHECK_DBM_PROTO so that if a dbm lib is found it is
linked against while checking for function existence.
This may need some more testing.
Ezra Peisach [Sat, 15 Jun 1996 08:25:39 +0000 (08:25 +0000)]
Initialize auth_context to NULL before calling krb5_sendauth - otherwise
it is treated as pointing to valid memory... (Patch provided by Bill
Sommerfeld)
Kevin Mitchell [Thu, 13 Jun 1996 22:38:44 +0000 (22:38 +0000)]
* ftpd.c (authdata): misplaced braces caused server to not be able to
use ftp principle if it was present. Client looks for ftp
first, then tries host; ftpd was looking only for host.
Barry Jaspan [Thu, 13 Jun 1996 14:48:21 +0000 (14:48 +0000)]
don't change the error table name (leave it ovk); I'm not sure if this
matters for compatibility, but there is no good reason to change it
(and it was never changed in the code anyway)
Theodore Tso [Thu, 13 Jun 1996 00:21:33 +0000 (00:21 +0000)]
New variable which is used to control the /pagesize parameter for
Windows 16. (Obviously we're suffering from library size bloat if we
need to set this.)
Tom Yu [Wed, 12 Jun 1996 23:34:35 +0000 (23:34 +0000)]
* acgeneral.m4 (AC_OUTPUT_FILES): allow for multiple files in
AC_OUTPUT; this is done via
AC_OUTPUT(outfile[:infile1[+infile2[+infile3...]]]). The
source files are concatenated and substituted over.
Theodore Tso [Wed, 12 Jun 1996 05:32:06 +0000 (05:32 +0000)]
com_err.h:
error_table.h: Add Windows-32 ifdefs. Change use of INTERFACE to
KRB5_CALLCONV and KRB5_DLLIMP. See ChangeLog entries for
src/include/krb5.hin for more information.
vfprintf.c, internal.h, compile_et.c, et_c.awk, com_err.c: Change
_WINDOWS to _MSDOS, and add check for _WIN32.
Theodore Tso [Wed, 12 Jun 1996 05:15:11 +0000 (05:15 +0000)]
net_read.c (krb5_net_read):
net_write.c (krb5_net_write): In case of an error, on Windows
machines, set errno from SOCKET_ERRNO, since the interface assumes the
error is passed back the errno global varaible. This really needs to
be fixed sometime...
read_msg.c: If ECONNABORTED is not defined, try using the Winsock
version of the error code (WSAECONNABORTED).
read_pwd.c:
promptusr.c:
lock_file.c:
kuserok.c:
ktdefname.c (krb5_kt_default_name):
init_os_ctx.c (os_init_paths):
ccdefname.c:
an_to_ln.c (db_an_to_ln): Change _WINDOWS to _MSDOS, and add check for _WIN32.
Theodore Tso [Wed, 12 Jun 1996 05:07:08 +0000 (05:07 +0000)]
fcc-proto.h: Change use of PROTOTYPE to KRB5_PROTOTYPE.
Change use of INTERFACE to KRB5_CALLCONV and KRB5_DLLIMP.
fcc-getnam.c: Change use of INTERFACE to KRB5_CALLCONV and
KRB5_DLLIMP, since fcc_getname returns a char * and the old INTERFACE
method bombs out when the return type contains an indirection.
fcc_read.c:
fcc_ops.c: Change _WINDOWS to _MSDOS, and add check for _WIN32.
Theodore Tso [Wed, 12 Jun 1996 04:47:54 +0000 (04:47 +0000)]
Change INTERFACE to be KRB5_CALLCONV, which is where the calling
convention is defined. Add KRB5_DLLIMP which is where the DLL
import/export should be put for Win32. (Win16 is just different.)
The correct way to declare a function which will be used in a DLL is
now: KRB5_DLLIMP func_return_t KRB5_CALLCONV func(long)
Change function delcarations to use the new convention. Actually, it
doesn't hurt to use the old convention as long as func_return_t
doesn't contain a '*'. But in the long run we should be exterminating
all uses of INTERFACE in favor of KRB5_CALLCONV and KRB5_DLLIMP.
Theodore Tso [Wed, 12 Jun 1996 04:42:41 +0000 (04:42 +0000)]
adm_proto.h: Change usage of INTERFACE to use KRB5_CALLCONV and KRB5_DLLIMP
winsock.h: Rename to kwinsock.h. Recent versions of Microsoft
compilers include winsock.h, and the one we have collides with NT
errno definitions. Using the one provided by the compiler is
preferable. If you are using an old version of MSVC that doesn't
include winsock.h, then rename kwinsock.h to winsock.h
Theodore Tso [Wed, 12 Jun 1996 04:36:25 +0000 (04:36 +0000)]
For Win-32: always #include windows.h
Change INTERFACE to be KRB5_CALLCONV, which is where the calling
convention is defined. Add KRB5_DLLIMP which is where the DLL
import/export should be put for Win32. (Win16 is just different.)
The correct way to declare a function which will be used in a DLL is
now: KRB5_DLLIMP func_return_t KRB5_CALLCONV func(long)
Change function delcarations to use the new convention. Actually, it
doesn't hurt to use the old convention as long as func_return_t
doesn't contain a '*'. But in the long run we should be exterminating
all uses of INTERFACE in favor of KRB5_CALLCONV and KRB5_DLLIMP.
Theodore Tso [Wed, 12 Jun 1996 04:19:23 +0000 (04:19 +0000)]
gss-clie.c: Renamed to gss-client.c, for VFAT/NTFS filesystems
makefile: Renamed to Makefile.in, so that we can do WIN16/WIN32
specializations. Remove /nologo option for Win32 RFLAGS,
since RC apparently doesn't support it.
changelo: Renamed to ChangeLog, to make life easier.
Theodore Tso [Wed, 12 Jun 1996 04:07:23 +0000 (04:07 +0000)]
Makefile.in (lib-windows): Add production rule for sapkrb5.dll. Don't
include config/windows.in, since that's included by wconfig.
win_glue.c: Add a quick hack for krb5-SAP so that we call the version
server --- this is conditionalized on SAP_VERSERV, which is only
defined when we build sapkrb5.dll.
Theodore Tso [Wed, 12 Jun 1996 03:06:50 +0000 (03:06 +0000)]
Revamp program to make it more extensible. Now will uncomment lines
that begin "##DOS##" as well as "##WIN16##" or "##WIN32##", depending
on whether we are compiling on a Windows 16 or Windows 32 environment.
Also, we now perform this transformation on the windows.in and
win-post.in files as well.