未验证 提交 28e4531a 编写于 作者: M Marek Safar 提交者: GitHub

Compile native AppleCryptoNative_SecCopyErrorMessageString for ios/tvos

It's referenced from a lot of managed placed
上级 0838c442
......@@ -3,9 +3,11 @@
#include "pal_sec.h"
#if !defined(TARGET_MACCATALYST) && !defined(TARGET_IOS) && !defined(TARGET_TVOS)
CFStringRef AppleCryptoNative_SecCopyErrorMessageString(int32_t osStatus)
{
#if (defined(TARGET_IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_11_3) || (defined(TARGET_TVOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < __TVOS_11_3)
return CFStringCreateWithCString(NULL, "", kCFStringEncodingUTF8);
#else
return SecCopyErrorMessageString(osStatus, NULL);
}
#endif
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册