File: pkcs12.h

package info (click to toggle)
pyopenssl 0.13-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,752 kB
  • sloc: ansic: 7,372; python: 6,688; perl: 3,089; xml: 693; makefile: 191; sh: 54; lisp: 13; sed: 2
file content (39 lines) | stat: -rw-r--r-- 901 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * pkcs12.h
 *
 * Copyright (C) AB Strakt
 * See LICENSE for details.
 *
 * 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
    /*
     * These either refer to a PyObject* of the appropriate type, or Py_None if
     * they don't have a value.  They aren't set to NULL except during
     * finalization.
     */
    PyObject            *cert;
    PyObject            *key;
    PyObject            *cacerts;
    PyObject            *friendlyname;
} crypto_PKCS12Obj;

crypto_PKCS12Obj *
crypto_PKCS12_New(PKCS12 *p12, char *passphrase);

#endif