]> granicus.if.org Git - python/commitdiff
constify to appease compiler warnings
authorBenjamin Peterson <benjamin@python.org>
Wed, 13 Oct 2010 22:06:39 +0000 (22:06 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 13 Oct 2010 22:06:39 +0000 (22:06 +0000)
Modules/_ssl.c

index 499ecba56d2d3b9c4d87403c9814201f4a220e5f..e1cd3dcacce030bf3a16a63575e8071f7f2aad86 100644 (file)
@@ -552,7 +552,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;
@@ -923,7 +923,7 @@ return the certificate even if it wasn't validated.");
 static PyObject *PySSL_cipher (PySSLSocket *self) {
 
     PyObject *retval, *v;
-    SSL_CIPHER *current;
+    const SSL_CIPHER *current;
     char *cipher_name;
     char *cipher_protocol;