summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/des.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/des/des.h')
-rw-r--r--src/lib/libcrypto/des/des.h11
1 files changed, 5 insertions, 6 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
112OPENSSL_DECLARE_GLOBAL(int,DES_check_key); /* defaults to false */ 110extern 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
114OPENSSL_DECLARE_GLOBAL(int,DES_rw_mode); /* defaults to DES_PCBC_MODE */ 112
115#define DES_rw_mode OPENSSL_GLOBAL_REF(DES_rw_mode) 113extern int _shadow_DES_rw_mode; /* defaults to DES_PCBC_MODE */
114#define DES_rw_mode _shadow_DES_rw_mode
116 115
117const char *DES_options(void); 116const char *DES_options(void);
118void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output, 117void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,