test1.pas 387 B

1234567891011121314151617181920212223
  1. program test1;
  2. {$mode objfpc}{$H+}
  3. uses
  4. SysUtils,OpenSSL;
  5. Const
  6. Bools : Array[Boolean] of string = ('Failed','OK');
  7. Var
  8. B : Boolean;
  9. begin
  10. B:=InitSSLInterface(True);
  11. Writeln('Load ',Bools[B],', missing functions: ');
  12. if OpenSSL_unavailable_functions<>'' then
  13. Writeln(OpenSSL_unavailable_functions);
  14. if b then
  15. writeln('Version : ',OpenSSLGetVersion(0));
  16. end.