Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 1 | /* |
| 2 | * x509ext.h |
| 3 | * |
Jean-Paul Calderone | 8671c85 | 2011-03-02 19:26:20 -0500 | [diff] [blame] | 4 | * Copyright (C) Awanim |
| 5 | * See LICENSE for details. |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 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 | * |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 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 | |
Jean-Paul Calderone | ae479ad | 2010-08-10 20:04:28 -0400 | [diff] [blame] | 22 | #define crypto_X509Extension_Check(v) ( \ |
| 23 | PyObject_TypeCheck((v), \ |
| 24 | &crypto_X509Extension_Type)) |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 25 | |
| 26 | typedef struct { |
| 27 | PyObject_HEAD |
| 28 | X509_EXTENSION *x509_extension; |
| 29 | int dealloc; |
| 30 | } crypto_X509ExtensionObj; |
| 31 | |
| 32 | #endif |
| 33 | |