Ignore:
Timestamp:
30/05/06 16:49:09 (14 years ago)
Author:
spascoe
Message:

A python module which provides a function to start the daemon can be
built using the setup.py script. This method of invoking the server
has been briefly tested but no test cases yet.

I've taken out the initialisation/finalisation hooks from the auth API because
we shouldn't need them now. They were written assuming the python interpretter
was going to be embedded within bbftpd, but I've inverted the embedding by
wrapping bbftpd.c:main in a python extension function.

File:
1 edited

Legend:

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

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