diff options
Diffstat (limited to 'crypto/des/des_locl.h')
-rw-r--r-- | crypto/des/des_locl.h | 15 |
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); |