xref: /unit/test/unit/check/tls.py (revision 1621:275b26bbd3ae)
1import re
2import subprocess
3
4
5def check_openssl(unitd):
6    subprocess.check_output(['which', 'openssl'])
7
8    output = subprocess.check_output(
9        [unitd, '--version'], stderr=subprocess.STDOUT
10    )
11
12    if re.search('--openssl', output.decode()):
13        return True
14