OW_NAMESPACE::GetPass Namespace Reference


Functions

OW_COMMON_API String getPass (const String &prompt)
 The getpass function displays a prompt to the standard error output, and reads in a password from /dev/tty.


Function Documentation

String OW_NAMESPACE::GetPass::getPass const String &  prompt  ) 
 

The getpass function displays a prompt to the standard error output, and reads in a password from /dev/tty.

If this file is not accessible, getpass reads from the stan­ dard input.

Getpass turns off character echoing and disables the gen­ eration of signals by tty special characters (interrupt by control-C, suspend by control-Z, etc.) while reading the password.

This is implemented under the OS abstraction layer.

Parameters:
prompt The prompt to be displayed
Returns:
the password

Definition at line 84 of file OW_GetPass.cpp.

References OW_NAMESPACE::String::c_str().


Generated on Thu Feb 9 09:17:13 2006 for openwbem by  doxygen 1.4.6