summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/apps_posix.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Factor out setup_up / destroy_ui functions.bcook2015-09-131-0/+20
| | | | | | | | | This pulls out and renames setup_ui/destroy_ui so we have something that can be replaced as-needed, moving the the console setup code for Windows to app_win.c in -portable, instead of needing a local patch to enable binary console mode ui_read/write are also simplified.
* Move Windows OS-specific functions to make porting easier.bcook2014-12-031-0/+144
Several functions that need to be redefined for a Windows port are right in the middle of other code that is relatively portable. This patch isolates the functions that need Windows-specific implementations so they can be built conditionally in the portable tree. Add calls to BIO_sock_init() as-needed to openssl(1) so that socket IO works on Windows. Sorry, these are no-op on other platforms. ok jsing@ deraadt@