]>
Commit | Line | Data |
---|---|---|
a552c23c NH |
1 | #! /usr/bin/env perl |
2 | # Copyright 2023 The OpenSSL Project Authors. All Rights Reserved. | |
3 | # | |
4 | # Licensed under the Apache License 2.0 (the "License"). You may not use | |
5 | # this file except in compliance with the License. You can obtain a copy | |
6 | # in the file LICENSE in the source distribution or at | |
7 | # https://www.openssl.org/source/license.html | |
8 | ||
9 | use strict; | |
10 | use OpenSSL::Test qw(:DEFAULT srctop_file); | |
11 | use OpenSSL::Test::Utils; | |
12 | ||
13 | setup("test_asn1_parse"); | |
14 | ||
15 | plan tests => 3; | |
16 | ||
17 | $ENV{OPENSSL_CONF} = srctop_file("test", "test_asn1_parse.cnf"); | |
18 | ||
19 | ok(run(app(([ 'openssl', 'asn1parse', | |
20 | '-genstr', 'OID:1.2.3.4.1'])))); | |
21 | ||
22 | ok(run(app(([ 'openssl', 'asn1parse', | |
23 | '-genstr', 'OID:1.2.3.4.2'])))); | |
24 | ||
25 | ok(run(app(([ 'openssl', 'asn1parse', | |
26 | '-genstr', 'OID:1.2.3.4.3'])))); |