Debian Codegraph @

lib_pypy/_cffi_ssl/_cffi_src/openssl/rand.py

raw symbols SCIP
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
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 """