VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.7/test/recipes/25-test_rusext.t@ 106165

最後變更 在這個檔案從106165是 104078,由 vboxsync 提交於 8 月 前

openssl-3.1.5: Applied and adjusted our OpenSSL changes to 3.1.4. bugref:10638

檔案大小: 1.2 KB
 
1#! /usr/bin/env perl
2# Copyright 2020 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
10use strict;
11use warnings;
12
13use File::Spec;
14use OpenSSL::Test::Utils;
15use OpenSSL::Test qw/:DEFAULT srctop_file/;
16
17setup("test_rusext");
18
19plan tests => 5;
20
21require_ok(srctop_file('test', 'recipes', 'tconversion.pl'));
22my $pem = srctop_file("test/certs", "grfc.pem");
23my $out_msb = "grfc.msb";
24my $out_utf8 = "grfc.utf8";
25
26ok(run(app(["openssl", "x509", "-text", "-in", $pem, "-out", $out_msb,
27 "-nameopt", "esc_msb", "-certopt", "no_pubkey"])));
28is(cmp_text($out_msb, srctop_file('test', 'recipes', '25-test_rusext_data', 'grfc.msb')),
29 0, 'Comparing esc_msb output');
30ok(run(app(["openssl", "x509", "-text", "-in", $pem, "-out", $out_utf8,
31 "-nameopt", "utf8", "-certopt", "no_pubkey"])));
32is(cmp_text($out_utf8, srctop_file('test', 'recipes', '25-test_rusext_data', 'grfc.utf8')),
33 0, 'Comparing utf8 output');
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette