diff options
author | Richard Plangger <planrich@users.noreply.github.com> | 2016-11-29 17:52:59 +0100 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-11-30 00:52:59 +0800 |
commit | 22745ebf3e2d5bef8e089d8fb6111ff8654129ca (patch) | |
tree | 6fc5278e21fd90a8bbb73516633e5ee39e8bb756 /src/_cffi_src/openssl/objects.py | |
parent | 3a3cf1e4fdd163cc03c047f354ee51f016144eb0 (diff) | |
download | cryptography-22745ebf3e2d5bef8e089d8fb6111ff8654129ca.tar.gz cryptography-22745ebf3e2d5bef8e089d8fb6111ff8654129ca.tar.bz2 cryptography-22745ebf3e2d5bef8e089d8fb6111ff8654129ca.zip |
cffi bindings additions for pypy's _hashlib module (#3291)
* add cffi bindings to objects.py and evp.py (required for pypy's _hashlib implementation)
* ah, that comes from copying it from the man page
* dont use #define ..., delcare it as static cont long <name>
Diffstat (limited to 'src/_cffi_src/openssl/objects.py')
-rw-r--r-- | src/_cffi_src/openssl/objects.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/objects.py b/src/_cffi_src/openssl/objects.py index 6551d757..19ff4c17 100644 --- a/src/_cffi_src/openssl/objects.py +++ b/src/_cffi_src/openssl/objects.py @@ -9,6 +9,14 @@ INCLUDES = """ """ TYPES = """ +typedef struct { + int type; + int alias; + const char *name; + const char *data; +} OBJ_NAME; + +static const long OBJ_NAME_TYPE_MD_METH; """ FUNCTIONS = """ @@ -24,6 +32,7 @@ int OBJ_obj2txt(char *, int, const ASN1_OBJECT *, int); int OBJ_cmp(const ASN1_OBJECT *, const ASN1_OBJECT *); ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *); int OBJ_create(const char *, const char *, const char *); +void OBJ_NAME_do_all(int, void (*) (const OBJ_NAME *, void *), void *); """ MACROS = """ |