Skip to content

Commit 25346a4

Browse files
ios,deps: remove private API symbols from openssl
Removes references for private APIs from openssl. The symbols getcontext, setcontext, makecontext are not allowed in the iOS App Store.
1 parent 5513cc8 commit 25346a4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deps/openssl/config/opensslconf.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
#ifndef OPENSSL_NO_HW_PADLOCK
1818
# define OPENSSL_NO_HW_PADLOCK
1919
#endif
20+
21+
/* iOS app store won't allow getcontext, setcontext, makecontext */
22+
#if defined(__APPLE__) && defined(__MACH__)
23+
# include <TargetConditionals.h>
24+
# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
25+
# define OPENSSL_NO_ASYNC
26+
# endif
27+
#endif
28+
2029
/* musl in Alpine Linux does not support getcontext etc.*/
2130
#if defined(OPENSSL_LINUX) && !defined(__GLIBC__) && !defined(__clang__)
2231
# define OPENSSL_NO_ASYNC

0 commit comments

Comments
 (0)