~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

MySQL AUTH PLUGIN support for protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
{
61
61
  auth_pam_userinfo *userinfo = (auth_pam_userinfo*)appdata_ptr;
62
62
  struct pam_response *response = 0;
63
 
  int x;
64
63
 
65
64
  /* parameter sanity checking */
66
 
  if(!resp || !msg || !userinfo)
 
65
  if(not resp || not msg || not userinfo)
67
66
    return PAM_CONV_ERR;
68
67
 
69
68
  /* allocate memory to store response */
72
71
    return PAM_CONV_ERR;
73
72
 
74
73
  /* copy values */
75
 
  for(x= 0; x < num_msg; x++)
 
74
  for(int x= 0; x < num_msg; x++)
76
75
  {
77
76
    /* initialize to safe values */
78
77
    response[x].resp_retcode= 0;