| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
from __future__ import absolute_import, division, print_function |
| 6 |
|
| 7 |
INCLUDES = """ |
| 8 |
#include <openssl/rand.h> |
| 9 |
""" |
| 10 |
|
| 11 |
TYPES = """ |
| 12 |
static const long Cryptography_HAS_EGD; |
| 13 |
""" |
| 14 |
|
| 15 |
FUNCTIONS = """ |
| 16 |
void RAND_add(const void *, int, double); |
| 17 |
int RAND_status(void); |
| 18 |
int 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) */ |
| 23 |
void ERR_load_RAND_strings(void); |
| 24 |
|
| 25 |
/* RAND_cleanup became a macro in 1.1.0 */ |
| 26 |
void RAND_cleanup(void); |
| 27 |
""" |
| 28 |
|
| 29 |
CUSTOMIZATIONS = """ |
| 30 |
static const long Cryptography_HAS_EGD = 0; |
| 31 |
""" |