Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add help for pkeyopt values for the genpkey commandline app.
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Todd Short <todd.short@me.com> (Merged from #19931)
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#! /usr/bin/env perl | ||
# Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License 2.0 (the "License"). You may not use | ||
# this file except in compliance with the License. You can obtain a copy | ||
# in the file LICENSE in the source distribution or at | ||
# https://www.openssl.org/source/license.html | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use OpenSSL::Test qw/:DEFAULT/; | ||
use OpenSSL::Test::Utils; | ||
|
||
setup("test_genpkey"); | ||
|
||
my @algs = (); | ||
push @algs, qw(RSA) unless disabled("rsa"); | ||
push @algs, qw(DSA) unless disabled("dsa"); | ||
push @algs, qw(DH DHX) unless disabled("dh"); | ||
push @algs, qw(EC X25519 X448) unless disabled("ec"); | ||
push @algs, qw(SM2) unless disabled("sm2"); | ||
|
||
plan tests => scalar(@algs); | ||
|
||
foreach (@algs) { | ||
my $alg = $_; | ||
|
||
ok(run(app([ 'openssl', 'genpkey', '-algorithm', $alg, '-help'])), | ||
"show genpkey pkeyopt values for $alg"); | ||
} |