diff options
Diffstat (limited to 'src/crypto/pkcs12.h')
-rw-r--r-- | src/crypto/pkcs12.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/crypto/pkcs12.h b/src/crypto/pkcs12.h new file mode 100644 index 0000000..32c9ec4 --- /dev/null +++ b/src/crypto/pkcs12.h @@ -0,0 +1,30 @@ +/* + * pkcs12.h + * + * Copyright (C) AB Strakt 2001, All rights reserved + * + * Export PKCS12 functions and data structure. + * + * @(#) $$ + */ +#ifndef PyOpenSSL_crypto_PKCS12_H_ +#define PyOpenSSL_crypto_PKCS12_H_ + +#include <Python.h> +#include <openssl/pkcs12.h> +#include <openssl/asn1.h> + +extern int init_crypto_pkcs12 (PyObject *); + +extern PyTypeObject crypto_PKCS12_Type; + +#define crypto_PKCS12_Check(v) ((v)->ob_type == &crypto_PKCS12_Type) + +typedef struct { + PyObject_HEAD + PyObject *cert; + PyObject *key; + PyObject *cacerts; +} crypto_PKCS12Obj; + +#endif |