提交 165fca51 编写于 作者: A Andy Polyakov

"Show" more respect to no-sha* config options.

PR: 1086
上级 db6b4e37
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include <openssl/opensslconf.h>
#if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_NO_SHA) #if !defined(OPENSSL_NO_SHA1) && !defined(OPENSSL_NO_SHA)
#undef SHA_0 #undef SHA_0
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
* according to the OpenSSL license [found in ../../LICENSE]. * according to the OpenSSL license [found in ../../LICENSE].
* ==================================================================== * ====================================================================
*/ */
#include <openssl/opensslconf.h>
#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA256) #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA256)
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <openssl/opensslconf.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* according to the OpenSSL license [found in ../../LICENSE]. * according to the OpenSSL license [found in ../../LICENSE].
* ==================================================================== * ====================================================================
*/ */
#include <openssl/opensslconf.h>
#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA512) #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA512)
/* /*
* IMPLEMENTATION NOTES. * IMPLEMENTATION NOTES.
...@@ -43,7 +44,6 @@ ...@@ -43,7 +44,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <openssl/opensslconf.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
......
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include <openssl/opensslconf.h>
#if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA) #if !defined(OPENSSL_NO_SHA0) && !defined(OPENSSL_NO_SHA)
#undef SHA_1 #undef SHA_1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册