mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-10-24 04:09:07 +03:00
Merge pull request #11862 from dgarske/uboot_build
Fix two U-Boot build errors in asn.c and types.h
This commit is contained in:
@@ -1455,6 +1455,7 @@ __TMS320C54X__
|
||||
__TMS320C5500__
|
||||
__TMS320C55X__
|
||||
__TURBOC__
|
||||
__UBOOT__
|
||||
__UCLIBC_LINUX_SPECIFIC__
|
||||
__UCLIBC_MAJOR__
|
||||
__UNIX__
|
||||
|
||||
@@ -26089,8 +26089,8 @@ int ParseCertRelative(DecodedCert* cert, int type, int verify,
|
||||
}
|
||||
}
|
||||
else {
|
||||
cert->maxPathLen = (word16)min(cert->ca->maxPathLen - 1U,
|
||||
cert->maxPathLen);
|
||||
cert->maxPathLen = (word16)min(
|
||||
(word16)(cert->ca->maxPathLen - 1U), cert->maxPathLen);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1151,7 +1151,7 @@ enum {
|
||||
#define XSTRCASECMP(s1,s2) _stricmp((s1),(s2))
|
||||
#else
|
||||
#if defined(HAVE_STRINGS_H) && defined(WOLF_C99) && \
|
||||
!defined(WOLFSSL_SGX)
|
||||
!defined(WOLFSSL_SGX) && !defined(__UBOOT__)
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#if defined(WOLFSSL_DEOS)
|
||||
@@ -1185,7 +1185,7 @@ enum {
|
||||
#define XSTRNCASECMP(s1,s2,n) _strnicmp((s1),(s2),(n))
|
||||
#else
|
||||
#if defined(HAVE_STRINGS_H) && defined(WOLF_C99) && \
|
||||
!defined(WOLFSSL_SGX)
|
||||
!defined(WOLFSSL_SGX) && !defined(__UBOOT__)
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#if defined(WOLFSSL_DEOS)
|
||||
|
||||
Reference in New Issue
Block a user