From a08cf3c4e5cdc9e11889c180c601b150b40b1b73 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 8 Nov 2011 14:27:16 +0000 Subject: [PATCH] fixup windows compile with ssl support. git-svn-id: file:///svn/unbound/trunk@2540 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + util/netevent.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 661648bdb..5e7930d63 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 8 November 2011: Wouter - can configure ssl service to one port number, and not on others. + - fixup windows compile with ssl support. 1 November 2011: Wouter - dns over ssl support as a client, ssl-upstream yes turns it on. diff --git a/util/netevent.c b/util/netevent.c index a6bdbcaff..066c4cc06 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -717,9 +717,9 @@ comm_point_tcp_win_bio_cb(struct comm_point* c, void* thessl) SSL* ssl = (SSL*)thessl; /* set them both just in case, but usually they are the same BIO */ BIO_set_callback(SSL_get_rbio(ssl), &win_bio_cb); - BIO_set_callback_arg(SSL_get_rbio(ssl), (char*)comm_point_internal(c)); + BIO_set_callback_arg(SSL_get_rbio(ssl), (char*)&c->ev->ev); BIO_set_callback(SSL_get_wbio(ssl), &win_bio_cb); - BIO_set_callback_arg(SSL_get_wbio(ssl), (char*)comm_point_internal(c)); + BIO_set_callback_arg(SSL_get_wbio(ssl), (char*)&c->ev->ev); } #endif -- 2.47.2