Ignore:
Timestamp:
08/06/06 09:57:14 (13 years ago)
Author:
spascoe
Message:

Renamed some internal functions binding python to the server.

Location:
TI05-delivery/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/bbftp-server-3.2.0/includes/ndg.h

    r1117 r1139  
    2525#include <Python.h> 
    2626 
    27 int bbftpd_private_auth_callback(char *logmessage); 
    2827int bbftpd_private_authz_control(int msgcode, int transferoption, char *path, char *logmessage); 
    2928int bbftpd_private_authz_retr(char *path, char *logmessage); 
    3029int bbftpd_private_authz_store(char *path, char *logmessage); 
     30 
    3131int ndg_message_send(char *buffer, int length, char *logmessage); 
    3232int ndg_message_recv(char **buffer, int *length, char *logmessage); 
    3333 
     34int ndg_auth(char *logmessage); 
     35char *ndg_getusername(char *logmessage); 
    3436 
    3537#endif // NDG_PYTHON_EMBED 
  • TI05-delivery/trunk/src/python_ext/bbftpd.c

    r1124 r1139  
    3939 * Make a callback bbftpd->python to handle authentication. 
    4040 * 
    41  * @param[out] logmessage filled with an error message on failure 
     41 * @param logmessage a pointer to a buffer of length \c NDG_MAX_LOGMESSAGE 
     42 *     for storing an error message when returning -1. 
    4243 * @return 0 on success, -1 on failure 
    4344 */ 
    44 int bbftpd_private_auth_callback(char *logmessage) { 
     45int ndg_auth(char *logmessage) { 
    4546 
    4647  if (authzContext != NULL) { 
     
    7273 * retrieve the username from authzContext. 
    7374 * 
    74  * @param[out] logmessage filled with an error message on failure 
     75 * @param logmessage a pointer to a buffer of length \c NDG_MAX_LOGMESSAGE 
     76 *     for storing an error message when returning NULL. 
    7577 * @return pointer to the username or NULL on failure 
    7678 */ 
    77 char *bbftpd_private_auth_getusername(char *logmessage) { 
     79char *ndg_getusername(char *logmessage) { 
    7880  char *username; 
    7981  PyObject *str_obj; 
     
    9799  return username; 
    98100} 
     101 
     102 
    99103       
    100104/*------------------------------------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.