提交 751ff1d3 编写于 作者: R Richard Levitte

Make sure we get the definition of OPENSSL_NO_DSA and OPENSSL_NO_SHA.

上级 d3ae5b1c
......@@ -65,6 +65,8 @@
#ifndef HEADER_DSA_H
#define HEADER_DSA_H
#include <openssl/e_os2.h>
#ifdef OPENSSL_NO_DSA
#error DSA is disabled.
#endif
......
......@@ -69,6 +69,8 @@
#define HASH EVP_sha1()
#endif
#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_SHA is defined */
#ifndef OPENSSL_NO_SHA
#include <stdio.h>
......
......@@ -56,10 +56,10 @@
* [including the GNU Public Licence.]
*/
#ifndef OPENSSL_NO_SHA
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#ifndef OPENSSL_NO_SHA
#include <openssl/bn.h>
#include <openssl/dsa.h>
#include <openssl/rand.h>
......
......@@ -76,6 +76,7 @@
#include <openssl/err.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#include <openssl/e_os2.h>
#endif
#ifdef OPENSSL_NO_DSA
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册