blob: d46e36058613ee323d7b089a7cee0640ad6dae9c [file] [log] [blame]
/*
* pkey.h
*
* Copyright (C) AB Strakt 2001, All rights reserved
*
* Export pkey functions and data structure.
* See the file RATIONALE for a short explanation of why this module was written.
*
* @(#) $Id: pkey.h,v 1.5 2002/09/04 22:24:59 iko Exp $
*/
#ifndef PyOpenSSL_crypto_PKEY_H_
#define PyOpenSSL_crypto_PKEY_H_
extern int init_crypto_pkey (PyObject *);
extern PyTypeObject crypto_PKey_Type;
#define crypto_PKey_Check(v) ((v)->ob_type == &crypto_PKey_Type)
typedef struct {
PyObject_HEAD
EVP_PKEY *pkey;
int dealloc;
} crypto_PKeyObj;
#define crypto_TYPE_RSA EVP_PKEY_RSA
#define crypto_TYPE_DSA EVP_PKEY_DSA
#endif