]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/recipes/25-test_x509.t
crypto/x509/x509_vpm.c: Simplify int_x509_param_set1()
[thirdparty/openssl.git] / test / recipes / 25-test_x509.t
CommitLineData
596d6b7e
RS
1#! /usr/bin/env perl
2# Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
3#
4# Licensed under the OpenSSL license (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
4650de3e
RL
9
10use strict;
11use warnings;
12
13use File::Spec;
42e0ccdf 14use OpenSSL::Test qw/:DEFAULT srctop_file/;
4650de3e
RL
15
16setup("test_x509");
17
18plan tests => 4;
19
42e0ccdf 20require_ok(srctop_file('test','recipes','tconversion.pl'));
4650de3e
RL
21
22subtest 'x509 -- x.509 v1 certificate' => sub {
42e0ccdf 23 tconversion("x509", srctop_file("test","testx509.pem"));
4650de3e
RL
24};
25subtest 'x509 -- first x.509 v3 certificate' => sub {
42e0ccdf 26 tconversion("x509", srctop_file("test","v3-cert1.pem"));
4650de3e
RL
27};
28subtest 'x509 -- second x.509 v3 certificate' => sub {
42e0ccdf 29 tconversion("x509", srctop_file("test","v3-cert2.pem"));
4650de3e 30};