提交 e1999b1d 编写于 作者: B Bodo Möller

Use OPENSSL_GLOBAL, OPENSSL_EXTERN instead of GLOBAL and EXTERN.

上级 3398f6cc
......@@ -69,7 +69,7 @@ extern "C" {
#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
......
......@@ -431,7 +431,7 @@
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);
......
......@@ -56,5 +56,5 @@
* [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 */
......@@ -60,8 +60,8 @@
#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)
{
......
......@@ -63,7 +63,7 @@
/* 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;
/*
......
......@@ -68,7 +68,7 @@
#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)
{
......
......@@ -56,7 +56,7 @@
* [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,
......
......@@ -58,7 +58,7 @@
#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)
{
......
......@@ -21,18 +21,6 @@ extern "C" {
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册