LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-30-2004, 10:41 AM   #1
kuphryn
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
SSL and 503 FTP Error :: Socket


Hello.

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
- SSL_connect()
- 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
- SYST

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.

Thanks,

Kuphryn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
FTP via SSL (TLS) embsupafly Linux - Security 2 03-02-2005 08:47 PM
Error 503 Apache v2-ncl Linux - Software 1 07-07-2004 06:36 PM
SSL and SSH :: Socket kuphryn Linux - Security 3 04-11-2004 10:18 PM
google is down!! 503 server error thehundredthone General 7 03-25-2004 10:10 AM


All times are GMT -5. The time now is 11:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration