File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ _comp_cmd_openssl()
111
111
dgst | req | x509)
112
112
_comp_compgen -a -i openssl digests " $1 "
113
113
;;
114
+ enc)
115
+ # The -list option was added in openssl 1.1.1e, so we ignore the error here.
116
+ # We do get some of the ciphers "by accident", since some are detected in the help output.
117
+ _comp_compgen -a split -- " $( " $1 " enc -list 2> /dev/null | command sed ' /Supported ciphers:/d' ) "
118
+ ;;
114
119
esac
115
120
else
116
121
if [[ $command == speed ]]; then
Original file line number Diff line number Diff line change @@ -15,3 +15,8 @@ def test_2(self, completion):
15
15
def test_3 (self , completion ):
16
16
assert completion
17
17
assert any (x .startswith ("-sha" ) for x in completion )
18
+
19
+ @pytest .mark .complete ("openssl enc -a" , require_cmd = True )
20
+ def test_4 (self , completion ):
21
+ assert completion
22
+ assert any (x .startswith ("-aes" ) for x in completion )
You can’t perform that action at this time.
0 commit comments