Initial import to Tizen
[profile/ivi/python-pyOpenSSL.git] / OpenSSL / crypto / x509ext.h
1 /*
2  * x509ext.h
3  *
4  * Copyright (C) Awanim
5  * See LICENSE for details.
6  *
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  *
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
18 extern  int     init_crypto_x509extension       (PyObject *);
19
20 extern  PyTypeObject      crypto_X509Extension_Type;
21
22 #define crypto_X509Extension_Check(v) ( \
23         PyObject_TypeCheck((v),         \
24                            &crypto_X509Extension_Type))
25
26 typedef struct {
27     PyObject_HEAD
28     X509_EXTENSION       *x509_extension;
29     int                  dealloc;
30 } crypto_X509ExtensionObj;
31
32 #endif
33