Changeset 988 for TI05-delivery
- Timestamp:
- 23/05/06 16:38:39 (15 years ago)
- Location:
- TI05-delivery/trunk/src/bbftp-server-3.2.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_private_user.c
r987 r988 211 211 212 212 213 /* 214 ** bbftpd_private_authz_retr : 215 ** 216 ** Routine to authorise file retrieve requests. 217 ** 218 ** INPUT variables: 219 ** path: the file to retrieve 220 ** 221 ** OUTPUT variables: 222 ** logmessage : to write the error message in case of failure 223 ** 224 ** RETURN: 225 ** -1 Authorisation failed 226 ** 0 OK 227 ** 228 */ 229 int bbftpd_private_authz_retr(char *path, char *logmessage) 230 { 231 syslog(LOG_INFO, "Authz: RETR %s", path); 232 return 0; 233 } 234 235 /* 236 ** bbftpd_private_authz_store : 237 ** 238 ** Routine to authorise file store requests. 239 ** 240 ** INPUT variables: 241 ** path: the file to store 242 ** 243 ** OUTPUT variables: 244 ** logmessage : to write the error message in case of failure 245 ** 246 ** RETURN: 247 ** -1 Authorisation failed 248 ** 0 OK 249 ** 250 */ 251 252 int bbftpd_private_authz_store(char *path, char *logmessage) 253 { 254 syslog(LOG_INFO, "Authz: STORE %s", path); 255 return 0; 256 } 213 257 #endif // NDG_AUTH -
TI05-delivery/trunk/src/bbftp-server-3.2.0/bbftpd/bbftpd_readcontrol.c
r987 r988 399 399 curfilenamelen = msglen ; 400 400 syslog(BBFTPD_DEBUG,"Request to store file %s",curfilename) ; 401 #ifdef NDG_AUTH 402 if (bbftpd_private_authz_store(curfilename, logmessage) != 0) { 403 syslog(BBFTPD_ERR, logmessage); 404 reply(MSG_BAD_NO_RETRY, logmessage); 405 free_all_var(); 406 state = S_LOGGED; 407 return 0; 408 } 409 #endif // NDG_AUTH 401 410 if ( (retcode = bbftpd_storecheckoptions(logmessage)) < 0 ) { 402 411 syslog(BBFTPD_ERR,logmessage) ; … … 667 676 curfilenamelen = msglen ; 668 677 syslog(BBFTPD_DEBUG,"Request to retreive file %s",curfilename) ; 678 #ifdef NDG_AUTH 679 if (bbftpd_private_authz_retr(curfilename, logmessage) != 0) { 680 syslog(BBFTPD_ERR, logmessage); 681 reply(MSG_BAD_NO_RETRY, logmessage); 682 free_all_var(); 683 state = S_LOGGED; 684 return 0; 685 } 686 #endif // NDG_AUTH 669 687 /* 670 688 ** Create the file -
TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/daemon_proto.h
r987 r988 77 77 void bbftpd_private_auth_finalise(void); 78 78 int bbftpd_private_authz_control(int msgcode, int transferoption, char *path, char *logmessage); 79 int bbftpd_private_authz_retr(char *path, char *logmessage); 80 int bbftpd_private_authz_store(char *path, char *logmessage); 79 81 #endif // NDG_AUTH 80 82 /*
Note: See TracChangeset
for help on using the changeset viewer.