fpc/packages/openssl/examples/test1.pas
michael aa5b2bb027 Fix bug ID #36023, deprecate sslleay
git-svn-id: trunk@42867 -
2019-08-29 06:44:01 +00:00

24 lines
387 B
ObjectPascal

program test1;
{$mode objfpc}{$H+}
uses
SysUtils,OpenSSL;
Const
Bools : Array[Boolean] of string = ('Failed','OK');
Var
B : Boolean;
begin
B:=InitSSLInterface(True);
Writeln('Load ',Bools[B],', missing functions: ');
if OpenSSL_unavailable_functions<>'' then
Writeln(OpenSSL_unavailable_functions);
if b then
writeln('Version : ',OpenSSLGetVersion(0));
end.