summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/apps_posix.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* openssl app timers: TM_START -> TM_RESET, TM_STOP -> TM_GETcheloha2018-07-131-4/+4
| | | | | | | | Much more apt than the current operation names. Names suggested by jca@ ages ago. ok jca, jsing
* Seperate real and user timer interfacesjca2017-12-051-10/+4
| | | | | | | | | Use more descriptive names, and make it clearer that real and user timers work on different static storage. The end goal is to be able to reuse those timer functions, instead of inlining other timer implementations subject to clock jumps. Discussed with Scott Cheloha
* Use clock_gettime and getrusage to compute real and user time.jca2017-11-241-16/+33
| | | | Better handling of clock jumps, from Scott Cheloa.
* 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@