aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-04-24 15:11:39 +0000
committerBodo Möller <bodo@openssl.org>1999-04-24 15:11:39 +0000
commit2b6405faa5f4eac1a06c8f57f8ed5f590433a6c7 (patch)
tree99e15e4f0371a9e231e8c6f298f88667907c073a /crypto/asn1
parent6e781e8e076545b5a15e189bbaccbd7aae60d03b (diff)
downloadopenssl-2b6405faa5f4eac1a06c8f57f8ed5f590433a6c7.tar.gz
Avoid "incomprehensible" errors when required definitions are missing.
Submitted by: Reviewed by: PR:
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/asn1.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h
index 15cd421863..8a28085d55 100644
--- a/crypto/asn1/asn1.h
+++ b/crypto/asn1/asn1.h
@@ -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();