aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornicoulaj <julien.nicoulaud@gmail.com>2021-01-03 18:41:18 +0100
committerGitHub <noreply@github.com>2021-01-03 18:41:18 +0100
commit244cbfc832930ce0a10c2e7930a30ea985a5e26d (patch)
treea4777b0cecb6d18bf232039c3bc56a57683939ff /src
parentMerge pull request #773 from simnalamburt/mssh (diff)
parentFix completion of cipher algorithms (diff)
downloadzsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.tar
zsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.tar.gz
zsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.tar.bz2
zsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.tar.lz
zsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.tar.xz
zsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.tar.zst
zsh-completions-244cbfc832930ce0a10c2e7930a30ea985a5e26d.zip
Merge pull request #775 from brainplot/openssl-fix
Fix completion of cipher algorithms
Diffstat (limited to 'src')
-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]")