aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@davidben.net>2018-05-12 07:41:37 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-05-12 07:41:37 -0400
commit33ae3cea990b307eafaa5f52232eba8315fd05fe (patch)
treef8e116c02671cc43c2f1db3893e10dad72c39080 /src/_cffi_src
parent6c9a13f438c3d01c905cbbae269efce0748ac692 (diff)
downloadcryptography-33ae3cea990b307eafaa5f52232eba8315fd05fe.tar.gz
cryptography-33ae3cea990b307eafaa5f52232eba8315fd05fe.tar.bz2
cryptography-33ae3cea990b307eafaa5f52232eba8315fd05fe.zip
Fix some callback type signatures. (#4227)
* Fix some callback type signatures. SSL_CTX_set_psk_server_callback: https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_psk_server_callback.html https://github.com/openssl/openssl/blob/OpenSSL_1_0_2/ssl/ssl.h#L1355 https://github.com/openssl/openssl/blob/OpenSSL_1_1_0/include/openssl/ssl.h#L734 SSL_CTX_set_tlsext_servername_callback: https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_tlsext_servername_callback.html https://github.com/openssl/openssl/blob/OpenSSL_1_0_2/ssl/s3_lib.c#L3964 https://github.com/openssl/openssl/blob/OpenSSL_1_1_0/ssl/s3_lib.c#L3499 * Missed a spot
Diffstat (limited to 'src/_cffi_src')
-rw-r--r--src/_cffi_src/openssl/ssl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py
index d9b11259..91cedac0 100644
--- a/src/_cffi_src/openssl/ssl.py
+++ b/src/_cffi_src/openssl/ssl.py
@@ -252,7 +252,7 @@ void SSL_CTX_set_psk_server_callback(SSL_CTX *,
SSL *,
const char *,
unsigned char *,
- int
+ unsigned int
));
void SSL_CTX_set_psk_client_callback(SSL_CTX *,
unsigned int (*)(
@@ -401,7 +401,7 @@ void *SSL_get_ex_data(const SSL *, int);
void SSL_set_tlsext_host_name(SSL *, char *);
void SSL_CTX_set_tlsext_servername_callback(
SSL_CTX *,
- int (*)(const SSL *, int *, void *));
+ int (*)(SSL *, int *, void *));
void SSL_CTX_set_tlsext_servername_arg(
SSL_CTX *, void *);
@@ -738,7 +738,7 @@ void (*SSL_CTX_set_psk_server_callback)(SSL_CTX *,
SSL *,
const char *,
unsigned char *,
- int
+ unsigned int
)) = NULL;
void (*SSL_CTX_set_psk_client_callback)(SSL_CTX *,
unsigned int (*)(