blob: 0e724a9ff4f106c2936bc268d03bb2ad2f3640f0 [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001/*
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
17extern int init_crypto_pkcs12 (PyObject *);
18
19extern PyTypeObject crypto_PKCS12_Type;
20
21#define crypto_PKCS12_Check(v) ((v)->ob_type == &crypto_PKCS12_Type)
22
23typedef struct {
24 PyObject_HEAD
25 PyObject *cert;
26 PyObject *key;
27 PyObject *cacerts;
28} crypto_PKCS12Obj;
29
Rick Dean623ee362009-07-17 12:22:16 -050030crypto_PKCS12Obj *
31crypto_PKCS12_New(PKCS12 *p12, char *passphrase);
32
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050033#endif