summaryrefslogtreecommitdiff
path: root/OpenSSL/crypto
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@divmod.com>2011-04-06 17:22:15 -0400
committerJean-Paul Calderone <exarkun@divmod.com>2011-04-06 17:22:15 -0400
commit48659610e7e3808e23e60c8cee44be434ffdf95c (patch)
tree53bbec7e06914c7e59d0c031f13679c33ab93059 /OpenSSL/crypto
parent9e6fcf8a1c4fc1d5b9f941505c27c4094ac54795 (diff)
downloadpyopenssl-48659610e7e3808e23e60c8cee44be434ffdf95c.tar.gz
There is no more PyInt_FromLong in 3.x; PyLong_FromLong works everywhere
Diffstat (limited to 'OpenSSL/crypto')
-rw-r--r--OpenSSL/crypto/x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/crypto/x509.c b/OpenSSL/crypto/x509.c
index 7026edb..5d03d2e 100644
--- a/OpenSSL/crypto/x509.c
+++ b/OpenSSL/crypto/x509.c
@@ -698,7 +698,7 @@ crypto_X509_get_extension_count(crypto_X509Obj *self, PyObject *args) {
return NULL;
}
- return PyInt_FromLong((long)X509_get_ext_count(self->x509));
+ return PyLong_FromLong((long)X509_get_ext_count(self->x509));
}
static char crypto_X509_get_extension_doc[] = "\n\