提交 2b6405fa 编写于 作者: B Bodo Möller

Avoid "incomprehensible" errors when required definitions are missing.

Submitted by:
Reviewed by:
PR:
上级 6e781e8e
......@@ -679,6 +679,9 @@ char *ASN1_unpack_string(ASN1_STRING *oct, char *(*d2i)());
ASN1_STRING *ASN1_pack_string(char *obj, int (*i2d)(), ASN1_OCTET_STRING **oct);
#else
#error "OpenSSL cannot be used with NOPROTO defined. The NOPROTO sections in header files exist only for automatic parsing by certain utilities."
/* Without this, highly uncomprehensible error messages can occur
* when compiling something with -DNOPROTO ... */
ASN1_TYPE * ASN1_TYPE_new();
void ASN1_TYPE_free();
......
......@@ -59,6 +59,9 @@
#ifndef HEADER_BN_H
#define HEADER_BN_H
#ifndef WIN16
#include <stdio.h> /* FILE */
#endif
#include <openssl/opensslconf.h>
#ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册