New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple SSL backend using Network framework #2482
Conversation
…eive if dispatch_data_apply() is called multiple times
Does it work? I have a crash when add .p12 certificate with password and execute pjsua_transport_create(): "Thread 1: EXC_BAD_ACCESS (code=1, address=...)" |
for supporting macOS 10.0 and above I used PJ_SSL_SOCK_IMP_DARWIN instead of PJ_SSL_SOCK_IMP_APPLE, which is working fine for me. on 10.0 and above.Included |
Hello I Couldn't build after using this
is there some library should I add? |
Have you configured user.mak like this? export LDFLAGS += -framework Network -framework Security |
The current SSL backend using Secure Transport is deprecated in MacOS 10.15 and iOS 13.0, as specified in Apple's doc here. So we create a new SSL backend based on Network framework.
Requirement:
#define PJ_HAS_SSL_SOCK 1
and#define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_APPLE
in yourconfig_site.h
to use Apple's Network SSL backend. Addexport LDFLAGS += -framework Network -framework Security
to youruser.mak
and add the frameworks to your XCode app project as well.SSL sock unit test fix in this PR:
Tests run and passed:
Limitation: