~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
3
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
 
  Sections of this where taken/modified from mod_auth_path for Apache 
 
4
  Sections of this where taken/modified from mod_auth_path for Apache
5
5
*/
6
6
 
7
7
#define DRIZZLE_SERVER 1
41
41
    return PAM_CONV_ERR;
42
42
 
43
43
  /* copy values */
44
 
  for(x= 0; x < num_msg; x++) 
 
44
  for(x= 0; x < num_msg; x++)
45
45
  {
46
46
    /* initialize to safe values */
47
47
    response[x].resp_retcode= 0;
48
48
    response[x].resp= 0;
49
49
 
50
50
    /* select response based on requested output style */
51
 
    switch(msg[x]->msg_style) 
 
51
    switch(msg[x]->msg_style)
52
52
    {
53
53
    case PAM_PROMPT_ECHO_ON:
54
54
      /* on memory allocation failure, auth fails */
96
96
static int initialize(void *p)
97
97
{
98
98
  authentication_st *auth= (authentication_st *)p;
99
 
  
 
99
 
100
100
  auth->authenticate= authenticate;
101
101
 
102
102
  return 0;