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