summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-03 11:13:12 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-03 11:13:12 -0500
commit27582325dc691f02c41612a258483a73f2e0e000 (patch)
tree61314753c73f7ee49a2f94cff54a86f2ad6d7733 /src/common/tortls.h
parent957cdb54699937818b539c75e413e88760ee34cd (diff)
downloadtor-27582325dc691f02c41612a258483a73f2e0e000.tar.gz
tor-27582325dc691f02c41612a258483a73f2e0e000.zip
Make Tor build happily with OpenSSL master and libressl.
Also tested with 1.0.0t and 1.0.2f. Closes ticket 19784. Closes most of 17921. (Still need to make some tests pass.)
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 6a4ef9aebe..7239eb9fd7 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -143,9 +143,10 @@ STATIC size_t SSL_SESSION_get_master_key(SSL_SESSION *s, uint8_t *out,
STATIC void tor_tls_debug_state_callback(const SSL *ssl, int type, int val);
STATIC void tor_tls_server_info_callback(const SSL *ssl, int type, int val);
STATIC int tor_tls_session_secret_cb(SSL *ssl, void *secret,
- int *secret_len,
- STACK_OF(SSL_CIPHER) *peer_ciphers,
- SSL_CIPHER **cipher, void *arg);
+ int *secret_len,
+ STACK_OF(SSL_CIPHER) *peer_ciphers,
+ CONST_IF_OPENSSL_1_1_API SSL_CIPHER **cipher,
+ void *arg);
STATIC int find_cipher_by_id(const SSL *ssl, const SSL_METHOD *m,
uint16_t cipher);
MOCK_DECL(STATIC X509*, tor_tls_create_certificate,(crypto_pk_t *rsa,