Om OpenSSL te installeren op een 64-bits iOS-apparaat, moet u de SSL-bibliotheekbestanden libcrypto.a en libssl.a naar uw systeem kopiëren. Download de .zip iOS OpenSSL, pak hem uit en zoek de .a-bestanden in de map \lib. U moet de SSL-bibliotheekbestanden libcrypto.a en libssl.a kopiëren naar deze mappen:
C:\Program Files (x86)\Embarcadero\Studio\<IDE Version>\lib\iosDevice64\debug
C:\Program Files (x86)\Embarcadero\Studio\<IDE Version>\lib\iosDevice64\release
Voeg de unit sgcIdSSLOpenSSLHeaders_static (of IdSSLOpenSSLHeaders_static als uw sgcWebSockets-editie geen Enterprise is) toe aan uw uses-clause.
Als u een bestand wilt implementeren, kunt u RemotePath = StartUp\Documents instellen en het bestand laden met (vereist dat System.IOUtils aan de uses-clausule wordt toegevoegd):
TPath.GetDocumentsPath + PathDelim + <your filename>
De OpenSSL-bibliotheken mogen niet worden geïmplementeerd via het menu Project/Deployment onder iOS.
Wijzig IdCompilerDefines.inc en schakel SGC_OPENSSL_API_1_1 in de IOS-sectie in:
{$IFDEF IOS}
{$DEFINE HAS_getifaddrs}
{$DEFINE USE_OPENSSL}
{$IFDEF CPUARM}
// RLebeau: For iOS devices, OpenSSL cannot be used as an external library,
// het moet statisch worden gekoppeld aan de app. Voor de iOS-simulator, dit
// is not true. Users who want to use OpenSSL in iOS device apps will need
// om de statische OpenSSL-bibliotheek aan het project toe te voegen en vervolgens de
// IdSSLOpenSSLHeaders_static unit in their uses clause. It hooks up the
// statically linked functions for the IdSSLOpenSSLHeaders unit to use...
{$DEFINE STATICLOAD_OPENSSL}
// sgc--> inschakelen voor openssl API 1.1
{$DEFINE SGC_OPENSSL_API_1_1}
{$ENDIF}
{$ENDIF}
U kunt bibliotheken downloaden vanuit uw account.
Wijzig IdCompilerDefines.inc en schakel SGC_OPENSSL_API_1_1 en SGC_OPENSSL_API_3_0 in de IOS-sectie in:
{$IFDEF IOS}
{$DEFINE HAS_getifaddrs}
{$DEFINE USE_OPENSSL}
{$IFDEF CPUARM}
// RLebeau: For iOS devices, OpenSSL cannot be used as an external library,
// het moet statisch worden gekoppeld aan de app. Voor de iOS-simulator, dit
// is not true. Users who want to use OpenSSL in iOS device apps will need
// om de statische OpenSSL-bibliotheek aan het project toe te voegen en vervolgens de
// IdSSLOpenSSLHeaders_static unit in their uses clause. It hooks up the
// statically linked functions for the IdSSLOpenSSLHeaders unit to use...
{$DEFINE STATICLOAD_OPENSSL}
// sgc--> inschakelen voor openssl API 1.1
{$DEFINE SGC_OPENSSL_API_1_1}
// sgc--> enable for openssl API 3.0
{$DEFINE SGC_OPENSSL_API_3_0}
{$ENDIF}
{$ENDIF}
U kunt bibliotheken downloaden vanuit uw account.