Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 1 | /* |
| 2 | * x509req.h |
| 3 | * |
Jean-Paul Calderone | 8671c85 | 2011-03-02 19:26:20 -0500 | [diff] [blame^] | 4 | * Copyright (C) AB Strakt 2001 |
| 5 | * See LICENSE for details. |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 6 | * |
| 7 | * Export X509 request 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_SSL_X509REQ_H_ |
| 12 | #define PyOpenSSL_SSL_X509REQ_H_ |
| 13 | |
| 14 | #include <Python.h> |
| 15 | #include <openssl/ssl.h> |
| 16 | |
| 17 | extern int init_crypto_x509req (PyObject *); |
| 18 | |
| 19 | extern PyTypeObject crypto_X509Req_Type; |
| 20 | |
| 21 | #define crypto_X509Req_Check(v) ((v)->ob_type == &crypto_X509Req_Type) |
| 22 | |
| 23 | typedef struct { |
| 24 | PyObject_HEAD |
| 25 | X509_REQ *x509_req; |
| 26 | int dealloc; |
| 27 | } crypto_X509ReqObj; |
| 28 | |
| 29 | |
| 30 | #endif |