diff options
author | Rob Austein <sra@hactrn.net> | 2013-08-27 16:29:17 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-08-27 16:29:17 +0000 |
commit | bb20c63c2187840928ecd608de1a52c555e6efbf (patch) | |
tree | 6ea218cd2ad567a502ea250f0359802dfa5d611a /rpkid/ext/POW.c | |
parent | c1ba691ba4787516b8c0f02028c5d799ba93424f (diff) |
X509StoreCTX.store property.
svn path=/trunk/; revision=5469
Diffstat (limited to 'rpkid/ext/POW.c')
-rw-r--r-- | rpkid/ext/POW.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/rpkid/ext/POW.c b/rpkid/ext/POW.c index ebe2fa52..fc0b7f0c 100644 --- a/rpkid/ext/POW.c +++ b/rpkid/ext/POW.c @@ -3781,6 +3781,12 @@ x509_store_ctx_object_dealloc(x509_store_ctx_object *self) self->ob_type->tp_free((PyObject*) self); } +static PyObject * +x509_store_ctx_object_get_store (x509_store_ctx_object *self, GCC_UNUSED void *closure) +{ + return Py_BuildValue("O", self->store == NULL ? Py_None : (PyObject *) self->store); +} + static char x509_store_ctx_object_verify__doc__[] = "Verify an X509 certificate object using this certificate store context.\n" "\n" @@ -3920,6 +3926,11 @@ static struct PyMethodDef x509_store_ctx_object_methods[] = { {NULL} }; +static PyGetSetDef x509_store_ctx_object_getsetters[] = { + {"store", (getter) x509_store_ctx_object_get_store}, + {NULL} +}; + static char POW_X509StoreCTX_Type__doc__[] = "This class holds the OpenSSL certificate store context objects used\n" "in certificate verification.\n" @@ -3958,7 +3969,7 @@ static PyTypeObject POW_X509StoreCTX_Type = { 0, /* tp_iternext */ x509_store_ctx_object_methods, /* tp_methods */ 0, /* tp_members */ - 0, /* tp_getset */ + x509_store_ctx_object_getsetters, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ |