* Dotted filenames for package openssl

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:58:04 +01:00
parent a3d32e6c5b
commit fdac8f4e43
7 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,3 @@
unit Api.Openssl;
{$DEFINE FPC_DOTTEDUNITS}
{$i openssl.pas}

View File

@ -0,0 +1,3 @@
unit System.Net.Fpopenssl;
{$DEFINE FPC_DOTTEDUNITS}
{$i fpopenssl.pp}

View File

@ -0,0 +1,3 @@
unit System.Net.Opensslsockets;
{$DEFINE FPC_DOTTEDUNITS}
{$i opensslsockets.pp}

View File

@ -0,0 +1,5 @@
src/opensslsockets.pp=namespaced/System.Net.Opensslsockets.pp
{s*:src/}=namespaced/
{i+:src/}
src/openssl.pas=namespaced/Api.Openssl.pas
src/fpopenssl.pp=namespaced/System.Net.Fpopenssl.pp

View File

@ -12,15 +12,22 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$IFNDEF FPC_DOTTEDUNITS}
unit fpopenssl;
{$ENDIF FPC_DOTTEDUNITS}
{$mode objfpc}{$H+}
{$DEFINE DUMPCERT}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.Classes, System.SysUtils, System.Net.Sslbase, Api.Openssl, System.CTypes;
{$ELSE FPC_DOTTEDUNITS}
uses
Classes, SysUtils, sslbase, openssl, ctypes;
{$ENDIF FPC_DOTTEDUNITS}
{$IFDEF DUMPCERT}
Const
@ -127,7 +134,11 @@ Function BioToString(B : PBIO; FreeBIO : Boolean = False) : AnsiString;
implementation
{$IFDEF FPC_DOTTEDUNITS}
uses System.DateUtils;
{$ELSE FPC_DOTTEDUNITS}
uses dateutils;
{$ENDIF FPC_DOTTEDUNITS}
Resourcestring
SErrCountNotGetContext = 'Failed to create SSL Context';

View File

@ -1,4 +1,6 @@
{$IFNDEF FPC_DOTTEDUNITS}
unit openssl;
{$ENDIF FPC_DOTTEDUNITS}
{==============================================================================|
| Project : Ararat Synapse | 003.004.001 |
@ -79,11 +81,19 @@ requested OpenSSL function just return errorcode.
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
{$IFDEF OS2}
System.Net.Sockets,
{$ENDIF OS2}
System.DynLibs, System.CTypes, System.SysUtils;
{$ELSE FPC_DOTTEDUNITS}
uses
{$IFDEF OS2}
Sockets,
{$ENDIF OS2}
DynLibs, cTypes, SysUtils;
{$ENDIF FPC_DOTTEDUNITS}
Type
TLibreSSLSupport = (lssFirst,lssLast,lssDisabled);

View File

@ -1,11 +1,18 @@
{$IFNDEF FPC_DOTTEDUNITS}
unit opensslsockets;
{$ENDIF FPC_DOTTEDUNITS}
{$mode objfpc}{$H+}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.Classes, System.SysUtils, System.Net.Sockets, System.Net.Ssockets, System.Net.Sslsockets, System.Net.Sslbase, Api.Openssl, System.Net.Fpopenssl;
{$ELSE FPC_DOTTEDUNITS}
uses
Classes, SysUtils, sockets, ssockets, sslsockets, sslbase, openssl, fpopenssl;
{$ENDIF FPC_DOTTEDUNITS}
Type