Changeset 1077 for TI05-delivery/trunk/src/bbftp-client-3.2.0
- Timestamp:
- 01/06/06 15:18:02 (15 years ago)
- Location:
- TI05-delivery/trunk/src/bbftp-client-3.2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/bbftp_private_user.c
r802 r1077 30 30 31 31 #include <bbftp_private_user.h> 32 #include <client.h> 32 33 33 34 /* … … 39 40 */ 40 41 extern char *privatestr ; 42 43 extern int debug; 44 45 /* From bbftp_util.c */ 46 void printmessage(FILE *strm , int flag, int errcode, int tok, char *fmt, ...); 47 41 48 42 49 /******************************************************************************* … … 118 125 int bbftp_private_auth(char *logmessage) 119 126 { 127 char msg[NDG_MESSAGE_LEN]; 128 120 129 /* Send version verification message. */ 121 if (bbftp_private_send(NDG_FTP_PROTOCOL, NDG_MESSAGE_LEN, logmessage) == -1) { 130 sprintf(msg, "%.*s", NDG_MESSAGE_LEN - 1, NDG_HANDSHAKE); 131 if (bbftp_private_send(msg, NDG_MESSAGE_LEN, logmessage) == -1) { 122 132 return -1; 133 } 134 135 /* Receive response */ 136 if (bbftp_private_recv(msg, NDG_MESSAGE_LEN, logmessage) == -1) { 137 return -1; 138 } 139 140 if (debug) { 141 printmessage(stdout,CASE_NORMAL,0,0,"Received Auth handshake: %s\n", msg) ; 123 142 } 124 143 -
TI05-delivery/trunk/src/bbftp-client-3.2.0/includes/bbftp_private_user.h
r806 r1077 43 43 */ 44 44 45 #define NDG_FTP_VERSION "v0.0.1" 46 #define NDG_FTP_PROTOCOL ("NDG-bbFTP" NDG_FTP_VERSION) 45 // Define this in the makefile 46 // #define NDG_DELIVERY_VERSION "v0.0.1" 47 #define NDG_STR(s) #s 48 #define NDG_XSTR(s) NDG_STR(s) 49 #define NDG_HANDSHAKE ("NDG-Delivery-client " NDG_XSTR(NDG_DELIVERY_VERSION)) 47 50 48 51 #define NDG_MESSAGE_LEN 256 … … 52 55 */ 53 56 #define NDG_MAX_LOGMESSAGE 1024 57
Note: See TracChangeset
for help on using the changeset viewer.