diff options
author | jsing <> | 2014-05-24 16:03:10 +0000 |
---|---|---|
committer | jsing <> | 2014-05-24 16:03:10 +0000 |
commit | f58af64a13c833e01a6ff4fce609b64645f00c7b (patch) | |
tree | ebe6d9a74762a55cfb0d8a7b501f6995ced8ac3a /src | |
parent | 3e701b2a57219523e039e78e0cc655852ca63e1b (diff) | |
download | openbsd-f58af64a13c833e01a6ff4fce609b64645f00c7b.tar.gz openbsd-f58af64a13c833e01a6ff4fce609b64645f00c7b.tar.bz2 openbsd-f58af64a13c833e01a6ff4fce609b64645f00c7b.zip |
Remove the _shadow_ indirection, which is unnecessary in a world without
OPENSSL_EXPORT_VAR_AS_FUNCTION.
ok miod@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/des/des.h | 7 | ||||
-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 | 7 | ||||
-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, 8 insertions, 14 deletions
diff --git a/src/lib/libcrypto/des/des.h b/src/lib/libcrypto/des/des.h index de99c73f43..cff50b2ec5 100644 --- a/src/lib/libcrypto/des/des.h +++ b/src/lib/libcrypto/des/des.h | |||
@@ -107,11 +107,8 @@ typedef struct DES_ks | |||
107 | #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) \ |
108 | 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)) |
109 | 109 | ||
110 | extern int _shadow_DES_check_key; /* defaults to false */ | 110 | extern int DES_check_key; /* defaults to false */ |
111 | #define DES_check_key _shadow_DES_check_key | 111 | extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */ |
112 | |||
113 | extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */ | ||
114 | #define DES_rw_mode _shadow_DES_rw_mode | ||
115 | 112 | ||
116 | const char *DES_options(void); | 113 | const char *DES_options(void); |
117 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, | 114 | 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 8e1ff8e3eb..5a39390219 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 | int _shadow_DES_rw_mode = DES_PCBC_MODE; | 66 | int 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 85a0d2bfc1..c86a80b853 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 | int _shadow_DES_check_key = 0; /* defaults to false */ | 69 | int 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 de99c73f43..cff50b2ec5 100644 --- a/src/lib/libssl/src/crypto/des/des.h +++ b/src/lib/libssl/src/crypto/des/des.h | |||
@@ -107,11 +107,8 @@ typedef struct DES_ks | |||
107 | #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) \ |
108 | 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)) |
109 | 109 | ||
110 | extern int _shadow_DES_check_key; /* defaults to false */ | 110 | extern int DES_check_key; /* defaults to false */ |
111 | #define DES_check_key _shadow_DES_check_key | 111 | extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */ |
112 | |||
113 | extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */ | ||
114 | #define DES_rw_mode _shadow_DES_rw_mode | ||
115 | 112 | ||
116 | const char *DES_options(void); | 113 | const char *DES_options(void); |
117 | void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, | 114 | 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 8e1ff8e3eb..5a39390219 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 | int _shadow_DES_rw_mode = DES_PCBC_MODE; | 66 | int 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 85a0d2bfc1..c86a80b853 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 | int _shadow_DES_check_key = 0; /* defaults to false */ | 69 | int 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, |