80-test_ciphername.t 825 B

123456789101112131415161718192021222324252627
  1. #! /usr/bin/perl
  2. #
  3. # Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
  4. # Copyright 2017 BaishanCloud. All rights reserved.
  5. #
  6. # Licensed under the Apache License 2.0 (the "License"). You may not use
  7. # this file except in compliance with the License. You can obtain a copy
  8. # in the file LICENSE in the source distribution or at
  9. # https://www.openssl.org/source/license.html
  10. use strict;
  11. use warnings;
  12. use OpenSSL::Test::Simple;
  13. use OpenSSL::Test;
  14. use OpenSSL::Test::Utils qw(alldisabled available_protocols);
  15. setup("test_ciphername");
  16. my $no_anytls = alldisabled(available_protocols("tls"));
  17. # If we have no protocols, then we also have no supported ciphers.
  18. plan skip_all => "No SSL/TLS protocol is supported by this OpenSSL build."
  19. if $no_anytls;
  20. simple_test("test_ciphername", "ciphername_test");