fixup windows compile with ssl support.

git-svn-id: file:///svn/unbound/trunk@2540 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2011-11-08 14:27:16 +00:00
parent 8f5596f643
commit a08cf3c4e5
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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