summaryrefslogtreecommitdiffstats
path: root/crypto/des
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-12-31 00:23:17 +0000
committerRichard Levitte <levitte@openssl.org>2000-12-31 00:23:17 +0000
commit26da3e65ac3ecf05c7567b0c62ee515814babf31 (patch)
tree3557bc2dd75f54f1727dc8bf7a2d96b1166e4cbf /crypto/des
parent21cd437886f448858e166c149f40604dfe6b7b7c (diff)
If OPENSSL_BUILD_SHLIBCRYPTO (for files that end up as libcrypto
objects) or OPENSSL_BUILD_SHLIBSSL (for files that end up as libssl objects) is defined, redefine OPENSSL_EXTERN to be OPENSSL_EXPORT. This is actually only important on Win32, and can safely be ignored in all other cases, at least for now.
Diffstat (limited to 'crypto/des')
-rw-r--r--crypto/des/des.h5
-rw-r--r--crypto/des/des_locl.h5
-rw-r--r--crypto/des/des_ver.h6
3 files changed, 16 insertions, 0 deletions
diff --git a/crypto/des/des.h b/crypto/des/des.h
index 10c04912bb..e96b19c254 100644
--- a/crypto/des/des.h
+++ b/crypto/des/des.h
@@ -70,6 +70,11 @@
#include <openssl/opensslconf.h> /* DES_LONG */
#include <openssl/e_os2.h> /* OPENSSL_EXTERN */
+#ifdef OPENSSL_BUILD_SHLIBCRYPTO
+# undef OPENSSL_EXTERN
+# define OPENSSL_EXTERN OPENSSL_EXPORT
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/crypto/des/des_locl.h b/crypto/des/des_locl.h
index 1ace8f5930..6b4da958a8 100644
--- a/crypto/des/des_locl.h
+++ b/crypto/des/des_locl.h
@@ -93,6 +93,11 @@
#include <string.h>
#endif
+#ifdef OPENSSL_BUILD_SHLIBCRYPTO
+# undef OPENSSL_EXTERN
+# define OPENSSL_EXTERN OPENSSL_EXPORT
+#endif
+
#define ITERATIONS 16
#define HALF_ITERATIONS 8
diff --git a/crypto/des/des_ver.h b/crypto/des/des_ver.h
index de3c02f110..0fa94d5368 100644
--- a/crypto/des/des_ver.h
+++ b/crypto/des/des_ver.h
@@ -57,5 +57,11 @@
*/
#include <openssl/e_os2.h>
+
+#ifdef OPENSSL_BUILD_SHLIBCRYPTO
+# undef OPENSSL_EXTERN
+# define OPENSSL_EXTERN OPENSSL_EXPORT
+#endif
+
OPENSSL_EXTERN char *DES_version; /* SSLeay version string */
OPENSSL_EXTERN char *libdes_version; /* old libdes version string */