stream-ssl: Add support for Windows platform.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 6 Feb 2014 15:57:12 +0000 (07:57 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 11 Feb 2014 17:55:48 +0000 (09:55 -0800)
commit5ea1366bc95d68712121c45ef1695d4edf616665
tree220eeac7a2449e69fcee45b55d4c2777eaa29ca1
parentb26f46a40171859b21a00563d15d9c5a81eefb84
stream-ssl: Add support for Windows platform.

This commit creates events and through poll_fd_wait_event()
associates them with socket file descriptors to get woken up
from poll_block().

Some other changes:

* Windows does not have sys/fcntl.h but has a fcntl.h
On Linux, there is fctnl.h too.

* include <openssl/applink.c> to handle different C-Runtime linking
of OVS and openssl libraries as suggested at
https://www.openssl.org/support/faq.html#PROG2

The above include will not be needed if we compile Open vSwitch with
/MD compiler option.

* SHUT_RDWR is equivalent to SD_BOTH on Windows.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/socket-util.h
lib/stream-ssl.c