Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 1 | /* |
| 2 | * x509.h |
| 3 | * |
Jean-Paul Calderone | 8671c85 | 2011-03-02 19:26:20 -0500 | [diff] [blame] | 4 | * Copyright (C) AB Strakt |
| 5 | * See LICENSE for details. |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 6 | * |
| 7 | * Export x509 functions and data structure. |
| 8 | * See the file RATIONALE for a short explanation of why this module was written. |
| 9 | * |
| 10 | * Reviewed 2001-07-23 |
| 11 | * |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 12 | */ |
| 13 | #ifndef PyOpenSSL_crypto_X509_H_ |
| 14 | #define PyOpenSSL_crypto_X509_H_ |
| 15 | |
| 16 | #include <Python.h> |
| 17 | #include <openssl/ssl.h> |
| 18 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 19 | extern PyTypeObject crypto_X509_Type; |
| 20 | |
| 21 | #define crypto_X509_Check(v) ((v)->ob_type == &crypto_X509_Type) |
| 22 | |
| 23 | typedef struct { |
| 24 | PyObject_HEAD |
| 25 | X509 *x509; |
| 26 | int dealloc; |
| 27 | } crypto_X509Obj; |
| 28 | |
Rick Dean | 536ba02 | 2009-07-24 23:57:27 -0500 | [diff] [blame] | 29 | PyObject* _set_asn1_time(char *format, ASN1_TIME* timestamp, PyObject *args); |
| 30 | PyObject* _get_asn1_time(char *format, ASN1_TIME* timestamp, PyObject *args); |
| 31 | extern int init_crypto_x509 (PyObject *); |
| 32 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 33 | |
| 34 | #endif |