summaryrefslogtreecommitdiffhomepage
path: root/test/unit/check/tls.py
blob: b878ff7dfbf98e716a8b551d48208b60d8e869dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import re
import subprocess


def check_openssl(unitd):
    subprocess.check_output(['which', 'openssl'])

    output = subprocess.check_output(
        [unitd, '--version'], stderr=subprocess.STDOUT
    )

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