Changeset 1077 for TI05-delivery/trunk/src
- Timestamp:
- 01/06/06 15:18:02 (15 years ago)
- Location:
- TI05-delivery/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/Makefile
r1065 r1077 1 1 # 2 # Top level makefile for the DeliveryService source code. 2 # Makefile for building bbftp client & server stand alone (without Python API) 3 # 3 4 4 5 PREFIX=$(HOME)/opt/bbftp 6 # Grab the DeliveryService version from the parent directory. 7 VERSION:=$(shell cat ../VERSION) 8 9 DEFS="-DNDG_AUTH -DLOCAL_SYSLOG_FACILITY -DNDG_DELIVERY_VERSION=$(VERSION)" 5 10 CONFIG_OPTS=--prefix=$(PREFIX) --without-gzip --without-rfio --enable-authentication=private \ 6 C PPFLAGS="-DNDG_AUTH -DLOCAL_SYSLOG_FACILITY"11 CFLAGS=$(DEFS) 7 12 8 13 BBFTPD=bbftp-server-3.2.0/bbftpd -
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 -
TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_private_user.c
r1075 r1077 37 37 #include <bbftpd_private_user.h> 38 38 39 #ifdef NDG_PYTHON_EMBED 40 #include <Python.h> 41 #endif 42 39 43 extern char currentusername[MAXLEN] ; 40 44 … … 112 116 113 117 char msg[NDG_MESSAGE_LEN]; 114 /* Sendversion verification message. */118 /* Receive version verification message. */ 115 119 if (bbftpd_private_recv(msg, NDG_MESSAGE_LEN, logmessage) == -1) { 116 120 return -1; … … 118 122 else { 119 123 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; 120 130 } 121 131 -
TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/bbftp_private_user.h
r773 r1077 38 38 39 39 **/ 40 41 #ifdef NDG_AUTH 42 #define NDG_STR(s) #s 43 #define NDG_XSTR(s) NDG_STR(s) 44 #define NDG_HANDSHAKE ("NDG-Delivery-server " NDG_XSTR(NDG_DELIVERY_VERSION)) 45 #endif -
TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/bbftpd_private_user.h
r1064 r1077 28 28 *****************************************************************************/ 29 29 30 #include <Python.h>31 32 30 /* 33 31 ** This include must contain all global variable to be used for private … … 49 47 #define NDG_MAX_LOGMESSAGE 1024 50 48 #define NDG_MESSAGE_LEN 256 49 50 #define NDG_STR(s) #s 51 #define NDG_XSTR(s) NDG_STR(s) 52 #define NDG_HANDSHAKE ("NDG-Delivery-server " NDG_XSTR(NDG_DELIVERY_VERSION))
Note: See TracChangeset
for help on using the changeset viewer.