xref: /unit/test/unit/check/tls.py (revision 2235:a54509bf68c3)
1import re
2import subprocess
3
4
5def check_openssl(output_version):
6    try:
7        subprocess.check_output(['which', 'openssl'])
8    except subprocess.CalledProcessError:
9        return None
10
11    if re.search('--openssl', output_version):
12        return True
13