aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/des_locl.h
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-05-13 11:37:32 +0000
committerUlf Möller <ulf@openssl.org>1999-05-13 11:37:32 +0000
commit7d7d2cbcb02206f3393681f2bce198e11e2e185b (patch)
tree93410fafc5aa977c748ea492994da3f581d11278 /crypto/des/des_locl.h
parent8d111f4a476896a417069d16597ce3009f9bb992 (diff)
downloadopenssl-7d7d2cbcb02206f3393681f2bce198e11e2e185b.tar.gz
VMS support.
Submitted by: Richard Levitte <richard@levitte.org>
Diffstat (limited to 'crypto/des/des_locl.h')
-rw-r--r--crypto/des/des_locl.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/crypto/des/des_locl.h b/crypto/des/des_locl.h
index e4b4d6d9e3..7b086062c5 100644
--- a/crypto/des/des_locl.h
+++ b/crypto/des/des_locl.h
@@ -68,8 +68,10 @@
#include <stdio.h>
#include <stdlib.h>
#ifndef MSDOS
+#if !defined(VMS) || defined(__DECC)
#include <unistd.h>
#endif
+#endif
#include <openssl/des.h>
#include <openssl/opensslconf.h>
@@ -84,6 +86,17 @@
#endif
#endif
+#ifdef VMS
+#ifndef __DECC
+#include <math.h>
+#define RAND
+#else
+#if __CRTL_VER < 70000000
+#define RAND
+#endif
+#endif
+#endif
+
#if defined(__STDC__) || defined(VMS) || defined(M_XENIX) || defined(MSDOS)
#include <string.h>
#endif
@@ -418,7 +431,7 @@
PERM_OP(l,r,tt, 4,0x0f0f0f0fL); \
}
-extern const DES_LONG des_SPtrans[8][64];
+EXTERN const DES_LONG des_SPtrans[8][64];
void fcrypt_body(DES_LONG *out,des_key_schedule ks,
DES_LONG Eswap0, DES_LONG Eswap1);