From 28e7d80faff025e2fa90ea69813fc73332387c25 Mon Sep 17 00:00:00 2001 From: Glyph Date: Sat, 27 Jun 2015 15:13:12 -0700 Subject: don't need the intermediary 'struct' declaration. --- src/_cffi_src/openssl/engine.py | 18 ++++++++---------- 1 file 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; -- cgit v1.2.3