OpenSSL V1.xx for WinCE
Pavel Vrublevskij, Pavel Vrublevskij
SSL for WIN CE, SSL for WIN Mobile, SLL for ARM platform, OpenSSL ARM.
Linker version 6.24
Product version 1.0.0a (bug fixed) - download -> or from github
OpenSSL WinCE did not yield any positive result, So long ago I have compiled this library that solved problems on Mobile Devices for ARM platform The problem and code below (problem exists on old library versions):
Main problem was, when you try to access the virtual host on Mobile Device using SSL - access unsuccessful on old versions and you might be have answer 'SSL active BAD' (look code). On compiled v1.x version you will got success.
Code example (Delphi):
uses
..., lNet, lNetComponents, lNetSSL, OpenSSL, ...;
...
function TDM.ConnectToServer: boolean;
var
_FLtcp: TLTCPComponent;
_FLSSL: TLSSLSession;
begin
Result := false;
_FLtcp := TLTCPComponent.Create(nil);
try
_FLSSL := TLSSLSession.Create(nil);
try
if FSettings.UseSSL then
begin
_FLSSL.Method := msSSLv2or3;
_FLSSL.KeyFile := FProgramPath + 'cert.key';
_FLSSL.CAFile := FProgramPath + 'cert.crt';
_FLtcp.Session := _FLSSL;
_FLSSL.SSLActive := true;
if _FLSSL.Active then
LogToFile('SSL active OK')
else
LogToFile('SSL active BAD');
end;
...
...
...
end;