summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/x_long.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-04-05 12:09:21 +0200
committerRichard Levitte <levitte@openssl.org>2017-04-10 12:11:00 +0200
commit7eb4c1eb50785c0b32f52e8a5bf20328b6baca34 (patch)
tree6c0914806319fbc6fbc834fd08de9a7fe685bacf /crypto/asn1/x_long.c
parentPublish our INT32, UINT32, INT64, UINT64 ASN.1 types and Z variants (diff)
downloadopenssl-7eb4c1eb50785c0b32f52e8a5bf20328b6baca34.tar.xz
openssl-7eb4c1eb50785c0b32f52e8a5bf20328b6baca34.zip
Discourage the use of LONG and ZLONG, and deprecate it in the future
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3126)
Diffstat (limited to 'crypto/asn1/x_long.c')
-rw-r--r--crypto/asn1/x_long.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/asn1/x_long.c b/crypto/asn1/x_long.c
index 5895345f9f..4bb66114ba 100644
--- a/crypto/asn1/x_long.c
+++ b/crypto/asn1/x_long.c
@@ -11,6 +11,9 @@
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
+#if !(OPENSSL_API_COMPAT < 0x10200000L)
+NON_EMPTY_TRANSLATION_UNIT
+#else
/*
* Custom primitive type for long handling. This converts between an
* ASN1_INTEGER and a long directly.
@@ -194,3 +197,4 @@ static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it,
{
return BIO_printf(out, "%ld\n", *(long *)pval);
}
+#endif