(file) Return to PAMBasicAuthenticatorUnix.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Security / Authentication

Diff for /pegasus/src/Pegasus/Security/Authentication/PAMBasicAuthenticatorUnix.cpp between version 1.11 and 1.11.6.1

version 1.11, 2002/10/04 18:47:29 version 1.11.6.1, 2002/12/19 19:35:27
Line 315 
Line 315 
     PEG_METHOD_ENTER(TRC_AUTHENTICATION,     PEG_METHOD_ENTER(TRC_AUTHENTICATION,
         "PAMBasicAuthenticator::PAMCallback()");         "PAMBasicAuthenticator::PAMCallback()");
  
       for ( Sint32 i = 0; i < num_msg; i++ )
       {
           if ( msg[i]->msg_style != PAM_PROMPT_ECHO_OFF )
           {
               PEG_METHOD_EXIT();
               return PAM_CONV_ERR;
           }
       }
   
     //     //
     // Copy the application specific data from the PAM structure.     // Copy the application specific data from the PAM structure.
     //     //
Line 342 
Line 351 
  
     for ( Sint32 i = 0; i < num_msg; i++ )     for ( Sint32 i = 0; i < num_msg; i++ )
     {     {
         switch ( msg[i]->msg_style )          //
         {          // We get here only if msg[i]->msg_style == PAM_PROMPT_ECHO_OFF,
             case PAM_PROMPT_ECHO_OFF:          // no need to check again.
           //
   
                 //                 //
                 // copy the user password                 // copy the user password
                 //                 //
                 resp[i]->resp = (char *)malloc(PAM_MAX_MSG_SIZE);                 resp[i]->resp = (char *)malloc(PAM_MAX_MSG_SIZE);
                 strcpy(resp[i]->resp, mydata->userPassword);                 strcpy(resp[i]->resp, mydata->userPassword);
                 resp[i]->resp_retcode = 0;                 resp[i]->resp_retcode = 0;
                 break;  
   
             default:  
                 PEG_METHOD_EXIT();  
                 return PAM_CONV_ERR;  
         }  
     }     }
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();


Legend:
Removed from v.1.11  
changed lines
  Added in v.1.11.6.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2