Merge pull request #743 from nghttp2/fix-fetch-ocsp-response-with-openssl-1-1-0

Fix bug that fetch-ocsp-response does not work with OpenSSL 1.1.0
This commit is contained in:
Tatsuhiro Tsujikawa 2016-12-12 22:59:40 +09:00 committed by GitHub
commit 7dff758f8b
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ def send_and_receive_ocsp(respder_fn, cmd, cert_fn, issuer_fn, ocsp_uri,
'-noverify', '-respout', respder_fn
]
ver = openssl_version.lower()
if ver.startswith('openssl 1.') or ver.startswith('libressl '):
if ver.startswith('openssl 1.0.') or ver.startswith('libressl '):
args.extend(['-header', 'Host', ocsp_host])
resp = run_openssl(args, allow_tempfail=True)
return resp.decode('utf-8')