~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/password.c

  • 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:
48
48
           hash_stage2=sha1(hash_stage1)
49
49
           reply=xor(hash_stage1, sha1(public_seed,hash_stage2)
50
50
 
51
 
           // this three steps are done in scramble() 
 
51
           // this three steps are done in scramble()
52
52
 
53
53
           send(reply)
54
54
 
55
 
     
 
55
 
56
56
  SERVER:  recv(reply)
57
57
           hash_stage1=xor(reply, sha1(public_seed,hash_stage2))
58
58
           candidate_hash2=sha1(hash_stage1)
107
107
 
108
108
 
109
109
/*
110
 
    Generate binary hash from raw text string 
 
110
    Generate binary hash from raw text string
111
111
    Used for Pre-4.1 password handling
112
112
  SYNOPSIS
113
113
    hash_password()
182
182
{
183
183
  static const char _dig_vec_upper[]= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
184
184
 
185
 
  const char *str_end= str + len; 
 
185
  const char *str_end= str + len;
186
186
  for (; str != str_end; ++str)
187
187
  {
188
188
    *to++= _dig_vec_upper[((unsigned char) *str) >> 4];