Ignore:
Timestamp:
31/05/06 15:57:25 (13 years ago)
Author:
spascoe
Message:

Implemented setting the username from python during authentication.

File:
1 edited

Legend:

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

    r1073 r1074  
    9797int bbftpd_private_auth(char *logmessage) 
    9898{ 
     99  char *username; 
     100 
    99101  char msg[NDG_MESSAGE_LEN]; 
    100102  /* Send version verification message.  */ 
     
    107109 
    108110#ifdef NDG_PYTHON_EMBED 
    109   return bbftpd_private_auth_callback(logmessage); 
    110 #else 
     111  if (bbftpd_private_auth_callback(logmessage) == -1) { 
     112    return -1; 
     113  } 
     114  if ((username = bbftpd_private_auth_getusername(logmessage)) == NULL) { 
     115    return -1; 
     116  } 
     117    
     118  sprintf(currentusername, "%.*s", MAXLEN, username); 
     119#endif 
     120 
    111121  return 0 ; 
    112 #endif 
    113122} 
    114123 
Note: See TracChangeset for help on using the changeset viewer.