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 = """ 12typedef ... RAND_METHOD; 13""" 14 15FUNCTIONS = """ 16int RAND_set_rand_method(const RAND_METHOD *); 17void RAND_add(const void *, int, double); 18int RAND_status(void); 19int RAND_bytes(unsigned char *, int); 20/* ERR_load_RAND_strings started returning an int in 1.1.0. Unfortunately we 21 can't declare a conditional signature like that. Since it always returns 22 1 we'll just lie about the signature to preserve compatibility for 23 pyOpenSSL (which calls this in its rand.py as of mid-2016) */ 24void ERR_load_RAND_strings(void); 25""" 26 27CUSTOMIZATIONS = """ 28""" 29