Ignore:
Timestamp:
22/05/06 12:23:42 (14 years ago)
Author:
spascoe
Message:

Added the private authentication API extensions needed to implement
NDG security. This API is connected to empty stub functions, no useful
functionality yet. Authorisation will require a further extension later.

The code compiles. Execution yet to be tested.

File:
1 edited

Legend:

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

    r806 r973  
    105105  return 0 ;  
    106106} 
     107 
     108 
     109#ifdef NDG_AUTH 
     110 
     111/* 
     112 * bbftpd_private_init : 
     113 * 
     114 *     Routine to initialise private authentication.  This function will be 
     115 *     called before bbftpd begins listening for connections and therefore 
     116 *     before the fork() that occurs when a client connects. 
     117 * 
     118 *     OUTPUT variable : 
     119 *          logmessage :  to write the error message in case of error 
     120 * 
     121 *     RETURN: 
     122 *         -1  Unrecoverable error 
     123 *          0  OK 
     124 * 
     125 */ 
     126 
     127int bbftpd_private_init(char *logmessage) 
     128{ 
     129  syslog(LOG_INFO, "initialising private authentication"); 
     130  return 0; 
     131} 
     132 
     133/* 
     134 * bbftpd_private_finalise : 
     135 * 
     136 *     Routine to clean up the private authentication infrastructure when the  
     137 *     daemon exits.  This function is the counterpart of bbftpd_private_init and  
     138 *     will be called from the daemon process during exit.  NOTE: it will not  
     139 *     be aware of any actions of child processes. 
     140 * 
     141 */ 
     142 
     143void bbftpd_private_finalise(void) 
     144{ 
     145  syslog(LOG_INFO, "finalising private authentication in server"); 
     146  return; 
     147} 
     148 
     149/* 
     150 * bbftpd_private_auth_finalise : 
     151 * 
     152 *     Routine to clean up the private authentication infrastructure for each child. 
     153 *     This function is the counterpart of bbftpd_private_auth and will be called from 
     154 *     each child of the daemon during exit. 
     155 * 
     156 */ 
     157 
     158void bbftpd_private_auth_finalise(void) 
     159{ 
     160  syslog(LOG_INFO, "finalising private authentication in connection"); 
     161  return; 
     162} 
     163 
     164#endif // NDG_AUTH 
Note: See TracChangeset for help on using the changeset viewer.