git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ec4b68e
)
Unbreak EXPERIMENTAL_OCSP after TLS cutthrough
author
Phil Pennock
<pdp@exim.org>
Thu, 7 Jun 2012 17:08:05 +0000
(13:08 -0400)
committer
Phil Pennock
<pdp@exim.org>
Thu, 7 Jun 2012 17:08:05 +0000
(13:08 -0400)
src/src/tls-openssl.c
patch
|
blob
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index 64aa689fb74ab727a0cee93b0c1538d720afb645..ae009c028457a8c3c870612710bff8890256e25b 100644
(file)
--- a/
src/src/tls-openssl.c
+++ b/
src/src/tls-openssl.c
@@
-52,7
+52,6
@@
static SSL *client_ssl = NULL;
static SSL *server_ssl = NULL;
#ifdef EXIM_HAVE_OPENSSL_TLSEXT
static SSL *server_ssl = NULL;
#ifdef EXIM_HAVE_OPENSSL_TLSEXT
-static SSL_CTX *client_sni = NULL;
static SSL_CTX *server_sni = NULL;
#endif
static SSL_CTX *server_sni = NULL;
#endif
@@
-671,7
+670,7
@@
if (cbinfo->server_cipher_list)
if (cbinfo->ocsp_file)
{
SSL_CTX_set_tlsext_status_cb(server_sni, tls_stapling_cb);
if (cbinfo->ocsp_file)
{
SSL_CTX_set_tlsext_status_cb(server_sni, tls_stapling_cb);
- SSL_CTX_set_tlsext_status_arg(ctx, cbinfo);
+ SSL_CTX_set_tlsext_status_arg(
server_
ctx, cbinfo);
}
#endif
}
#endif
@@
-726,7
+725,7
@@
response_der_len = i2d_OCSP_RESPONSE(cbinfo->ocsp_response, &response_der);
if (response_der_len <= 0)
return SSL_TLSEXT_ERR_NOACK;
if (response_der_len <= 0)
return SSL_TLSEXT_ERR_NOACK;
-SSL_set_tlsext_status_ocsp_resp(ssl, response_der, response_der_len);
+SSL_set_tlsext_status_ocsp_resp(s
erver_s
sl, response_der, response_der_len);
return SSL_TLSEXT_ERR_OK;
}
return SSL_TLSEXT_ERR_OK;
}
@@
-870,8
+869,8
@@
if (host == NULL)
callback is invoked. */
if (cbinfo->ocsp_file)
{
callback is invoked. */
if (cbinfo->ocsp_file)
{
- SSL_CTX_set_tlsext_status_cb(ctx, tls_stapling_cb);
- SSL_CTX_set_tlsext_status_arg(ctx, cbinfo);
+ SSL_CTX_set_tlsext_status_cb(
server_
ctx, tls_stapling_cb);
+ SSL_CTX_set_tlsext_status_arg(
server_
ctx, cbinfo);
}
#endif
/* We always do this, so that $tls_sni is available even if not used in
}
#endif
/* We always do this, so that $tls_sni is available even if not used in