Changeset 19279

Show
Ignore:
Timestamp:
28.04.2009 14:18:19 (10 years ago)
Author:
ak19
Message:

Changed to using stderr for Windows 'getpass' equivalent

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/common-src/src/getpw/getpw.cpp

    r19275 r19279  
    7979  for (i=0; i<3; i++)  { 
    8080#if defined(__WIN32__) 
    81     cout << "Enter password  (will appear on screen): "; 
     81    cerr << "Enter password  (will appear on screen): "; 
    8282    char a[129]; 
    8383    cin.getline(a, 128); 
     
    9595 
    9696#if defined(__WIN32__) 
    97     cout << "Re-enter password: "; 
     97    cerr << "Re-enter password: "; 
    9898    char b[129]; 
    9999    cin.getline(b, 128); 
     
    116116  } 
    117117 
     118  char* p = c; 
     119  while (*p != 0) { 
     120    cerr << "char:" << *p << endl; 
     121    p++; 
     122  } 
     123 
    118124  char *salt = "Tp"; 
    119125  char *pw = crypt (c, salt);