#include <stdio.h>
#include <openssl/opensslconf.h> /* DES_LONG */
-#include <openssl/e_os2.h> /* EXTERN */
+#include <openssl/e_os2.h> /* OPENSSL_EXTERN */
#ifdef VMS
#undef des_init_random_number_generator
PERM_OP(l,r,tt, 4,0x0f0f0f0fL); \
}
-EXTERN const DES_LONG des_SPtrans[8][64];
+OPENSSL_EXTERN const DES_LONG des_SPtrans[8][64];
void fcrypt_body(DES_LONG *out,des_key_schedule ks,
DES_LONG Eswap0, DES_LONG Eswap1);
* [including the GNU Public Licence.]
*/
-EXTERN char *DES_version; /* SSLeay version string */
-EXTERN char *libdes_version; /* old libdes version string */
+OPENSSL_EXTERN char *DES_version; /* SSLeay version string */
+OPENSSL_EXTERN char *libdes_version; /* old libdes version string */
#include "spr.h"
#include <openssl/opensslv.h>
-GLOBAL const char *libdes_version="libdes v 3.24 - 20-Apr-1996 - eay";
-GLOBAL const char *DES_version="DES" OPENSSL_VERSION_PTEXT;
+OPENSSL_GLOBAL const char *libdes_version="libdes v 3.24 - 20-Apr-1996 - eay";
+OPENSSL_GLOBAL const char *DES_version="DES" OPENSSL_VERSION_PTEXT;
const char *des_options(void)
{
/* This has some uglies in it but it works - even over sockets. */
/*extern int errno;*/
-GLOBAL int des_rw_mode=DES_PCBC_MODE;
+OPENSSL_GLOBAL int des_rw_mode=DES_PCBC_MODE;
/*
#include "sk.h"
static int check_parity(const des_cblock key);
-GLOBAL int des_check_key=0;
+OPENSSL_GLOBAL int des_check_key=0;
void des_set_odd_parity(des_cblock key)
{
* [including the GNU Public Licence.]
*/
-GLOBAL const DES_LONG des_SPtrans[8][64]={
+OPENSSL_GLOBAL const DES_LONG des_SPtrans[8][64]={
{
/* nibble 0 */
0x02080800L, 0x00080000L, 0x02000002L, 0x02080802L,
#include "des_locl.h"
-EXTERN int des_check_key;
+OPENSSL_EXTERN int des_check_key;
void des_string_to_key(const char *str, des_cblock key)
{
# define OPENSSL_GLOBAL
#endif
-/* The above definitions should be used throughout the library,
- * but as long as EXTERN and GLOBAL occur there, we keep the following
- * definitions, too: */
-#if defined(VMS) && !defined(__DECC)
-# define EXTERN globalref
-# define GLOBAL globaldef
-#else
-# define EXTERN extern
-# define GLOBAL
-#endif
-
-
#ifdef __cplusplus
}
#endif