1# This file is dual licensed under the terms of the Apache License, Version 2# 2.0, and the BSD License. See the LICENSE file in the root of this repository 3# for complete details. 4 5from __future__ import absolute_import, division, print_function 6 7import os 8 9HERE = os.path.dirname(os.path.abspath(__file__)) 10 11with open(os.path.join(HERE, "src/osrandom_engine.h")) as f: 12 INCLUDES = f.read() 13 14TYPES = """ 15static const char *const Cryptography_osrandom_engine_name; 16static const char *const Cryptography_osrandom_engine_id; 17""" 18 19FUNCTIONS = """ 20int Cryptography_add_osrandom_engine(void); 21""" 22 23with open(os.path.join(HERE, "src/osrandom_engine.c")) as f: 24 CUSTOMIZATIONS = f.read() 25