• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from __future__ import print_function
2import os
3import re
4
5def get_has_quic(include_path):
6  if include_path:
7    openssl_quic_h = os.path.join(
8        include_path,
9        'openssl',
10        'quic.h')
11
12    try:
13      f = open(openssl_quic_h)
14    except OSError:
15      return False
16
17    regex = r'^#\s*define OPENSSL_INFO_QUIC'
18
19    for line in f:
20      if (re.match(regex, line)):
21        return True
22
23  return False
24