aboutsummaryrefslogtreecommitdiffstats
path: root/src/_openssl
diff options
context:
space:
mode:
authorGianluca Recchia <gianluca.recchia@protonmail.com>2021-01-03 16:31:19 +0100
committerGianluca Recchia <gianluca.recchia@protonmail.com>2021-01-03 16:31:19 +0100
commit17d92b0a8ebcdd1cded77e3bb2307ba148599352 (patch)
treea4777b0cecb6d18bf232039c3bc56a57683939ff /src/_openssl
parentMerge pull request #773 from simnalamburt/mssh (diff)
downloadzsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.tar
zsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.tar.gz
zsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.tar.bz2
zsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.tar.lz
zsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.tar.xz
zsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.tar.zst
zsh-completions-17d92b0a8ebcdd1cded77e3bb2307ba148599352.zip
Fix completion of cipher algorithms
Diffstat (limited to 'src/_openssl')
-rw-r--r--src/_openssl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/_openssl b/src/_openssl
index 4a44ea0..df92096 100644
--- a/src/_openssl
+++ b/src/_openssl
@@ -611,7 +611,9 @@ _openssl_gendsa() {
_openssl_genpkey() {
# written for openssl 1.0.1k
local ciphers cipher_opts
- ciphers=( ${$(openssl list-cipher-algorithms | cut -d' ' -f1)} )
+ if ! ciphers=( ${$(openssl list-cipher-algorithms | cut -d' ' -f1)} ) 2>/dev/null ; then
+ ciphers=( ${$(openssl list -cipher-algorithms | cut -d' ' -f1)} )
+ fi
cipher_opts=()
for alg in ${ciphers}; do
cipher_opts=(${cipher_opts} "(${${(l:32:: ::-:)ciphers[@]}// / })-${alg}[use this cipher to encrypt the key]")