--- third_party/serf/serf.diff.orig 2017-06-08 22:22:39 UTC +++ third_party/serf/serf.diff @@ -324,7 +324,7 @@ apr_status_t serf_ssl_load_cert_file( serf_ssl_certificate_t **cert, const char *file_path, -@@ -1652,6 +1688,21 @@ +@@ -1652,6 +1688,25 @@ return cert->depth; } @@ -337,11 +337,15 @@ +int serf_ssl_check_host(const serf_ssl_certificate_t *cert, + const char* hostname) +{ ++#if TSI_OPENSSL_ALPN_SUPPORT == 0 ++ return (-1); ++#else + return X509_check_host(cert->ssl_cert, + hostname, + strlen(hostname), + 0 /* we don't need to set any flags */, + NULL /* we don't need the SAN or CN extracted*/); ++#endif +} apr_hash_t *serf_ssl_cert_issuer(