Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 1 | /* |
| 2 | * x509name.h |
| 3 | * |
| 4 | * Copyright (C) AB Strakt 2001, All rights reserved |
| 5 | * |
| 6 | * Export X.509 name functions and data structures. |
| 7 | * See the file RATIONALE for a short explanation of why this module was written. |
| 8 | * |
| 9 | * Reviewed 2001-07-23 |
| 10 | * |
| 11 | * @(#) $Id: x509name.h,v 1.8 2002/09/04 22:24:59 iko Exp $ |
| 12 | */ |
| 13 | #ifndef PyOpenSSL_crypto_X509NAME_H_ |
| 14 | #define PyOpenSSL_crypto_X509NAME_H_ |
| 15 | |
| 16 | #include <Python.h> |
| 17 | #include <openssl/ssl.h> |
| 18 | |
| 19 | extern int init_crypto_x509name (PyObject *); |
| 20 | |
| 21 | extern PyTypeObject crypto_X509Name_Type; |
| 22 | |
| 23 | #define crypto_X509Name_Check(v) ((v)->ob_type == &crypto_X509Name_Type) |
| 24 | |
| 25 | typedef struct { |
| 26 | PyObject_HEAD |
| 27 | X509_NAME *x509_name; |
| 28 | int dealloc; |
| 29 | PyObject *parent_cert; |
| 30 | } crypto_X509NameObj; |
| 31 | |
| 32 | |
| 33 | #endif |