--- cyassl/openssl/dh.h
+++ cyassl/openssl/dh.h
@@ -1,2 +1,8 @@
 /* dh.h for openssl */
 
+#ifndef CYASSL_DH_H
+#define CYASSL_DH_H
+
+#define OPENSSL_NO_DH
+
+#endif
--- cyassl/openssl/dsa.h
+++ cyassl/openssl/dsa.h
@@ -1,2 +1,8 @@
 /* dsa.h for openssl */
 
+#ifndef CYASSL_DSA_H
+#define CYASSL_DSA_H
+
+#define OPENSSL_NO_DSA
+
+#endif
--- cyassl/openssl/ecdsa.h
+++ cyassl/openssl/ecdsa.h
@@ -1,2 +1,8 @@
 /* ecdsa.h for openssl */
 
+#ifndef CYASSL_ECDSA_H
+#define CYASSL_ECDSA_H
+
+#define OPENSSL_NO_ECDSA
+
+#endif
--- cyassl/openssl/ec.h
+++ cyassl/openssl/ec.h
@@ -1,2 +1,8 @@
 /* ec.h for openssl */
 
+#ifndef CYASSL_EC_H
+#define CYASSL_EC_H
+
+#define OPENSSL_NO_EC
+
+#endif
--- cyassl/openssl/lhash.h
+++ cyassl/openssl/lhash.h
@@ -1,2 +1,8 @@
 /* lhash.h for openSSL */
 
+#ifndef CYASSL_LHASH_H
+#define CYASSL_LHASH_H
+
+#define OPENSSL_NO_LHASH
+
+#endif
--- cyassl/openssl/md4.h
+++ cyassl/openssl/md4.h
@@ -1 +1,10 @@
 /* md4.h for libcurl */
+
+#ifndef CYASSL_MD4_H
+#define CYASSL_MD4_H
+
+#ifdef NO_MD4
+#define OPENSSL_NO_MD4
+#endif
+
+#endif
--- cyassl/openssl/ocsp.h
+++ cyassl/openssl/ocsp.h
@@ -1 +1,8 @@
 /* ocsp.h for libcurl */
+
+#ifndef CYASSL_OCSP_H
+#define CYASSL_OCSP_H
+
+#define OPENSSL_NO_OCSP
+
+#endif
