mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
31b28ad96a
add CMP message validation and related tests; while doing so: * add ERR_add_error_mem_bio() to crypto/err/err_prn.c * move ossl_cmp_add_error_txt() as ERR_add_error_txt() to crypto/err/err_prn.c * add X509_STORE_CTX_print_verify_cb() to crypto/x509/t_x509.c, adding internally x509_print_ex_brief(), print_certs(), and print_store_certs() * move {ossl_cmp_,}X509_STORE_get1_certs() to crypto/x509/x509_lu.c Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/10620)
37 lines
1.3 KiB
Perl
37 lines
1.3 KiB
Perl
#! /usr/bin/env perl
|
|
# Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
# Copyright Nokia 2007-2019
|
|
# Copyright Siemens AG 2015-2019
|
|
#
|
|
# Licensed under the Apache License 2.0 (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 strict;
|
|
use OpenSSL::Test qw/:DEFAULT data_file/;
|
|
use OpenSSL::Test::Utils;
|
|
|
|
setup("test_cmp_vfy");
|
|
|
|
plan skip_all => "This test is not supported in a no-cmp build"
|
|
if disabled("cmp");
|
|
|
|
plan skip_all => "This test is not supported in a no-ec build"
|
|
if disabled("ec");
|
|
|
|
plan tests => 1;
|
|
|
|
ok(run(test(["cmp_vfy_test",
|
|
data_file("server.crt"), data_file("client.crt"),
|
|
data_file("EndEntity1.crt"), data_file("EndEntity2.crt"),
|
|
data_file("Root_CA.crt"), data_file("Intermediate_CA.crt"),
|
|
data_file("IR_protected.der"),
|
|
data_file("IR_unprotected.der"),
|
|
data_file("IP_waitingStatus_PBM.der"),
|
|
data_file("IR_rmprotection.der"),
|
|
data_file("insta.cert.pem"),
|
|
data_file("insta_ca.cert.pem"),
|
|
data_file("IR_protected_0_extraCerts.der"),
|
|
data_file("IR_protected_2_extraCerts.der")])));
|