mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:49:19 +02:00
* Merging revisions r49156 from trunk:
------------------------------------------------------------------------ r49156 | michael | 2021-04-10 08:08:39 +0200 (Sat, 10 Apr 2021) | 1 line * Fix getpeername, patch by BaldZhang for issue ID #38677 ------------------------------------------------------------------------ git-svn-id: branches/fixes_3_2@49303 -
This commit is contained in:
parent
0e8042141d
commit
0fc1640e1d
@ -657,14 +657,16 @@ var
|
|||||||
begin
|
begin
|
||||||
Result:='';
|
Result:='';
|
||||||
S:=PeerSubject;
|
S:=PeerSubject;
|
||||||
P:=Pos(S,'/CN=');
|
P:=Pos('/CN=', S);
|
||||||
if (P>0) then
|
if (P>0) then
|
||||||
begin
|
begin
|
||||||
Delete(S,1,P+3);
|
Delete(S,1,P+3);
|
||||||
P:=Pos('/',S);
|
P:=Pos('/',S);
|
||||||
if (P>0) then
|
if (P>0) then
|
||||||
Result:=Copy(S,1,P-1);
|
Result:=Copy(S,1,P-1)
|
||||||
end;
|
else
|
||||||
|
Result := S;
|
||||||
|
end
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TSSL.PeerNameHash: cardinal;
|
function TSSL.PeerNameHash: cardinal;
|
||||||
|
Loading…
Reference in New Issue
Block a user