summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-04-17 19:59:12 +0000
committermiod <miod@openbsd.org>2014-04-17 19:59:12 +0000
commit9e593c41da051b34fcc4fd28c28b01f17195edab (patch)
tree56c30e810083ca0746249a0e5a7340cb5b212666 /lib/libssl/src/crypto
parentBob O.D.'ed on the o_dir code so high he forgot to rm the `test' after (diff)
downloadwireguard-openbsd-9e593c41da051b34fcc4fd28c28b01f17195edab.tar.xz
wireguard-openbsd-9e593c41da051b34fcc4fd28c28b01f17195edab.zip
Use of OPENSSL_SYS_xxx defines in public header files considered harmful.
Diffstat (limited to 'lib/libssl/src/crypto')
-rw-r--r--lib/libssl/src/crypto/bn/bn.h7
-rw-r--r--lib/libssl/src/crypto/ossl_typ.h9
-rw-r--r--lib/libssl/src/crypto/pkcs7/pkcs7.h6
-rw-r--r--lib/libssl/src/crypto/x509/x509.h7
4 files changed, 1 insertions, 28 deletions
diff --git a/lib/libssl/src/crypto/bn/bn.h b/lib/libssl/src/crypto/bn/bn.h
index 2e3fab98dbc..4959232179b 100644
--- a/lib/libssl/src/crypto/bn/bn.h
+++ b/lib/libssl/src/crypto/bn/bn.h
@@ -165,12 +165,7 @@ extern "C" {
* For machines with only one compiler (or shared libraries), this should
* be on. Again this in only really a problem on machines
* using "long long's", are 32bit, and are not using my assembler code. */
-#if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WINDOWS) || \
- defined(OPENSSL_SYS_WIN32) || defined(linux)
-# ifndef BN_DIV2W
-# define BN_DIV2W
-# endif
-#endif
+/* #define BN_DIV2W */
/* assuming long is 64bit - this is the DEC Alpha
* unsigned long long is only 64 bits :-(, don't define
diff --git a/lib/libssl/src/crypto/ossl_typ.h b/lib/libssl/src/crypto/ossl_typ.h
index ae79bf8ae48..3c360b0d9bb 100644
--- a/lib/libssl/src/crypto/ossl_typ.h
+++ b/lib/libssl/src/crypto/ossl_typ.h
@@ -99,15 +99,6 @@ typedef int ASN1_NULL;
typedef struct ASN1_ITEM_st ASN1_ITEM;
typedef struct asn1_pctx_st ASN1_PCTX;
-#ifdef OPENSSL_SYS_WIN32
-#undef X509_NAME
-#undef X509_EXTENSIONS
-#undef X509_CERT_PAIR
-#undef PKCS7_ISSUER_AND_SERIAL
-#undef OCSP_REQUEST
-#undef OCSP_RESPONSE
-#endif
-
#ifdef BIGNUM
#undef BIGNUM
#endif
diff --git a/lib/libssl/src/crypto/pkcs7/pkcs7.h b/lib/libssl/src/crypto/pkcs7/pkcs7.h
index 4476d613742..04edb22f75b 100644
--- a/lib/libssl/src/crypto/pkcs7/pkcs7.h
+++ b/lib/libssl/src/crypto/pkcs7/pkcs7.h
@@ -69,12 +69,6 @@
extern "C" {
#endif
-#ifdef OPENSSL_SYS_WIN32
-/* Under Win32 thes are defined in wincrypt.h */
-#undef PKCS7_ISSUER_AND_SERIAL
-#undef PKCS7_SIGNER_INFO
-#endif
-
/*
Encryption_ID DES-CBC
Digest_ID MD5
diff --git a/lib/libssl/src/crypto/x509/x509.h b/lib/libssl/src/crypto/x509/x509.h
index 27befbbbb01..2b0435686af 100644
--- a/lib/libssl/src/crypto/x509/x509.h
+++ b/lib/libssl/src/crypto/x509/x509.h
@@ -111,13 +111,6 @@
extern "C" {
#endif
-#ifdef OPENSSL_SYS_WIN32
-/* Under Win32 these are defined in wincrypt.h */
-#undef X509_NAME
-#undef X509_CERT_PAIR
-#undef X509_EXTENSIONS
-#endif
-
#define X509_FILETYPE_PEM 1
#define X509_FILETYPE_ASN1 2
#define X509_FILETYPE_DEFAULT 3