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 7INCLUDES = """ 8#include <openssl/rand.h> 9""" 10 11TYPES = """ 12static const long Cryptography_HAS_EGD; 13""" 14 15FUNCTIONS = """ 16void RAND_add(const void *, int, double); 17int RAND_status(void); 18int RAND_bytes(unsigned char *, int); 19/* ERR_load_RAND_strings started returning an int in 1.1.0. Unfortunately we 20 can't declare a conditional signature like that. Since it always returns 21 1 we'll just lie about the signature to preserve compatibility for 22 pyOpenSSL (which calls this in its rand.py as of mid-2016) */ 23void ERR_load_RAND_strings(void); 24 25/* RAND_cleanup became a macro in 1.1.0 */ 26void RAND_cleanup(void); 27""" 28 29CUSTOMIZATIONS = """ 30static const long Cryptography_HAS_EGD = 0; 31""" 32