+Tue Mar 14 17:31:01 1995 Keith Vetter (keithv@fusion.com)
+
+ * Makefile.in: removed all DLL stuff--it now happens up a directory.
+ * win_glue.c, libcrypto.def: removed
+
Tue Mar 7 17:26:06 1995 Keith Vetter (keithv@fusion.com)
* cryptoco.c: Added more windows syntactic sugar for segmenting.
all-unix::
-all-windows:: $(OBJS) win_glue.obj
-
-win_glue.obj:: win_glue.c
- $(CC) $(CFLAGS) /c $*.c
-
-libcrypto.lib:: libcrypto.dll
- implib /nologo $@ $(@R).dll
-
-libcrypto.dll:: $(LIBNAME) libcrypto.def
- link /co /noe /nologo win_glue,libcrypto.dll,nul,\
- crypto.lib winsock ldllcew libw,libcrypto.def
- rc /p /k $@
+all-windows:: $(OBJS)
libcrypto.a: des/DONE md4/DONE md5/DONE crc32/DONE os/DONE $(OBJS)
(cd des; $(TST) $(ARADD) ../$@ `cat DONE` ; fi)
$(ARADD) $@ $(OBJS)
$(RANLIB) $@
+libcrypto.lib:
+ libdir crypto.lib
+
install:: libcrypto.a
$(INSTALL_DATA) libcrypto.a $(DESTDIR)$(KRB5_LIBDIR)/libcrypto.a
$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libcrypto.a
clean:: clean-$(WHAT)
- $(RM) libcrypto.$(LIBEXT) libcrypto.dll libcrypto.bak
clean-unix::
+ $(RM) libcrypto.a
clean-windows::
$(RM) crypto.lib crypto.bak
@echo Making check in ..\os
-$(MAKE) -$(MFLAGS) check
cd ..
-
-all-windows:: libcrypto.lib
-
+Tue Mar 14 17:20:47 1995 Keith Vetter (keithv@fusion.com)
+
+ * crc.c: removed method for pulling in a data structure (windows),
+ and turned an int into a size_t for corrected 'signed'ness.
+
Fri Mar 3 19:01:59 1995 Keith Vetter (keithv@fusion.com)
* crc.c: added a method to pull in a data structure
register u_char *data;
register u_long c = 0;
register int idx;
- int i;
+ size_t i;
data = (u_char *)in;
- for (i=0; i < (int) in_length;i++) {
+ for (i = 0; i < in_length; i++) {
idx = (int) (data[i] ^ c);
idx &= 0xff;
c >>= 8;
0, /* not collision proof */
0, /* doesn't use key */
};
-
-#if defined(_WINDOWS)
-/*
-** Windows can't pull in data from a DLL library. So we must provide a
-** method to do so. If the crypto library is merged in with the other
-** libraries, and this never gets called by an end-user, then we
-** can get rid of this.
-*/
-krb5_checksum_entry * INTERFACE load_crc32_cksumtable_entry (void) {
- return &crc32_cksumtable_entry;
-}
-#endif
+Tue Mar 14 17:28:35 1995 Keith Vetter (keithv@fusion.com)
+
+ * f_cbc.c, f_cksum.c, f_pcbc.c: added casts so that chars get promoted
+ to longs instead of ints when doing 32 bit bit manipulations.
+
Thu Mar 2 17:50:39 1995 Keith Vetter (keithv@fusion.com)
* Makefile.in: changed LIBNAME for the PC.
* forward. Otherwise we have to fart around.
*/
if (length >= 8) {
- left ^= ((*ip++) & 0xff) << 24;
- left ^= ((*ip++) & 0xff) << 16;
- left ^= ((*ip++) & 0xff) << 8;
- left ^= (*ip++) & 0xff;
- right ^= ((*ip++) & 0xff) << 24;
- right ^= ((*ip++) & 0xff) << 16;
- right ^= ((*ip++) & 0xff) << 8;
- right ^= (*ip++) & 0xff;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 24;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 16;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 8;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff));
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 24;
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 16;
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 8;
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff));
length -= 8;
} else {
/*
ip += (int) length;
switch(length) {
case 7:
- right ^= (*(--ip) & 0xff) << 8;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 8;
case 6:
- right ^= (*(--ip) & 0xff) << 16;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 16;
case 5:
- right ^= (*(--ip) & 0xff) << 24;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 24;
case 4:
- left ^= *(--ip) & 0xff;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff));
case 3:
- left ^= (*(--ip) & 0xff) << 8;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 8;
case 2:
- left ^= (*(--ip) & 0xff) << 16;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 16;
case 1:
- left ^= (*(--ip) & 0xff) << 24;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 24;
break;
}
length = 0;
* forward. Otherwise we have to fart around.
*/
if (len >= 8) {
- left ^= ((*ip++) & 0xff) << 24;
- left ^= ((*ip++) & 0xff) << 16;
- left ^= ((*ip++) & 0xff) << 8;
- left ^= (*ip++) & 0xff;
- right ^= ((*ip++) & 0xff) << 24;
- right ^= ((*ip++) & 0xff) << 16;
- right ^= ((*ip++) & 0xff) << 8;
- right ^= (*ip++) & 0xff;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 24;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 16;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 8;
+ left ^= ((unsigned KRB_INT32) ((*ip++) & 0xff));
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 24;
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 16;
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff)) << 8;
+ right ^= ((unsigned KRB_INT32) ((*ip++) & 0xff));
len -= 8;
} else {
/*
ip += (int) len;
switch(len) {
case 7:
- right ^= (*(--ip) & 0xff) << 8;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 8;
case 6:
- right ^= (*(--ip) & 0xff) << 16;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 16;
case 5:
- right ^= (*(--ip) & 0xff) << 24;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 24;
case 4:
- left ^= *(--ip) & 0xff;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff));
case 3:
- left ^= (*(--ip) & 0xff) << 8;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 8;
case 2:
- left ^= (*(--ip) & 0xff) << 16;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 16;
case 1:
- left ^= (*(--ip) & 0xff) << 24;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 24;
break;
}
len = 0;
ip += (int) length;
switch(length) {
case 8:
- right ^= *(--ip) & 0xff;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff));
case 7:
- right ^= (*(--ip) & 0xff) << 8;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 8;
case 6:
- right ^= (*(--ip) & 0xff) << 16;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 16;
case 5:
- right ^= (*(--ip) & 0xff) << 24;
+ right ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 24;
case 4:
- left ^= *(--ip) & 0xff;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff));
case 3:
- left ^= (*(--ip) & 0xff) << 8;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 8;
case 2:
- left ^= (*(--ip) & 0xff) << 16;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 16;
case 1:
- left ^= (*(--ip) & 0xff) << 24;
+ left ^= ((unsigned KRB_INT32) (*(--ip) & 0xff)) << 24;
break;
}
length = 0;
op += (int) length;
switch(length) {
case 8:
- *(--op) = right & 0xff;
+ *(--op) = (unsigned char) (right & 0xff);
case 7:
- *(--op) = (right >> 8) & 0xff;
+ *(--op) = (unsigned char) ((right >> 8) & 0xff);
case 6:
- *(--op) = (right >> 16) & 0xff;
+ *(--op) = (unsigned char) ((right >> 16) & 0xff);
case 5:
- *(--op) = (right >> 24) & 0xff;
+ *(--op) = (unsigned char) ((right >> 24) & 0xff);
case 4:
- *(--op) = left & 0xff;
+ *(--op) = (unsigned char) (left & 0xff);
case 3:
- *(--op) = (left >> 8) & 0xff;
+ *(--op) = (unsigned char) ((left >> 8) & 0xff);
case 2:
- *(--op) = (left >> 16) & 0xff;
+ *(--op) = (unsigned char) ((left >> 16) & 0xff);
case 1:
- *(--op) = (left >> 24) & 0xff;
+ *(--op) = (unsigned char) ((left >> 24) & 0xff);
break;
}
break; /* we're done */
+++ /dev/null
-;-----------------------------
-; LIBCRYPTO.DEF - module definition file
-;-----------------------------
-
-LIBRARY LIBCRYPT
-DESCRIPTION 'DLL for Kerberos cryptography support'
-EXETYPE WINDOWS
-CODE PRELOAD MOVEABLE DISCARDABLE
-DATA PRELOAD MOVEABLE SINGLE
-HEAPSIZE 8192
-
-EXPORTS
- WEP @1 RESIDENTNAME
- LIBMAIN @2
- CRC32_SUM_FUNC @3
- KRB5_RANDOM_CONFOUNDER @4
- MAKE_KEY_SCHED @5
- MD4_CRYPTO_SUM_FUNC @6
- MD4_SUM_FUNC @7
- MD4FINAL @8
- MD4INIT @9
- MD4UPDATE @10
- MD5_CRYPTO_SUM_FUNC @11
- MD5_SUM_FUNC @12
- MD5FINAL @13
- MD5INIT @14
- MD5UPDATE @15
- MIT_DES_CBC_CHECKSUM @16
- MIT_DES_CBC_CKSUM @17
- MIT_DES_CBC_ENCRYPT @18
- MIT_DES_CHECK_KEY_PARITY @19
- MIT_DES_CRC_DECRYPT_FUNC @20
- MIT_DES_CRC_ENCRYPT_FUNC @21
- MIT_DES_ECB_ENCRYPT @22
- MIT_DES_FINISH_KEY @23
- MIT_DES_FINISH_RANDOM_KEY @24
- MIT_DES_FIXUP_KEY_PARITY @25
- MIT_DES_GENERATE_RANDOM_BLOCK @26
- MIT_DES_INIT_RANDOM_KEY @27
- MIT_DES_INIT_RANDOM_NUMBER_GENERATOR @28
- MIT_DES_IS_WEAK_KEY @29
- MIT_DES_KEY_SCHED @30
- MIT_DES_MD5_DECRYPT_FUNC @31
- MIT_DES_MD5_ENCRYPT_FUNC @32
- MIT_DES_NEW_RANDOM_KEY @33
- MIT_DES_PROCESS_KEY @34
- MIT_DES_RANDOM_KEY @35
- MIT_DES_SET_RANDOM_GENERATOR_SEED @36
- MIT_DES_SET_SEQUENCE_NUMBER @37
- MIT_DES_STRING_TO_KEY @38
- MIT_RAW_DES_DECRYPT_FUNC @39
- MIT_RAW_DES_ENCRYPT_FUNC @40
- LOAD_CRC32_CKSUMTABLE_ENTRY @41
- LOAD_RSA_MD4_DES_CKSUMTABLE_ENTRY @42
- LOAD_RSA_MD5_DES_CKSUMTABLE_ENTRY @43
+Tue Mar 14 17:24:57 1995 Keith Vetter (keithv@fusion.com)
+
+ * md4crypto.c: removed method for DLL data since everything's
+ going into one DLL.
+
Fri Mar 3 19:01:59 1995 Keith Vetter (keithv@fusion.com)
* md4crypto.c: added a method to pull in a data structure
1, /* is collision proof */
1, /* uses key */
};
-
-#if defined(_WINDOWS)
-/*
-** Windows can't pull in data from a DLL library. So we must provide a
-** method to do so. If the crypto library is merged in with the other
-** libraries, and this never gets called by an end-user, then we
-** can get rid of this.
-*/
-krb5_checksum_entry * INTERFACE load_rsa_md4_des_cksumtable_entry (void) {
- return &rsa_md4_des_cksumtable_entry;
-}
-#endif
+Tue Mar 14 17:24:57 1995 Keith Vetter (keithv@fusion.com)
+
+ * md5crypto.c: removed method for DLL data since everything's
+ going into one DLL.
+
Fri Mar 3 19:01:59 1995 Keith Vetter (keithv@fusion.com)
* md5crypto.c: added a method to pull in a data structure
1, /* is collision proof */
1, /* uses key */
};
-
-#if defined(_WINDOWS)
-/*
-** Windows can't pull in data from a DLL library. So we must provide a
-** method to do so. If the crypto library is merged in with the other
-** libraries, and this never gets called by an end-user, then we
-** can get rid of this.
-*/
-krb5_checksum_entry * INTERFACE load_rsa_md5_des_cksumtable_entry (void) {
- return &rsa_md5_des_cksumtable_entry;
-}
-#endif
+Tue Mar 14 17:23:02 1995 Keith Vetter (keithv@fusion.com)
+
+ * Makefile.in: no longer need to bring in ustime and localaddr for
+ windows since everything's going into one DLL in the end.
+
Thu Mar 2 17:56:48 1995 Keith Vetter (keithv@fusion.com)
* Makefile.in: changed LIBNAME for the PC, and brought in ustime
OBJS= rnd_confoun.$(OBJEXT) localaddr.$(OBJEXT) ustime.$(OBJEXT) $(LIBOBJS)
-SRCS= rnd_confoun.c localaddr.c ustime.c
+SRCS= rnd_confoun.c
all:: all-$(WHAT)
all-unix:: $(OBJS)
-all-windows: rnd_confoun.obj localaddr.obj ustime.obj
+all-windows: rnd_confoun.obj
localaddr.c: ..$(S)..$(S)krb5$(S)os$(S)localaddr.c
-$(LN) $(srcdir)$(S)..$(S)..$(S)krb5$(S)os$(S)localaddr.c $@
+++ /dev/null
-#define NEED_SOCKETS
-#include <k5-int.h>
-
-/*
- * WinSock support.
- *
- * Do the WinSock initialization call, keeping all the hair here.
- *
- * This routine is called by SOCKET_INITIALIZE in include/c-windows.h.
- * The code is pretty much copied from winsock.txt from winsock-1.1,
- * available from:
- * ftp://sunsite.unc.edu/pub/micro/pc-stuff/ms-windows/winsock/winsock-1.1
- */
-int
-win_socket_initialize()
-{
- WORD wVersionRequested;
- WSADATA wsaData;
- int err;
-
- wVersionRequested = 0x0101; /* We need version 1.1 */
-
- err = WSAStartup (wVersionRequested, &wsaData);
- if (err != 0)
- return err; /* Library couldn't initialize */
-
- if (wVersionRequested != wsaData.wVersion) {
- /* DLL couldn't support our version of the spec */
- WSACleanup ();
- return -104; /* FIXME -- better error? */
- }
-
- return 0;
-}
-
-BOOL CALLBACK
-LibMain(hInst, wDataSeg, cbHeap, CmdLine)
- HINSTANCE hInst;
- WORD wDataSeg;
- WORD cbHeap;
- LPSTR CmdLine;
-{
- win_socket_initialize ();
- return 1;
-}
-
-
-int CALLBACK __export
-WEP(nParam)
- int nParam;
-{
- return 1;
-}