blob: f6cd190d81c6abdaf6355a2e7099be7fcb355fff [file] [log] [blame]
/*
* x509.h
*
* Copyright (C) AB Strakt
* See LICENSE for details.
*
* Export x509 functions and data structure.
* See the file RATIONALE for a short explanation of why this module was written.
*
* Reviewed 2001-07-23
*
*/
#ifndef PyOpenSSL_crypto_X509_H_
#define PyOpenSSL_crypto_X509_H_
#include <Python.h>
#include <openssl/ssl.h>
extern PyTypeObject crypto_X509_Type;
#define crypto_X509_Check(v) ((v)->ob_type == &crypto_X509_Type)
typedef struct {
PyObject_HEAD
X509 *x509;
int dealloc;
} crypto_X509Obj;
PyObject* _set_asn1_time(char *format, ASN1_TIME* timestamp, PyObject *args);
PyObject* _get_asn1_time(char *format, ASN1_TIME* timestamp, PyObject *args);
extern int init_crypto_x509 (PyObject *);
#endif