2
0

05-test_pbe.t 776 B

12345678910111213141516171819202122232425262728
  1. #! /usr/bin/env perl
  2. # Copyright 2021 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. use strict;
  9. use warnings;
  10. use OpenSSL::Test::Simple;
  11. use OpenSSL::Test;
  12. use OpenSSL::Test::Utils;
  13. use OpenSSL::Test qw/:DEFAULT srctop_file bldtop_dir/;
  14. use Cwd qw(abs_path);
  15. setup("test_pbe");
  16. plan skip_all => "PKCS5 PBE only available in legacy provider"
  17. if disabled("legacy");
  18. plan tests => 1;
  19. $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "default-and-legacy.cnf"));
  20. ok(run(test((["pbetest"]))), "Running PBE test");