diff options
author | jsing <> | 2014-05-24 13:11:01 +0000 |
---|---|---|
committer | jsing <> | 2014-05-24 13:11:01 +0000 |
commit | 5e1ae80e3f98ab999ac233eec6f32cddbb914140 (patch) | |
tree | 901559ec4c50b85033b8d17be052aa788fa0fbe6 /src | |
parent | 57d859eb0f9fb43d2fdf5eeeab63e25976de48ab (diff) | |
download | openbsd-5e1ae80e3f98ab999ac233eec6f32cddbb914140.tar.gz openbsd-5e1ae80e3f98ab999ac233eec6f32cddbb914140.tar.bz2 openbsd-5e1ae80e3f98ab999ac233eec6f32cddbb914140.zip |
Expand the OPENSSL_.*GLOBAL.* macros and stop including e_os2.h.
ok miod@ beck@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/des/des.h | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/des/enc_read.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/des/set_key.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/des/des.h | 11 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/des/enc_read.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/des/set_key.c | 2 |
6 files changed, 14 insertions, 16 deletions
diff --git a/src/lib/libcrypto/des/des.h b/src/lib/libcrypto/des/des.h index 19a9918766..de99c73f43 100644 --- a/src/lib/libcrypto/des/des.h +++ b/src/lib/libcrypto/des/des.h | |||
@@ -61,8 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
63 | 63 | ||
64 | #include <openssl/e_os2.h> /* OPENSSL_DECLARE_GLOBAL, OPENSSL_GLOBAL_REF */ | ||
65 | |||
66 | #ifdef OPENSSL_NO_DES | 64 | #ifdef OPENSSL_NO_DES |
67 | #error DES is disabled. | 65 | #error DES is disabled. |
68 | #endif | 66 | #endif |
@@ -109,10 +107,11 @@ typedef struct DES_ks | |||
109 | #define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ | 107 | #define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ |
110 | DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) | 108 | DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) |
111 | 109 | ||
112 | OPENSSL_DECLARE_GLOBAL(int,DES_check_key); /* defaults to false */ | 110 | extern int _shadow_DES_check_key; /* defaults to false */ |
113 | #define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key) | 111 | #define DES_check_key _shadow_DES_check_key |
114 | OPENSSL_DECLARE_GLOBAL(int,DES_rw_mode); /* defaults to DES_PCBC_MODE */ | 112 | |
115 | #define DES_rw_mode OPENSSL_GLOBAL_REF(DES_rw_mode) | 113 | extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */ |
114 | #define DES_rw_mode _shadow_DES_rw_mode | ||
116 | 115 | ||
117 | const char *DES_options(void); | 116 | const char *DES_options(void); |
118 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, | 117 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, |
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c index e1ac04c5b3..8e1ff8e3eb 100644 --- a/src/lib/libcrypto/des/enc_read.c +++ b/src/lib/libcrypto/des/enc_read.c | |||
@@ -63,7 +63,7 @@ | |||
63 | 63 | ||
64 | /* This has some uglies in it but it works - even over sockets. */ | 64 | /* This has some uglies in it but it works - even over sockets. */ |
65 | /*extern int errno;*/ | 65 | /*extern int errno;*/ |
66 | OPENSSL_IMPLEMENT_GLOBAL(int,DES_rw_mode,DES_PCBC_MODE) | 66 | int _shadow_DES_rw_mode = DES_PCBC_MODE; |
67 | 67 | ||
68 | 68 | ||
69 | /* | 69 | /* |
diff --git a/src/lib/libcrypto/des/set_key.c b/src/lib/libcrypto/des/set_key.c index e8dea50b96..85a0d2bfc1 100644 --- a/src/lib/libcrypto/des/set_key.c +++ b/src/lib/libcrypto/des/set_key.c | |||
@@ -66,7 +66,7 @@ | |||
66 | #include <openssl/crypto.h> | 66 | #include <openssl/crypto.h> |
67 | #include "des_locl.h" | 67 | #include "des_locl.h" |
68 | 68 | ||
69 | OPENSSL_IMPLEMENT_GLOBAL(int,DES_check_key,0) /* defaults to false */ | 69 | int _shadow_DES_check_key = 0; /* defaults to false */ |
70 | 70 | ||
71 | static const unsigned char odd_parity[256]={ | 71 | static const unsigned char odd_parity[256]={ |
72 | 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14, | 72 | 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14, |
diff --git a/src/lib/libssl/src/crypto/des/des.h b/src/lib/libssl/src/crypto/des/des.h index 19a9918766..de99c73f43 100644 --- a/src/lib/libssl/src/crypto/des/des.h +++ b/src/lib/libssl/src/crypto/des/des.h | |||
@@ -61,8 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
63 | 63 | ||
64 | #include <openssl/e_os2.h> /* OPENSSL_DECLARE_GLOBAL, OPENSSL_GLOBAL_REF */ | ||
65 | |||
66 | #ifdef OPENSSL_NO_DES | 64 | #ifdef OPENSSL_NO_DES |
67 | #error DES is disabled. | 65 | #error DES is disabled. |
68 | #endif | 66 | #endif |
@@ -109,10 +107,11 @@ typedef struct DES_ks | |||
109 | #define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ | 107 | #define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ |
110 | DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) | 108 | DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n)) |
111 | 109 | ||
112 | OPENSSL_DECLARE_GLOBAL(int,DES_check_key); /* defaults to false */ | 110 | extern int _shadow_DES_check_key; /* defaults to false */ |
113 | #define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key) | 111 | #define DES_check_key _shadow_DES_check_key |
114 | OPENSSL_DECLARE_GLOBAL(int,DES_rw_mode); /* defaults to DES_PCBC_MODE */ | 112 | |
115 | #define DES_rw_mode OPENSSL_GLOBAL_REF(DES_rw_mode) | 113 | extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */ |
114 | #define DES_rw_mode _shadow_DES_rw_mode | ||
116 | 115 | ||
117 | const char *DES_options(void); | 116 | const char *DES_options(void); |
118 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, | 117 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, |
diff --git a/src/lib/libssl/src/crypto/des/enc_read.c b/src/lib/libssl/src/crypto/des/enc_read.c index e1ac04c5b3..8e1ff8e3eb 100644 --- a/src/lib/libssl/src/crypto/des/enc_read.c +++ b/src/lib/libssl/src/crypto/des/enc_read.c | |||
@@ -63,7 +63,7 @@ | |||
63 | 63 | ||
64 | /* This has some uglies in it but it works - even over sockets. */ | 64 | /* This has some uglies in it but it works - even over sockets. */ |
65 | /*extern int errno;*/ | 65 | /*extern int errno;*/ |
66 | OPENSSL_IMPLEMENT_GLOBAL(int,DES_rw_mode,DES_PCBC_MODE) | 66 | int _shadow_DES_rw_mode = DES_PCBC_MODE; |
67 | 67 | ||
68 | 68 | ||
69 | /* | 69 | /* |
diff --git a/src/lib/libssl/src/crypto/des/set_key.c b/src/lib/libssl/src/crypto/des/set_key.c index e8dea50b96..85a0d2bfc1 100644 --- a/src/lib/libssl/src/crypto/des/set_key.c +++ b/src/lib/libssl/src/crypto/des/set_key.c | |||
@@ -66,7 +66,7 @@ | |||
66 | #include <openssl/crypto.h> | 66 | #include <openssl/crypto.h> |
67 | #include "des_locl.h" | 67 | #include "des_locl.h" |
68 | 68 | ||
69 | OPENSSL_IMPLEMENT_GLOBAL(int,DES_check_key,0) /* defaults to false */ | 69 | int _shadow_DES_check_key = 0; /* defaults to false */ |
70 | 70 | ||
71 | static const unsigned char odd_parity[256]={ | 71 | static const unsigned char odd_parity[256]={ |
72 | 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14, | 72 | 1, 1, 2, 2, 4, 4, 7, 7, 8, 8, 11, 11, 13, 13, 14, 14, |