blob: 3ddc7160690fe705540a10710d6d704a8b687669 [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001/*
2 * x509ext.h
3 *
Jean-Paul Calderone8671c852011-03-02 19:26:20 -05004 * Copyright (C) Awanim
5 * See LICENSE for details.
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05006 *
7 * Export X.509 extension functions and data structures.
8 * See the file RATIONALE for a short explanation of why this module was written.
9 *
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050010 */
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
Jean-Paul Calderoneae479ad2010-08-10 20:04:28 -040022#define crypto_X509Extension_Check(v) ( \
23 PyObject_TypeCheck((v), \
24 &crypto_X509Extension_Type))
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050025
26typedef struct {
27 PyObject_HEAD
28 X509_EXTENSION *x509_extension;
29 int dealloc;
30} crypto_X509ExtensionObj;
31
32#endif
33