Featured post
FTPS (FTP-SSL) in Qt 4.6 -
im trying ftp-ssl work qt 4.6.3. i've compiled qt openssl support. there resources ftps qt? seems qftp not provide ssl support. dont want create own ftps implementation.
// edit: discovered qnetworkaccessmanager (ty @ frank) cant find useful documentation or examples ssl it. thats i'm trying:
qurl url = qurl("ftp://localhost/filex.txt"); url.setusername("root"); url.setpassword("root"); qnetworkrequest request(url); qsslconfiguration sslconfiguration(qsslconfiguration::defaultconfiguration()); request.setsslconfiguration(sslconfiguration); manager->get(request);
but filezilla wont let me connect. fz console says:
(000035)21.12.2010 17:31:46 - (not logged in) (127.0.0.1)> user root
(000035)21.12.2010 17:31:46 - (not logged in) (127.0.0.1)> 530 ssl required
filezilla configuration:
- ftp on ssl/tls support enabled
- explicit ftp on tls enabled
- plain unencrypted ftp disallowed
- ssl forced roots login
i @ least expect sort of sslerrors
signals since user/pw fine , ssl fails, i'm getting authenticationrequired
signals.
thanks help!
unfortunately there's no out of box solution ftps in qt.
qftp
implements many ftp commands not support encryption.qnetworkaccessmanager
supports basic ftp functions (file download/upload) , not support encryption in case of ftp, either. it's worth mention support encryption http, protocol it's designed for.qsslsocket
implements ssl no specific protocol ftp or http
taking above information consideration idea comes mind mix qftp
qsslsocket
encrypted ftp. problem qftp
class has no method allow make qftp
use user supplied socket. comparision qhttp
has such method - int qhttp::setsocket(qtcpsocket * socket)
bottom line; according thiago macieira (designer of qnetworkaccessmanager
) way go implement ftp protocol using qsslsocket
.
- Get link
- X
- Other Apps
Comments
Post a Comment