OpenSSL-so-Files-Directories for Android for 64-Bit-Projects if you want to create a bundle:
- 32-Bit-so-files -> library\lib\armeabi-v7a\
- 64-Bit-so-files -> llibrary\lib\arm64-v8a\
Initialization:
Delphi-Quellcode:
var help2:String;
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
begin
IdOpenSSLSetLibPath(IncludeTrailingPathDelimiter(TPath.GetLibraryPath));
IdSSLOpenSSLHeaders.Load();
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
begin
IdOpenSSLSetLibPath(IncludeTrailingPathDelimiter(TPath.GetDocumentsPath));
IdSSLOpenSSLHeaders.Load();
mlog.info('SSL-Version(3): ' + OpenSSLVersion);
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
begin
mlog.info('SSL-Errors: ' + help2);
end;
end else begin
mlog.info('SSL-Version(2): ' + OpenSSLVersion);
end;
end else begin
mlog.info('SSL-Version(1): ' + OpenSSLVersion);
end;