diff options
author | Keith Vetter <keithv@fusion.com> | 1995-04-14 00:56:21 +0000 |
---|---|---|
committer | Keith Vetter <keithv@fusion.com> | 1995-04-14 00:56:21 +0000 |
commit | 48e59557cdff501a25c809cda3f1dd34a27cc52f (patch) | |
tree | 3bbc11e8ef7f3866da45c06871f18b1fae020bcb /src/lib/crypto/md4 | |
parent | 73bd684de42505fe4e6a15803ddf074c57db671c (diff) | |
download | krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.gz krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.tar.xz krb5-48e59557cdff501a25c809cda3f1dd34a27cc52f.zip |
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
Diffstat (limited to 'src/lib/crypto/md4')
-rw-r--r-- | src/lib/crypto/md4/ChangeLog | 6 | ||||
-rw-r--r-- | src/lib/crypto/md4/md4.c | 10 | ||||
-rw-r--r-- | src/lib/crypto/md4/md4crypto.c | 4 | ||||
-rw-r--r-- | src/lib/crypto/md4/md4glue.c | 4 | ||||
-rw-r--r-- | src/lib/crypto/md4/rsa-md4.h | 14 |
5 files changed, 22 insertions, 16 deletions
diff --git a/src/lib/crypto/md4/ChangeLog b/src/lib/crypto/md4/ChangeLog index cddab1d7bf..e63e681216 100644 --- a/src/lib/crypto/md4/ChangeLog +++ b/src/lib/crypto/md4/ChangeLog @@ -1,3 +1,9 @@ +Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com) + + * *.[ch]: removed unneeded INTERFACE from non-api functions. + * *.h added FAR to pointers visible at to the world. + * rsa-md4.h: __STDC__ condition also checks _WINDOWS + Thu Mar 16 21:19:55 1995 John Gilmore (gnu at toad.com) * Makefile.in (CFLAGS): Tweak for Unix->MPW converter. diff --git a/src/lib/crypto/md4/md4.c b/src/lib/crypto/md4/md4.c index 16f6a2b4be..a07c8611a1 100644 --- a/src/lib/crypto/md4/md4.c +++ b/src/lib/crypto/md4/md4.c @@ -38,14 +38,14 @@ #include "k5-int.h" #include "rsa-md4.h" -#ifdef __STDC__ +#if defined(__STDC__) || defined(_WINDOWS) #define UL(x) x##UL #else #define UL(x) ((krb5_ui_4) x) #endif /* forward declaration */ -#if defined(__STDC__) || defined(KRB5_PROVIDE_PROTOTYPES) +#if defined(__STDC__) || defined(KRB5_PROVIDE_PROTOTYPES) || defined(_WINDOWS) static void Transform (krb5_ui_4 FAR *, krb5_ui_4 FAR *); #else static void Transform (); @@ -82,7 +82,7 @@ static unsigned char PADDING[64] = { {(a) += H ((b), (c), (d)) + (x) + UL(015666365641); \ (a) = ROTATE_LEFT ((a), (s));} -void INTERFACE +void MD4Init (mdContext) MD4_CTX FAR *mdContext; { @@ -96,7 +96,7 @@ MD4_CTX FAR *mdContext; mdContext->buf[3] = UL(0x10325476); } -void INTERFACE +void MD4Update (mdContext, inBuf, inLen) MD4_CTX FAR *mdContext; unsigned char FAR *inBuf; @@ -132,7 +132,7 @@ unsigned int inLen; } } -void INTERFACE +void MD4Final (mdContext) MD4_CTX FAR *mdContext; { diff --git a/src/lib/crypto/md4/md4crypto.c b/src/lib/crypto/md4/md4crypto.c index 38a3a4a3b4..58301f2bf6 100644 --- a/src/lib/crypto/md4/md4crypto.c +++ b/src/lib/crypto/md4/md4crypto.c @@ -28,11 +28,11 @@ #include "rsa-md4.h" #include "des_int.h" /* we cheat a bit and call it directly... */ -krb5_error_code INTERFACE +krb5_error_code md4_crypto_sum_func NPROTOTYPE((krb5_pointer in, size_t in_length, krb5_pointer seed, size_t seed_length, krb5_checksum *outcksum)); -krb5_error_code INTERFACE +krb5_error_code md4_crypto_sum_func(in, in_length, seed, seed_length, outcksum) krb5_pointer in; size_t in_length; diff --git a/src/lib/crypto/md4/md4glue.c b/src/lib/crypto/md4/md4glue.c index deebff54a5..3a3d2e7da3 100644 --- a/src/lib/crypto/md4/md4glue.c +++ b/src/lib/crypto/md4/md4glue.c @@ -26,11 +26,11 @@ #include "k5-int.h" #include "rsa-md4.h" -krb5_error_code INTERFACE +krb5_error_code md4_sum_func NPROTOTYPE((krb5_pointer in, size_t in_length, krb5_pointer seed, size_t seed_length, krb5_checksum *outcksum)); -krb5_error_code INTERFACE +krb5_error_code md4_sum_func(in, in_length, seed, seed_length, outcksum) krb5_pointer in; size_t in_length; diff --git a/src/lib/crypto/md4/rsa-md4.h b/src/lib/crypto/md4/rsa-md4.h index 0fdf17f15d..c03b6cb476 100644 --- a/src/lib/crypto/md4/rsa-md4.h +++ b/src/lib/crypto/md4/rsa-md4.h @@ -84,14 +84,14 @@ typedef struct { unsigned char digest[16]; /* actual digest after MD4Final call */ } MD4_CTX; -#ifdef __STDC__ -extern void INTERFACE MD4Init(MD4_CTX FAR *); -extern void INTERFACE MD4Update(MD4_CTX FAR *, unsigned char FAR *, unsigned int); -extern void INTERFACE MD4Final(MD4_CTX FAR *); +#if defined(__STDC__) || defined(_WINDOWS) +extern void MD4Init(MD4_CTX FAR *); +extern void MD4Update(MD4_CTX FAR *, unsigned char FAR *, unsigned int); +extern void MD4Final(MD4_CTX FAR *); #else -void INTERFACE MD4Init (); -void INTERFACE MD4Update (); -void INTERFACE MD4Final (); +void MD4Init (); +void MD4Update (); +void MD4Final (); #endif /* |