blob: 6ce7f68ef956a1766bb3454120115423926282f5 [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
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