Refactor to support OpenSSL 1.1

OpenSSL 1.1 has made significant non-backwards compatible changes to its
API as outlined in:
https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes

BUG=chromium:736583
TEST=w/ openssl-1.0.2r: emerge-soraka tlsdate
TEST=w/ openssl-1.1.0j: emerge-soraka tlsdate

Change-Id: Ifb6885bb39de0058b3859de7b5263b848280182e
Reviewed-on: https://chromium-review.googlesource.com/549533
Tested-by: Nick Crews <ncrews@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Nick Crews <ncrews@chromium.org>
4 files changed