mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
cd6c2a8b81
Supported new OS: Ubuntu* 23.10 64-bit Server version. Upgraded to OpenSSL 3.0.12. Upgraded MbedTLS to 3.5.0. Added SM2 encrypt/decrypt algorithm to the GM/SM (PRC National Commercial Cryptographic Algorithms) sample code. Introduced the Intel® DCAP Appraisal Engine within quote verification library, empowering users to evaluate verification results against diverse policies. Upgraded Intel SGX Quote Verification Enclave to integrate OpenSSL/SgxSSL 3.0.12. Added Rust wrapper for quote provider library APIs. Fixed bugs. Signed-off-by: Li, Xun <xun.li@intel.com>
10 lines
258 B
C
10 lines
258 B
C
#include <wchar.h>
|
|
#include <wctype.h>
|
|
|
|
int wcsncasecmp(const wchar_t *l, const wchar_t *r, size_t n)
|
|
{
|
|
if (!n--) return 0;
|
|
for (; *l && *r && n && (*l == *r || towlower(*l) == towlower(*r)); l++, r++, n--);
|
|
return towlower(*l) - towlower(*r);
|
|
}
|