Skip to content

Commit

Permalink
net: simplified TSChannelNetTls
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Jan 17, 2025
1 parent 332453f commit fdd6f77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'2.3.9418'
'2.3.9419'
1 change: 1 addition & 0 deletions src/net/mormot.net.sock.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3895,6 +3895,7 @@ procedure ResetNetTlsContext(var TLS: TNetTlsContext);
FastAssignNew(TLS.PeerIssuer);
FastAssignNew(TLS.PeerSubject);
FastAssignNew(TLS.PeerInfo);
TLS.PeerCert := nil;
FastAssignNew(TLS.LastError);
end;

Expand Down
7 changes: 1 addition & 6 deletions src/net/mormot.net.sock.windows.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2033,12 +2033,7 @@ var
res, f, trial: cardinal;
begin
// reset output information
Context.CipherName := '';
Context.PeerIssuer := '';
Context.PeerSubject := '';
Context.PeerInfo := '';
Context.PeerCert := nil;
Context.LastError := '';
ResetNetTlsContext(Context);
// method called once to attach the socket from the client side
fSocket := Socket;
fServerAddressW := SynUnicode(ServerAddress);
Expand Down

0 comments on commit fdd6f77

Please sign in to comment.