Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * pkcs12.h |
| 3 | * |
| 4 | * Copyright (C) AB Strakt 2001, All rights reserved |
| 5 | * |
| 6 | * Export PKCS12 functions and data structure. |
| 7 | * |
| 8 | * @(#) $$ |
| 9 | */ |
| 10 | #ifndef PyOpenSSL_crypto_PKCS12_H_ |
| 11 | #define PyOpenSSL_crypto_PKCS12_H_ |
| 12 | |
| 13 | #include <Python.h> |
| 14 | #include <openssl/pkcs12.h> |
| 15 | #include <openssl/asn1.h> |
| 16 | |
| 17 | extern int init_crypto_pkcs12 (PyObject *); |
| 18 | |
| 19 | extern PyTypeObject crypto_PKCS12_Type; |
| 20 | |
| 21 | #define crypto_PKCS12_Check(v) ((v)->ob_type == &crypto_PKCS12_Type) |
| 22 | |
| 23 | typedef struct { |
| 24 | PyObject_HEAD |
| 25 | PyObject *cert; |
| 26 | PyObject *key; |
| 27 | PyObject *cacerts; |
| 28 | } crypto_PKCS12Obj; |
| 29 | |
| 30 | #endif |