Ignore:
Timestamp:
01/06/06 15:18:02 (13 years ago)
Author:
spascoe
Message:

Implemented full client-server handshake. A version message is now
exchanged client->server then server->client. These messages are logged
in debug mode. Message passing is implemented in Python on the server (at the
moment this is only implemented within test/test_embedded.py).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_private_user.c

    r1075 r1077  
    3737#include <bbftpd_private_user.h> 
    3838 
     39#ifdef NDG_PYTHON_EMBED 
     40#include <Python.h> 
     41#endif 
     42 
    3943extern char currentusername[MAXLEN] ; 
    4044 
     
    112116 
    113117  char msg[NDG_MESSAGE_LEN]; 
    114   /* Send version verification message.  */ 
     118  /* Receive version verification message.  */ 
    115119  if (bbftpd_private_recv(msg, NDG_MESSAGE_LEN, logmessage) == -1) { 
    116120    return -1; 
     
    118122  else { 
    119123    syslog(LOG_DEBUG, "Received auth message: %s", msg); 
     124  } 
     125 
     126  /* Send response */ 
     127  sprintf(msg, "%.*s", NDG_MESSAGE_LEN - 1, NDG_HANDSHAKE); 
     128  if (bbftpd_private_send(msg, NDG_MESSAGE_LEN, logmessage) == -1) { 
     129    return -1; 
    120130  } 
    121131 
Note: See TracChangeset for help on using the changeset viewer.