xref: /freebsd/crypto/openssl/test/recipes/80-test_ciphername.t (revision a90b9d0159070121c221b966469c3e36d912bf82)
1#! /usr/bin/env perl
2#
3# Copyright 2017-2021 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
11
12use strict;
13use warnings;
14
15use OpenSSL::Test::Simple;
16use OpenSSL::Test;
17use OpenSSL::Test::Utils qw(alldisabled available_protocols);
18
19setup("test_ciphername");
20
21my $no_anytls = alldisabled(available_protocols("tls"));
22
23# If we have no protocols, then we also have no supported ciphers.
24plan skip_all => "No SSL/TLS protocol is supported by this OpenSSL build."
25    if $no_anytls;
26
27simple_test("test_ciphername", "ciphername_test");
28