summaryrefslogblamecommitdiffhomepage
path: root/test/unit/check/tls.py
blob: 53ce5ffc13c8b446ec49d786beef03f63e7c4993 (plain) (tree)
1
2
3
4
5
6
7
8
9



                 




                                                     
 
                                              
                   
import re
import subprocess


def check_openssl(output_version):
    try:
        subprocess.check_output(['which', 'openssl'])
    except subprocess.CalledProcessError:
        return None

    if re.search('--openssl', output_version):
        return True