提交 37332ecc 编写于 作者: R Richard Levitte

Add a test of encoding and decoding LONG, INT32, UINT32, INT64 and UINT64

Also Z varieties.
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3088)
上级 66ecfb54
此差异已折叠。
...@@ -28,7 +28,8 @@ IF[{- !$disabled{tests} -}] ...@@ -28,7 +28,8 @@ IF[{- !$disabled{tests} -}]
dtlsv1listentest ct_test threadstest afalgtest d2i_test \ dtlsv1listentest ct_test threadstest afalgtest d2i_test \
ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \ ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \ bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
pkey_meth_test uitest cipherbytes_test x509_time_test recordlentest pkey_meth_test uitest cipherbytes_test asn1_encode_test \
x509_time_test recordlentest
SOURCE[aborttest]=aborttest.c SOURCE[aborttest]=aborttest.c
INCLUDE[aborttest]=../include INCLUDE[aborttest]=../include
...@@ -328,6 +329,10 @@ IF[{- !$disabled{tests} -}] ...@@ -328,6 +329,10 @@ IF[{- !$disabled{tests} -}]
INCLUDE[cipherbytes_test]=.. ../include INCLUDE[cipherbytes_test]=.. ../include
DEPEND[cipherbytes_test]=../libcrypto ../libssl DEPEND[cipherbytes_test]=../libcrypto ../libssl
SOURCE[asn1_encode_test]=asn1_encode_test.c testutil.c test_main.c
INCLUDE[asn1_encode_test]=../include
DEPEND[asn1_encode_test]=../libcrypto
# Internal test programs. These are essentially a collection of internal # Internal test programs. These are essentially a collection of internal
# test routines. Some of them need to reach internal symbols that aren't # test routines. Some of them need to reach internal symbols that aren't
# available through the shared library (at least on Linux, Solaris, Windows # available through the shared library (at least on Linux, Solaris, Windows
......
#! /usr/bin/env perl
# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
use OpenSSL::Test::Simple;
simple_test("test_asn1_encode", "asn1_encode_test");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册