blob: f20e562041abfdbfe746414e2f2a272d33c174cc [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001/*
2 * x509ext.h
3 *
4 * Copyright (C) Awanim 2002, All rights reserved
5 *
6 * Export X.509 extension functions and data structures.
7 * See the file RATIONALE for a short explanation of why this module was written.
8 *
9 * @(#) $Id: x509ext.h,v 1.2 2002/09/04 22:24:59 iko Exp $
10 */
11#ifndef PyOpenSSL_crypto_X509EXTENSION_H_
12#define PyOpenSSL_crypto_X509EXTENSION_H_
13
14#include <Python.h>
15#include <openssl/ssl.h>
16#include <openssl/x509v3.h>
17
18extern int init_crypto_x509extension (PyObject *);
19
20extern PyTypeObject crypto_X509Extension_Type;
21
22#define crypto_X509Extension_Check(v) ((v)->ob_type == \
23 &crypto_X509Extension_Type)
24
25typedef struct {
26 PyObject_HEAD
27 X509_EXTENSION *x509_extension;
28 int dealloc;
29} crypto_X509ExtensionObj;
30
31#endif
32