File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11839,15 +11839,15 @@ int wolfSSL_ERR_GET_REASON(unsigned long err)
1183911839#if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
1184011840 /* Nginx looks for this error to know to stop parsing certificates.
1184111841 * Same for HAProxy. */
11842- if (err == (( ERR_LIB_PEM << 24) | PEM_R_NO_START_LINE) ||
11843- ((err & 0xFFFFFFL) == -WC_NO_ERR_TRACE(ASN_NO_PEM_HEADER)) ||
11844- ((err & 0xFFFL) == PEM_R_NO_START_LINE ))
11842+ if (( err == (unsigned long)(( ERR_LIB_PEM << 24) | PEM_R_NO_START_LINE) ) ||
11843+ ((err & 0xFFFFFFL) == (unsigned long)( -WC_NO_ERR_TRACE(ASN_NO_PEM_HEADER) )) ||
11844+ ((err & 0xFFFL) == (unsigned long)PEM_R_NO_START_LINE ))
1184511845 return PEM_R_NO_START_LINE;
11846- if (err == ((ERR_LIB_SSL << 24) | -SSL_R_HTTP_REQUEST))
11846+ if (err == (unsigned long)( (ERR_LIB_SSL << 24) | -SSL_R_HTTP_REQUEST))
1184711847 return SSL_R_HTTP_REQUEST;
1184811848#endif
1184911849#if defined(OPENSSL_ALL) && defined(WOLFSSL_PYTHON)
11850- if (err == ((ERR_LIB_ASN1 << 24) | ASN1_R_HEADER_TOO_LONG))
11850+ if (err == (unsigned long)( (ERR_LIB_ASN1 << 24) | ASN1_R_HEADER_TOO_LONG))
1185111851 return ASN1_R_HEADER_TOO_LONG;
1185211852#endif
1185311853
You can’t perform that action at this time.
0 commit comments