aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/engine.py
diff options
context:
space:
mode:
authorGlyph <glyph@twistedmatrix.com>2015-06-26 21:59:15 -0700
committerGlyph <glyph@twistedmatrix.com>2015-06-26 21:59:15 -0700
commit332936dffb7c8574be7340271f9cfb196f25a016 (patch)
tree7df7ea6ddbff713346be56172c7e6f79f2fec14b /src/_cffi_src/openssl/engine.py
parentb7c7b39bd15f552ebb6ea8ae74f4af2b8985b198 (diff)
downloadcryptography-332936dffb7c8574be7340271f9cfb196f25a016.tar.gz
cryptography-332936dffb7c8574be7340271f9cfb196f25a016.tar.bz2
cryptography-332936dffb7c8574be7340271f9cfb196f25a016.zip
deopaque a couple of things
Diffstat (limited to 'src/_cffi_src/openssl/engine.py')
-rw-r--r--src/_cffi_src/openssl/engine.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/engine.py b/src/_cffi_src/openssl/engine.py
index 3ebfa6c1..bc5c1906 100644
--- a/src/_cffi_src/openssl/engine.py
+++ b/src/_cffi_src/openssl/engine.py
@@ -11,15 +11,24 @@ INCLUDES = """
TYPES = """
static const long Cryptography_HAS_ENGINE_CRYPTODEV;
+struct rand_meth_st {
+ void (*seed)(const void *buf, int num);
+ int (*bytes)(unsigned char *buf, int num);
+ void (*cleanup)(void);
+ void (*add)(const void *buf, int num, double entropy);
+ int (*pseudorand)(unsigned char *buf, int num);
+ int (*status)(void);
+};
+
typedef ... ENGINE;
typedef ... RSA_METHOD;
typedef ... DSA_METHOD;
typedef ... ECDH_METHOD;
typedef ... ECDSA_METHOD;
typedef ... DH_METHOD;
-typedef ... RAND_METHOD;
+typedef struct rand_meth_st RAND_METHOD;
typedef ... STORE_METHOD;
-typedef ... *ENGINE_GEN_INT_FUNC_PTR;
+typedef int(*ENGINE_GEN_INT_FUNC_PTR)(ENGINE*);
typedef ... *ENGINE_CTRL_FUNC_PTR;
typedef ... *ENGINE_LOAD_KEY_PTR;
typedef ... *ENGINE_CIPHERS_PTR;