* doesn't matter because we only use it with
* the certificate_mutex locked.
*/
-static RNG wolfssl_rng;
+static WC_RNG wolfssl_rng;
#ifndef WOLFSSL_ALT_CERT_CHAINS
/*
*********************************************************************/
static int host_to_hash(struct client_state *csp)
{
- Md5 md5;
+ wc_Md5 md5;
int ret;
size_t i;
{
long verify_result = wolfSSL_get_error(ssl, connect_ret);
+#ifdef X509_V_OK
+ if (verify_result == X509_V_OK)
+#else
if (verify_result == WOLFSSL_X509_V_OK)
+#endif
{
ret = 0;
csp->server_cert_verification_result = SSL_CERT_VALID;