Skip to content

Commit a6288a6

Browse files
committed
LoadLib functions now use a PChar type param for Delphi on Linux compat
1 parent f4d1675 commit a6288a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/opensslHdrs/IdSSLOpenSSLAPI.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ TOpenSSL_C_TM = record
293293

294294
function GetIOpenSSLDDL: IOpenSSLDLL;
295295
{$IFNDEF OPENSSL_STATIC_LINK_MODEL}
296-
function LoadLibCryptoFunction(const AProcName: {$IFDEF FPC}AnsiString{$ELSE}PChar{$ENDIF}): Pointer;
297-
function LoadLibSSLFunction(const AProcName: {$IFDEF FPC}AnsiString{$ELSE}PChar{$ENDIF}): Pointer;
296+
function LoadLibCryptoFunction(const AProcName: PChar): Pointer;
297+
function LoadLibSSLFunction(const AProcName: PChar): Pointer;
298298

299299
type
300300
TOpenSSLLoadProc = procedure(LibVersion: TOpenSSL_C_UINT; const AFailed: TStringList);
@@ -536,12 +536,12 @@ function TOpenSSLDynamicLibProvider.Init : boolean;
536536
Result := Load;
537537
end;
538538

539-
function LoadLibCryptoFunction(const AProcName: {$IFDEF FPC}AnsiString{$ELSE}PChar{$ENDIF}): Pointer;
539+
function LoadLibCryptoFunction(const AProcName: PChar): Pointer;
540540
begin
541541
Result := GetProcAddress(TOpenSSLDynamicLibProvider.FOpenSSLDDL.GetLibCryptoHandle,AProcName);
542542
end;
543543

544-
function LoadLibSSLFunction(const AProcName: {$IFDEF FPC}AnsiString{$ELSE}PChar{$ENDIF}): Pointer;
544+
function LoadLibSSLFunction(const AProcName: PChar): Pointer;
545545
begin
546546
Result := GetProcAddress(TOpenSSLDynamicLibProvider.FOpenSSLDDL.GetLibSSLHandle,AProcName);
547547
end;

0 commit comments

Comments
 (0)