a1346054 | 473664a | 2021-08-19 11:05:15 +0000 | [diff] [blame] | 1 | #! /usr/bin/env perl |
Paul Yang | bbb4ceb | 2017-06-30 03:06:19 +0800 | [diff] [blame] | 2 | # |
Richard Levitte | a8d9bd8 | 2021-09-07 13:29:33 +0200 | [diff] [blame] | 3 | # Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. |
Paul Yang | bbb4ceb | 2017-06-30 03:06:19 +0800 | [diff] [blame] | 4 | # Copyright 2017 BaishanCloud. All rights reserved. |
| 5 | # |
Richard Levitte | 909f1a2 | 2018-12-06 13:05:25 +0100 | [diff] [blame] | 6 | # Licensed under the Apache License 2.0 (the "License"). You may not use |
Paul Yang | bbb4ceb | 2017-06-30 03:06:19 +0800 | [diff] [blame] | 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 | |
| 11 | |
| 12 | use strict; |
| 13 | use warnings; |
| 14 | |
| 15 | use OpenSSL::Test::Simple; |
| 16 | use OpenSSL::Test; |
| 17 | use OpenSSL::Test::Utils qw(alldisabled available_protocols); |
| 18 | |
| 19 | setup("test_ciphername"); |
| 20 | |
| 21 | my $no_anytls = alldisabled(available_protocols("tls")); |
| 22 | |
| 23 | # If we have no protocols, then we also have no supported ciphers. |
| 24 | plan skip_all => "No SSL/TLS protocol is supported by this OpenSSL build." |
| 25 | if $no_anytls; |
| 26 | |
| 27 | simple_test("test_ciphername", "ciphername_test"); |