Page 1 of 1

Android and Delphi 10.4

Posted: Wed 17 Mar 2021 11:24
by Dido
SecureBridge 9.4.1
Delphi 10.4.2 and Delphi 10.4.1
Platform: Android

1. When working with a SSH tunnel, everything works correctly until a disconnect is made.
On ScSSHChannel.Disconnect application hang.

2. The application closes itself on NewServerKey.ExportTo(Stream, True, '')

procedure ScSSHClient1ServerKeyValidate(Sender: TObject;
NewServerKey: TScKey; var Accept: Boolean);
var
Stream: TStringStream;
begin
Stream:=TStringStream.Create(nil);
try
NewServerKey.ExportTo(Stream, True, ''); <------- App closes itself here
finally
Stream.Free;
end;
end;

With the same project and the same version of SecureBridge 9.4.1 and Delphi 10.3.3 everything works perfectly.

Re: Android and Delphi 10.4

Posted: Wed 24 Mar 2021 15:40
by ViktorV
Thank you for the information. We'll investigate the behavior of TScSSHChannel.Disconnect for Android and get back to you with an update.
We couldn't reproduce the issue with the ExportTo method, unfortunately.

Re: Android and Delphi 10.4

Posted: Tue 30 Mar 2021 16:28
by ViktorV
We fixed the issue. This fix will be included in the next build of SecureBridge, which we're planning to release within a few days.