I am working on a small socket application that utilizes SSL and FTP protocol.
The problem is that the server response with error:
"503 Log in with USER first."
The SSL is OpenSSL. Here is an overview of the sequence.
- winsock connect
- AUTH SSL
- handshake is success
// At this point, everything is send/recv via SSL
// SSL_send() and SSL_recv()
- PBSZ 0
- PROT P
- USER <username>
- PASS <password>
// All the above are successful
// Server respond "230 <username> logged in."
// Every command afterward returns an error
Basically, every command the program sends, the server would return "503 Log in with USER first."
Do you need to package outgoing data in a special SSL package before passing it to SSL_send()?
Please post if you have any idea.