]> granicus.if.org Git - python/commitdiff
Merged revisions 85432 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Wed, 13 Oct 2010 22:20:48 +0000 (22:20 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 13 Oct 2010 22:20:48 +0000 (22:20 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85432 | benjamin.peterson | 2010-10-13 17:06:39 -0500 (Wed, 13 Oct 2010) | 1 line

  constify to appease compiler warnings
........

Modules/_ssl.c

index b98b03b7c9fcd36e7aca8202b97dc38a51d8e704..d4e550ecf473c3e7f33328dbc245ce2e15cc19f8 100644 (file)
@@ -670,7 +670,7 @@ _get_peer_alt_names (X509 *certificate) {
     X509_EXTENSION *ext = NULL;
     GENERAL_NAMES *names = NULL;
     GENERAL_NAME *name;
-    X509V3_EXT_METHOD *method;
+    const X509V3_EXT_METHOD *method;
     BIO *biobuf = NULL;
     char buf[2048];
     char *vptr;
@@ -1042,7 +1042,7 @@ return the certificate even if it wasn't validated.");
 static PyObject *PySSL_cipher (PySSLObject *self) {
 
     PyObject *retval, *v;
-    SSL_CIPHER *current;
+    const SSL_CIPHER *current;
     char *cipher_name;
     char *cipher_protocol;