Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getsharedopensslhasquic.py « tools - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 00d4b4b424ee5dfb731333c321bd787f4c2d3755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from __future__ import print_function
import os
import re

def get_has_quic(include_path):
  if include_path:
    openssl_crypto_h = os.path.join(
        include_path,
        'openssl',
        'crypto.h')

    f = open(openssl_crypto_h)

    regex = '^#\s*define OPENSSL_INFO_QUIC'

    for line in f:
      if (re.match(regex, line)):
        return True

  return False