As Roland pointed out, in older wolfSSL releases X509_V_OK
is an enum so the previous commit
838bc3c0e did not work
as expected there.
{
long verify_result = wolfSSL_get_error(ssl, connect_ret);
{
long verify_result = wolfSSL_get_error(ssl, connect_ret);
-#ifdef X509_V_OK
- if (verify_result == X509_V_OK)
-#else
+#if LIBWOLFSSL_VERSION_HEX > 0x05005004
if (verify_result == WOLFSSL_X509_V_OK)
if (verify_result == WOLFSSL_X509_V_OK)
+#else
+ if (verify_result == X509_V_OK)