mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
66da32c045
This pull request updates the OpenSSL version that is statically linked with Node.js from OpenSSl 1.1.1 to quictls OpenSSL 3.0.0+quic. This pull request will replace the OpenSSL version that is currently in the deps directory and when performing a normal build OpenSSL 3.0+quic will be statically linked to the Node.js executable. We will still be able to dynamically link to OpenSSL 1.1.1 and we have a CI job which dynamically links to OpenSSL 1.1.1 which is run for every pull request to make sure that we maintain backward compatibility. PR-URL: https://github.com/nodejs/node/pull/38512 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
24 lines
419 B
Python
24 lines
419 B
Python
from __future__ import print_function
|
|
import os
|
|
import re
|
|
|
|
def get_has_quic(include_path):
|
|
if include_path:
|
|
openssl_quic_h = os.path.join(
|
|
include_path,
|
|
'openssl',
|
|
'quic.h')
|
|
|
|
try:
|
|
f = open(openssl_quic_h)
|
|
except OSError:
|
|
return False
|
|
|
|
regex = '^#\s*define OPENSSL_INFO_QUIC'
|
|
|
|
for line in f:
|
|
if (re.match(regex, line)):
|
|
return True
|
|
|
|
return False
|