diff options
| author | nicoulaj <julien.nicoulaud@gmail.com> | 2021-01-03 18:41:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-03 18:41:18 +0100 |
| commit | 244cbfc832930ce0a10c2e7930a30ea985a5e26d (patch) | |
| tree | a4777b0cecb6d18bf232039c3bc56a57683939ff /src | |
| parent | Merge pull request #773 from simnalamburt/mssh (diff) | |
| parent | Fix completion of cipher algorithms (diff) | |
| download | zsh-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/_openssl | 4 |
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]") |
