diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-08-19 13:40:35 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-08-19 13:40:35 -0500 |
commit | 24be78a8d5e64f4ee94b28d742b53022b3d41186 (patch) | |
tree | 1ecb0c8a633c29f87642dbc9605994a04f9f1827 | |
parent | 8a14d9bb9009c9b662fa185f3d24cfc9dff376d3 (diff) | |
download | cryptography-24be78a8d5e64f4ee94b28d742b53022b3d41186.tar.gz cryptography-24be78a8d5e64f4ee94b28d742b53022b3d41186.tar.bz2 cryptography-24be78a8d5e64f4ee94b28d742b53022b3d41186.zip |
compilation fix
-rw-r--r-- | src/_cffi_src/openssl/ssl.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py index 60b1a920..77885030 100644 --- a/src/_cffi_src/openssl/ssl.py +++ b/src/_cffi_src/openssl/ssl.py @@ -242,19 +242,21 @@ void SSL_CTX_set_client_CA_list(SSL_CTX *, Cryptography_STACK_OF_X509_NAME *); /* SSL_SESSION */ void SSL_SESSION_free(SSL_SESSION *); -int SSL_SESSION_print(BIO *, const SSL_SESSION *); /* Information about actually used cipher */ const char *SSL_CIPHER_get_name(const SSL_CIPHER *); int SSL_CIPHER_get_bits(const SSL_CIPHER *, int *); char *SSL_CIPHER_get_version(const SSL_CIPHER *); -char *SSL_CIPHER_description(const SSL_CIPHER *, char *, int); size_t SSL_get_finished(const SSL *, void *, size_t); size_t SSL_get_peer_finished(const SSL *, void *, size_t); """ MACROS = """ +/* not a macro, but older OpenSSLs don't pass the args as const */ +char *SSL_CIPHER_description(const SSL_CIPHER *, char *, int); +int SSL_SESSION_print(BIO *, const SSL_SESSION *); + /* not macros, but will be conditionally bound so can't live in functions */ const COMP_METHOD *SSL_get_current_compression(SSL *); const COMP_METHOD *SSL_get_current_expansion(SSL *); |