Changeset 802
- Timestamp:
- 20/04/06 13:47:58 (15 years ago)
- Location:
- TI05-delivery/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/bbftp_private_user.c
r773 r802 50 50 ** logmessage : to write the error message in case of error * 51 51 ** * 52 ** GLOBAL VARIABLE USED : * * 52 ** GLOBAL VARIABLE USED : * 53 ** * 53 54 ** * 54 55 ** RETURN: * … … 117 118 int bbftp_private_auth(char *logmessage) 118 119 { 119 120 return 0 ; 120 /* Send version verification message. */ 121 if (bbftp_private_send(NDG_FTP_PROTOCOL, NDG_MESSAGE_LEN, logmessage) == -1) { 122 return -1; 123 } 124 125 return 0 ; 121 126 } -
TI05-delivery/trunk/src/bbftp-client-3.2.0/includes/bbftp_private_user.h
r773 r802 38 38 39 39 **/ 40 41 /* 42 * NDG-bbFTP test definitions. 43 */ 44 45 #define NDG_FTP_VERSION "v0.0.1" 46 #define NDG_FTP_PROTOCOL ("NDG-bbFTP" NDG_BBFTP_VERSION) 47 48 #define NDG_MESSAGE_LEN 256 49 50 /* The logmessage size limit is hard coded into the bbFTP source. I define a macro here to avoid 51 buffer overflows. 52 */ 53 #define NDG_MAX_LOGMESSAGE 1024 -
TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_private_user.c
r773 r802 33 33 #include <daemon_proto.h> 34 34 #include <structures.h> 35 36 #include <bbftp_private_user.h> 35 37 36 38 extern char currentusername[MAXLEN] ; … … 79 81 ** logmessage : to write the error message in case of error * 80 82 ** * 81 ** GLOBAL VARIABLE USED : * * 83 ** GLOBAL VARIABLE USED : * 84 ** * 82 85 ** * 83 86 ** RETURN: * … … 89 92 int bbftpd_private_auth(char *logmessage) 90 93 { 91 return 0 ; 94 char msg[NDG_MESSAGE_LEN]; 95 /* Send version verification message. */ 96 if (bbftp_private_recv(msg, NDG_MESSAGE_LEN, logmessage) == -1) { 97 return -1; 98 } 99 100 return 0 ; 92 101 } -
TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/bbftpd_private_user.h
r773 r802 38 38 39 39 **/ 40 41 #define NDG_FTP_VERSION "v0.0.1" 42 #define NDG_FTP_PROTOCOL ("NDG-bbFTP" NDG_BBFTP_VERSION) 43 44 /* The logmessage size limit is hard coded into the bbFTP source. I define a macro here to avoid 45 buffer overflows. 46 */ 47 #define NDG_MAX_LOGMESSAGE 1024 48 #define NDG_MESSAGE_LEN 256
Note: See TracChangeset
for help on using the changeset viewer.