Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uloop_timeout_set(&us->error_timer, 0);
}
+#ifndef CYASSL_OPENSSL_H_
+
static bool host_pattern_match(const unsigned char *pattern, const char *cn)
{
char c;
us->valid_cn = ustream_ssl_verify_cn(us, cert);
}
+#endif
+
__hidden enum ssl_conn_status __ustream_ssl_connect(struct ustream_ssl *us)
{
void *ssl = us->ssl;
r = SSL_connect(ssl);
if (r == 1) {
+#ifndef CYASSL_OPENSSL_H_
ustream_ssl_verify_cert(us);
+#endif
return U_SSL_OK;
}