summaryrefslogtreecommitdiffstats
path: root/test/asn1_encode_test.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-04-05 13:21:06 +0200
committerRichard Levitte <levitte@openssl.org>2017-04-10 12:11:00 +0200
commit31ae516116343defd39d5b5ee800fa25eeab7638 (patch)
treed389b7dec428d7132d050fe3d2159a7459a88683 /test/asn1_encode_test.c
parent7eb4c1eb50785c0b32f52e8a5bf20328b6baca34 (diff)
Act on deprecation of LONG and ZLONG, step 1
Don't compile code that still uses LONG when it's deprecated 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 'test/asn1_encode_test.c')
-rw-r--r--test/asn1_encode_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/asn1_encode_test.c b/test/asn1_encode_test.c
index 26eec6272a..9b3331494d 100644
--- a/test/asn1_encode_test.c
+++ b/test/asn1_encode_test.c
@@ -170,6 +170,7 @@ typedef struct {
ENCDEC_DATA(-1, -1), \
ENCDEC_DATA(0, ASN1_LONG_UNDEF)
+#if OPENSSL_API_COMPAT < 0x10200000L
/***** LONG ******************************************************************/
typedef struct {
@@ -255,6 +256,7 @@ static TEST_PACKAGE long_test_package_64bit = {
(i2d_fn *)i2d_ASN1_LONG_DATA, (d2i_fn *)d2i_ASN1_LONG_DATA,
(ifree_fn *)ASN1_LONG_DATA_free
};
+#endif
/***** INT32 *****************************************************************/
@@ -676,6 +678,7 @@ static int test_intern(const TEST_PACKAGE *package)
return fail == 0;
}
+#if OPENSSL_API_COMPAT < 0x10200000L
static int test_long_32bit(void)
{
return test_intern(&long_test_package_32bit);
@@ -685,6 +688,7 @@ static int test_long_64bit(void)
{
return test_intern(&long_test_package_64bit);
}
+#endif
static int test_int32(void)
{
@@ -708,8 +712,10 @@ static int test_uint64(void)
void register_tests(void)
{
+#if OPENSSL_API_COMPAT < 0x10200000L
ADD_TEST(test_long_32bit);
ADD_TEST(test_long_64bit);
+#endif
ADD_TEST(test_int32);
ADD_TEST(test_uint32);
ADD_TEST(test_int64);