summaryrefslogtreecommitdiff
path: root/src/crypto/x509ext.h
blob: f20e562041abfdbfe746414e2f2a272d33c174cc (plain)
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
/*
 * x509ext.h
 *
 * Copyright (C) Awanim 2002, All rights reserved
 *
 * Export X.509 extension functions and data structures.
 * See the file RATIONALE for a short explanation of why this module was written.
 *
 * @(#) $Id: x509ext.h,v 1.2 2002/09/04 22:24:59 iko Exp $
 */
#ifndef PyOpenSSL_crypto_X509EXTENSION_H_
#define PyOpenSSL_crypto_X509EXTENSION_H_

#include <Python.h>
#include <openssl/ssl.h>
#include <openssl/x509v3.h>

extern  int     init_crypto_x509extension       (PyObject *);

extern  PyTypeObject      crypto_X509Extension_Type;

#define crypto_X509Extension_Check(v) ((v)->ob_type == \
				       &crypto_X509Extension_Type)

typedef struct {
    PyObject_HEAD
    X509_EXTENSION       *x509_extension;
    int                  dealloc;
} crypto_X509ExtensionObj;

#endif