diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 16:58:09 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 16:58:09 +0000 |
commit | dc988119b5d5fae461ab333ac35a023aa0d382d7 (patch) | |
tree | cc5a65f31fa4c8bc6a6a137f891d84f53101c545 /Modules/_ssl.c | |
parent | ce7fa56aac602a3e379e9f8f49292aa2ba9cb717 (diff) | |
download | cpython-git-dc988119b5d5fae461ab333ac35a023aa0d382d7.tar.gz |
Fix a few more variables to try to get this to compile with Visual Studio.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index d6f8038df3..4d6c38cc3b 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -440,6 +440,7 @@ _create_dict_for_X509_NAME (X509_NAME *xname) PyObject *name_obj; ASN1_STRING *value; PyObject *value_obj; + unsigned char *valuebuf = NULL; X509_NAME_ENTRY *entry = X509_NAME_get_entry(xname, index_counter); @@ -453,7 +454,6 @@ _create_dict_for_X509_NAME (X509_NAME *xname) goto fail0; value = X509_NAME_ENTRY_get_data(entry); - unsigned char *valuebuf = NULL; buflen = ASN1_STRING_to_UTF8(&valuebuf, value); if (buflen < 0) { Py_DECREF(name_obj); @@ -493,6 +493,7 @@ PySSL_peercert(PySSLObject *self) int len; ASN1_TIME *notBefore, *notAfter; PyObject *pnotBefore, *pnotAfter; + int verification; if (!self->peer_cert) Py_RETURN_NONE; @@ -501,7 +502,7 @@ PySSL_peercert(PySSLObject *self) if (retval == NULL) return NULL; - int verification = SSL_CTX_get_verify_mode(self->ctx); + verification = SSL_CTX_get_verify_mode(self->ctx); if ((verification & SSL_VERIFY_PEER) == 0) return retval; |