summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-12-09 19:23:06 -0500
committerPhil Pennock <pdp@exim.org>2012-12-09 19:30:02 -0500
commit14c7b357062edf88e350fb95c06847b2c2a2b934 (patch)
tree454ffb7a06d52b9687db95b81b7a0e66d028910c /src
parent9d6bb16d6af8c4d2c5e2f58d2a6983c03600c35a (diff)
OCSP/SNI: set correct callback.
Caught by Jeremy; was wrong in (my) original commit, the dual-TLS work had just renamed the variables and theoretically made it more visible. I still missed it. The server_sni context initialisation was setting the OCSP status callback context parameter back on the original server_ctx instead of the new server_sni context. I guess OCSP and SNI aren't being used together in Exim much yet.
Diffstat (limited to 'src')
-rw-r--r--src/src/tls-openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c
index 08b92bae5..440993585 100644
--- a/src/src/tls-openssl.c
+++ b/src/src/tls-openssl.c
@@ -689,7 +689,7 @@ if (cbinfo->server_cipher_list)
if (cbinfo->ocsp_file)
{
SSL_CTX_set_tlsext_status_cb(server_sni, tls_stapling_cb);
- SSL_CTX_set_tlsext_status_arg(server_ctx, cbinfo);
+ SSL_CTX_set_tlsext_status_arg(server_sni, cbinfo);
}
#endif