summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@davidben.net>2018-05-21 21:14:46 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-05-22 09:14:46 +0800
commitce5c3843fc412add906d853ec31cc5d489631cef (patch)
treec933c8031c1c931245df55a16c24ea140b5aae2b
parenta40e8612b75fe2d82058d33e2d4aaa5e782c2344 (diff)
downloadpyopenssl-git-ce5c3843fc412add906d853ec31cc5d489631cef.tar.gz
Fix SSL_CTX_set_tlsext_servername_callback type signature. (#763)
See also https://github.com/pyca/cryptography/pull/4227. I suspect this is a no-op since cffi is probably just generating its own function stubs and every ABI makes const and non-const pointers the same. Still, better to match things.
-rw-r--r--src/OpenSSL/SSL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index e3eddae..0a2fe48 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -1367,7 +1367,7 @@ class Context(object):
return 0
self._tlsext_servername_callback = _ffi.callback(
- "int (*)(const SSL *, int *, void *)", wrapper)
+ "int (*)(SSL *, int *, void *)", wrapper)
_lib.SSL_CTX_set_tlsext_servername_callback(
self._context, self._tlsext_servername_callback)