From ce5c3843fc412add906d853ec31cc5d489631cef Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Mon, 21 May 2018 21:14:46 -0400 Subject: 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. --- src/OpenSSL/SSL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1