Thread: FTP SSL Problem

  1. #1
    Sacrajit
    Join Date
    Mar 2005
    Location
    India- Delhi
    Posts
    3

    FTP SSL Problem

    Hi,
    I am having some problem coding for a FTP client which should have SSL enables (128 bit encryption) in C in visual Studio enviornment. I can connect to the FTP server not using the default port(21). But the server sends a error message 431 - Unable to negotiate secure command connection. I dont know how to begin the SSL/TLS negotiation. After the controll connnection when I am sendning the PORT ftp command the server returns error 10054. Any win32 API or a sample code will be of great help.

    regards

    Sacrajit
    Last edited by sacrajit; 03-18-2005 at 12:52 PM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I dont know how to begin the SSL/TLS negotiation
    Everything to do with Internet protocols is described in RFC's
    www.rfc-editor.org

    If you haven't already, get www.ethereal.com and use it to watch all the packets go by. Compare what you do with what a proper program does.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Sacrajit
    Join Date
    Mar 2005
    Location
    India- Delhi
    Posts
    3
    Hi all,
    i am using openssl now and able to complete the SSL/TLS negotiation succesfully . The server responds for the first time and then send a time out error of 421.

    If I use SSL_read - it times out .. but if I use recv() then send response but in encrypted format. (not printable) .. any suggestions.

    thanks

    sacrajit

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  2. Segmentation Fault Problem: Urgent Help
    By bodydrop in forum C Programming
    Replies: 3
    Last Post: 05-05-2006, 08:02 PM
  3. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  4. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  5. ftp server name problem.
    By earth_angel in forum C++ Programming
    Replies: 1
    Last Post: 09-15-2005, 08:19 AM