Welcome! Log In Create A New Profile

Advanced

WD2025 FTPConnect() returns -1

Posted by Mike James 
WD2025 FTPConnect() returns -1
February 05, 2025 07:50AM
Hello all
Windev code issue:

FTP connection code that works correctly in versions 24 thru 29 (2024) returns a -1 (error) in v30 (2025).

Protocol is SFTP.

Sample code (site is trusted):

FTP.IgnoreError = ftpIgnoreExpiredCertificate + ftpIgnoreInvalidCertificate + ...
ftpIgnoreInvalidCertificateName + ftpIgnoreRevocation
nResult is int = FTPConnect(sXURL,sXCode, sXPassword,22,ftpPassiveMode) // WD2025 returns -1 here

Has anyone experienced this or has a solution? I have raised a query with PC Soft Technical support, no answer just yet (early days).

Regards
Mike
Re: WD2025 FTPConnect() returns -1
February 05, 2025 11:06AM
Did you read the help? "The details of the error are returned by ErrorInfo with the errCode or errMessage constant.
If an identification error occurs, ErrorInfo with the errCode constant returns the ftpErrorAuthentication constant."
Re: WD2025 FTPConnect() removed DSA encryption
February 06, 2025 10:19PM
Hi MiellesMain, thanks for your helpful comments. After following your suggestion I obtained an error code 100002.

I have also had a reply from PC Soft which advises that "Your FTP server currently using DSA encryption, which has been deprecated for years. OpenSSH has/will stop support 'early 2025'." (The server has been in existence a long time).

They also provided a detailed error:

> - DSA: `ssh-dss` hostkeys.
> You can enable it now with `-DLIBSSH2_DSA_ENABLE`.
> Disabled by default in OpenSSH 7.0 (2015-08-11).
> Support to be removed by early 2025 from OpenSSH.

Maybe this suggests a workaround?

But in any case, it seems I will need to talk to the FTP server owners.

Regards
Mike



Edited 1 time(s). Last edit at 02/07/2025 08:20PM by Mike James.
Re: WD2025 FTPConnect() returns -1
February 13, 2025 10:29PM
PC Soft have now released an update for this issue, which allows my FTP connection to work. I presume they have re-enabled DSA keys in their program, perhaps after many protests.
Steffen
Re: WD2025 FTPConnect() returns -1
November 15, 2025 11:07AM
Hello,

we're having a related issue, Windev's sftp is using deprecated SSL-ciphers by default.

Any idea how to mitigate this?

Kind regards
Steffen
Re: WD2025 FTPConnect() returns -1
November 16, 2025 11:44PM
Hi Steffen

Possibly this, prior to ftpConnect():
FTP.IgnoreError = ftpIgnoreDeprecated?

Regards
Mike
Steffen
Re: WD2025 FTPConnect() returns -1
November 18, 2025 06:46AM
Hi Mike,

thanks for putting replying :-)

I believe the remote sftp-server is denying the connection. Is your solution surpressing the error itself or forcing windev to use non.deprecated ciphers?

Kind regards
Steffen
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: