summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-05-24 16:03:10 +0000
committerjsing <>2014-05-24 16:03:10 +0000
commitf58af64a13c833e01a6ff4fce609b64645f00c7b (patch)
treeebe6d9a74762a55cfb0d8a7b501f6995ced8ac3a /src
parent3e701b2a57219523e039e78e0cc655852ca63e1b (diff)
downloadopenbsd-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.h7
-rw-r--r--src/lib/libcrypto/des/enc_read.c2
-rw-r--r--src/lib/libcrypto/des/set_key.c2
-rw-r--r--src/lib/libssl/src/crypto/des/des.h7
-rw-r--r--src/lib/libssl/src/crypto/des/enc_read.c2
-rw-r--r--src/lib/libssl/src/crypto/des/set_key.c2
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
110extern int _shadow_DES_check_key; /* defaults to false */ 110extern int DES_check_key; /* defaults to false */
111#define DES_check_key _shadow_DES_check_key 111extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */
112
113extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */
114#define DES_rw_mode _shadow_DES_rw_mode
115 112
116const char *DES_options(void); 113const char *DES_options(void);
117void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 114void 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;*/
66int _shadow_DES_rw_mode = DES_PCBC_MODE; 66int 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
69int _shadow_DES_check_key = 0; /* defaults to false */ 69int DES_check_key = 0; /* defaults to false */
70 70
71static const unsigned char odd_parity[256]={ 71static 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
110extern int _shadow_DES_check_key; /* defaults to false */ 110extern int DES_check_key; /* defaults to false */
111#define DES_check_key _shadow_DES_check_key 111extern int DES_rw_mode; /* defaults to DES_PCBC_MODE */
112
113extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */
114#define DES_rw_mode _shadow_DES_rw_mode
115 112
116const char *DES_options(void); 113const char *DES_options(void);
117void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 114void 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;*/
66int _shadow_DES_rw_mode = DES_PCBC_MODE; 66int 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
69int _shadow_DES_check_key = 0; /* defaults to false */ 69int DES_check_key = 0; /* defaults to false */
70 70
71static const unsigned char odd_parity[256]={ 71static 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,