mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 20:09:23 +02:00
* Fix getpeername, patch by BaldZhang for issue ID #38677
git-svn-id: trunk@49156 -
This commit is contained in:
parent
9f8566dd84
commit
f43a32315f
@ -657,14 +657,16 @@ var
|
||||
begin
|
||||
Result:='';
|
||||
S:=PeerSubject;
|
||||
P:=Pos(S,'/CN=');
|
||||
P:=Pos('/CN=', S);
|
||||
if (P>0) then
|
||||
begin
|
||||
Delete(S,1,P+3);
|
||||
P:=Pos('/',S);
|
||||
if (P>0) then
|
||||
Result:=Copy(S,1,P-1);
|
||||
end;
|
||||
Result:=Copy(S,1,P-1)
|
||||
else
|
||||
Result := S;
|
||||
end
|
||||
end;
|
||||
|
||||
function TSSL.PeerNameHash: cardinal;
|
||||
|
Loading…
Reference in New Issue
Block a user