Plug SSL object leaks in doConnection().
authorcheloha <cheloha@openbsd.org>
Sat, 18 Aug 2018 16:51:33 +0000 (16:51 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 18 Aug 2018 16:51:33 +0000 (16:51 +0000)
commit5e66bdb3914043305a4757af7317c6454bbe0e9f
tree748ec232253c31435b6a0a59b62498dac9b500cb
parent778826e3ef14c3ba5c2e97fc7c48507d110784f0
Plug SSL object leaks in doConnection().

Move SSL_new/SSL_free up into benchmark() to restrict the responsibility
for the SSL object to a single scope.  Make doConnection() return an int,
openssl-style.  Some miscellaneous cleanup, too.

Discussed with tb, jsing, and jca.  Basic idea from jsing, lots of patch
input from tb.

ok deraadt on an earlier version

ok tb jsing
usr.bin/openssl/s_time.c