summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des
diff options
context:
space:
mode:
authorjsing <>2014-05-22 17:53:00 +0000
committerjsing <>2014-05-22 17:53:00 +0000
commitf02ed2588c7917dc5b92c97841ea09a314c7be10 (patch)
treea9c417fe63b3c1f21c7f955e6f9898066cdbe0ea /src/lib/libcrypto/des
parent1daf1f522a26bc92ef488c760b18c65ff223b0af (diff)
downloadopenbsd-f02ed2588c7917dc5b92c97841ea09a314c7be10.tar.gz
openbsd-f02ed2588c7917dc5b92c97841ea09a314c7be10.tar.bz2
openbsd-f02ed2588c7917dc5b92c97841ea09a314c7be10.zip
Expand the OPENSSL_{GLOBAL,EXPORT,IMPORT,EXTERN} macros - this rids the
libssl tree from all uses of these defines. ok miod@
Diffstat (limited to 'src/lib/libcrypto/des')
-rw-r--r--src/lib/libcrypto/des/des_ver.h6
-rw-r--r--src/lib/libcrypto/des/ecb_enc.c4
-rw-r--r--src/lib/libcrypto/des/spr.h2
3 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/des/des_ver.h b/src/lib/libcrypto/des/des_ver.h
index b4a6ffdc39..bd056ba23b 100644
--- a/src/lib/libcrypto/des/des_ver.h
+++ b/src/lib/libcrypto/des/des_ver.h
@@ -56,11 +56,9 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#include <openssl/e_os2.h>
60
61/* The following macros make sure the names are different from libdes names */ 59/* The following macros make sure the names are different from libdes names */
62#define DES_version OSSL_DES_version 60#define DES_version OSSL_DES_version
63#define libdes_version OSSL_libdes_version 61#define libdes_version OSSL_libdes_version
64 62
65OPENSSL_EXTERN const char OSSL_DES_version[]; /* SSLeay version string */ 63extern const char OSSL_DES_version[]; /* SSLeay version string */
66OPENSSL_EXTERN const char OSSL_libdes_version[]; /* old libdes version string */ 64extern const char OSSL_libdes_version[]; /* old libdes version string */
diff --git a/src/lib/libcrypto/des/ecb_enc.c b/src/lib/libcrypto/des/ecb_enc.c
index f357333b97..b07916758f 100644
--- a/src/lib/libcrypto/des/ecb_enc.c
+++ b/src/lib/libcrypto/des/ecb_enc.c
@@ -61,8 +61,8 @@
61#include <openssl/opensslv.h> 61#include <openssl/opensslv.h>
62#include <openssl/bio.h> 62#include <openssl/bio.h>
63 63
64OPENSSL_GLOBAL const char libdes_version[]="libdes" OPENSSL_VERSION_PTEXT; 64const char libdes_version[]="libdes" OPENSSL_VERSION_PTEXT;
65OPENSSL_GLOBAL const char DES_version[]="DES" OPENSSL_VERSION_PTEXT; 65const char DES_version[]="DES" OPENSSL_VERSION_PTEXT;
66 66
67const char *DES_options(void) 67const char *DES_options(void)
68 { 68 {
diff --git a/src/lib/libcrypto/des/spr.h b/src/lib/libcrypto/des/spr.h
index b91936a5a5..98ec61eee7 100644
--- a/src/lib/libcrypto/des/spr.h
+++ b/src/lib/libcrypto/des/spr.h
@@ -56,7 +56,7 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59OPENSSL_GLOBAL const DES_LONG DES_SPtrans[8][64]={ 59const DES_LONG DES_SPtrans[8][64]={
60{ 60{
61/* nibble 0 */ 61/* nibble 0 */
620x02080800L, 0x00080000L, 0x02000002L, 0x02080802L, 620x02080800L, 0x00080000L, 0x02000002L, 0x02080802L,