aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/engine.py
diff options
context:
space:
mode:
authorGlyph <glyph@twistedmatrix.com>2015-06-27 15:13:12 -0700
committerGlyph <glyph@twistedmatrix.com>2015-06-27 15:13:12 -0700
commit28e7d80faff025e2fa90ea69813fc73332387c25 (patch)
tree37d03c5be927c55bda75da4de60b788689726ecd /src/_cffi_src/openssl/engine.py
parentadd79c02c102f2874974bdec727c9733a48685cc (diff)
downloadcryptography-28e7d80faff025e2fa90ea69813fc73332387c25.tar.gz
cryptography-28e7d80faff025e2fa90ea69813fc73332387c25.tar.bz2
cryptography-28e7d80faff025e2fa90ea69813fc73332387c25.zip
don't need the intermediary 'struct' declaration.
Diffstat (limited to 'src/_cffi_src/openssl/engine.py')
-rw-r--r--src/_cffi_src/openssl/engine.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/_cffi_src/openssl/engine.py b/src/_cffi_src/openssl/engine.py
index 821c9235..5079fd69 100644
--- a/src/_cffi_src/openssl/engine.py
+++ b/src/_cffi_src/openssl/engine.py
@@ -11,22 +11,20 @@ INCLUDES = """
TYPES = """
static const long Cryptography_HAS_ENGINE_CRYPTODEV;
-struct rand_meth_st {
- void (*seed)(const void *, int);
- int (*bytes)(unsigned char *, int);
- void (*cleanup)();
- void (*add)(const void *, int, double);
- int (*pseudorand)(unsigned char *, int);
- int (*status)();
-};
-
typedef ... ENGINE;
typedef ... RSA_METHOD;
typedef ... DSA_METHOD;
typedef ... ECDH_METHOD;
typedef ... ECDSA_METHOD;
typedef ... DH_METHOD;
-typedef struct rand_meth_st RAND_METHOD;
+typedef struct {
+ void (*seed)(const void *, int);
+ int (*bytes)(unsigned char *, int);
+ void (*cleanup)();
+ void (*add)(const void *, int, double);
+ int (*pseudorand)(unsigned char *, int);
+ int (*status)();
+} RAND_METHOD;
typedef ... STORE_METHOD;
typedef int (*ENGINE_GEN_INT_FUNC_PTR)(ENGINE *);
typedef ... *ENGINE_CTRL_FUNC_PTR;