diff options
author | tedu <> | 2014-04-15 20:50:02 +0000 |
---|---|---|
committer | tedu <> | 2014-04-15 20:50:02 +0000 |
commit | 09552bf1fbf0338e2b2126fc1eb47159f02fd9f1 (patch) | |
tree | 980d9017a4c62e4e407ee48e40646163a9799c98 /src/lib/libcrypto/des/des.h | |
parent | 7c7e8a2dd9afdce78dc10a2b9a974c981d52e9b0 (diff) | |
download | openbsd-09552bf1fbf0338e2b2126fc1eb47159f02fd9f1.tar.gz openbsd-09552bf1fbf0338e2b2126fc1eb47159f02fd9f1.tar.bz2 openbsd-09552bf1fbf0338e2b2126fc1eb47159f02fd9f1.zip |
12 years ago, old_des.h was used to provide compatibility with libdes.
The man page says "Compatibility des_ functions are provided for a short
while" and indeed even the original commit message says "The compatibility
functions will be removed in some future release, at the latest in
version 1.0." So here we are, a short while later.
Now I've only been an OpenBSD developer for 11 years, one year less than
this header has existed, but in that brief time, I've learned a thing or
two about deleting obsolete code. It doesn't delete itself. And worse,
people will continue using it until you force them onto a better path.
Diffstat (limited to 'src/lib/libcrypto/des/des.h')
-rw-r--r-- | src/lib/libcrypto/des/des.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/libcrypto/des/des.h b/src/lib/libcrypto/des/des.h index 92b6663599..c06b706e9c 100644 --- a/src/lib/libcrypto/des/des.h +++ b/src/lib/libcrypto/des/des.h | |||
@@ -91,16 +91,6 @@ typedef struct DES_ks | |||
91 | } ks[16]; | 91 | } ks[16]; |
92 | } DES_key_schedule; | 92 | } DES_key_schedule; |
93 | 93 | ||
94 | #ifndef OPENSSL_DISABLE_OLD_DES_SUPPORT | ||
95 | # ifndef OPENSSL_ENABLE_OLD_DES_SUPPORT | ||
96 | # define OPENSSL_ENABLE_OLD_DES_SUPPORT | ||
97 | # endif | ||
98 | #endif | ||
99 | |||
100 | #ifdef OPENSSL_ENABLE_OLD_DES_SUPPORT | ||
101 | # include <openssl/des_old.h> | ||
102 | #endif | ||
103 | |||
104 | #define DES_KEY_SZ (sizeof(DES_cblock)) | 94 | #define DES_KEY_SZ (sizeof(DES_cblock)) |
105 | #define DES_SCHEDULE_SZ (sizeof(DES_key_schedule)) | 95 | #define DES_SCHEDULE_SZ (sizeof(DES_key_schedule)) |
106 | 96 | ||