Fix issue SERF-188: Do not use deprecated functions with OpenSSL 1.1.x.

* SConstruct: Check for several functions that are new in OpenSSL 1.1.

* buckets/ssl_buckets.c
  (X509_get0_notBefore, X509_get0_notAfter, X509_STORE_CTX_get0_chain):
   Add optional replacement macros for the new functions.
  (validate_server_certificate,
   init_ssl_libraries,
   serf_ssl_cert_certificate): Update implementations.

Patch by: Quentin Minster


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1830684 13f79535-47bb-0310-9956-ffa450edef68
2 files changed