1*66bae5e7Schristos#! /usr/bin/env perl 2*66bae5e7Schristos# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved. 3*66bae5e7Schristos# 4*66bae5e7Schristos# Licensed under the Apache License 2.0 (the "License"). You may not use 5*66bae5e7Schristos# this file except in compliance with the License. You can obtain a copy 6*66bae5e7Schristos# in the file LICENSE in the source distribution or at 7*66bae5e7Schristos# https://www.openssl.org/source/license.html 8*66bae5e7Schristos 9*66bae5e7Schristosuse strict; 10*66bae5e7Schristosuse warnings; 11*66bae5e7Schristos 12*66bae5e7Schristosuse OpenSSL::Test::Simple; 13*66bae5e7Schristosuse OpenSSL::Test; 14*66bae5e7Schristosuse OpenSSL::Test::Utils; 15*66bae5e7Schristosuse OpenSSL::Test qw/:DEFAULT srctop_file bldtop_dir/; 16*66bae5e7Schristosuse Cwd qw(abs_path); 17*66bae5e7Schristos 18*66bae5e7Schristossetup("test_pbe"); 19*66bae5e7Schristos 20*66bae5e7Schristosplan skip_all => "PKCS5 PBE only available in legacy provider" 21*66bae5e7Schristos if disabled("legacy"); 22*66bae5e7Schristos 23*66bae5e7Schristosplan tests => 1; 24*66bae5e7Schristos 25*66bae5e7Schristos$ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "default-and-legacy.cnf")); 26*66bae5e7Schristos 27*66bae5e7Schristosok(run(test((["pbetest"]))), "Running PBE test"); 28*66bae5e7Schristos 29