WizardsToolkit  1.0.7
passphrase.c File Reference
Include dependency graph for passphrase.c:

Go to the source code of this file.

Defines

#define _T_FLUSH   (TCSAFLUSH)
#define _PATH_TTY   "/dev/tty"

Enumerations

enum  PassphraseMode {
  EchoOffMode = 0x00, EchoOnMode = 0x01, RequireTTYMode = 0x02, ForceLowerMode = 0x04,
  ForceUpperMode = 0x08, SevenBitMode = 0x10, StdinMode = 0x20
}

Functions

static void SignalHandler (int signal)
static WizardBooleanType GetPhrase (const char *prompt, PassphraseMode flags, StringInfo *phrase)
WizardExport StringInfoGetPassphrase (ExceptionInfo *exception)

Variables

static volatile sig_atomic_t signal_number = 0

Define Documentation

#define _PATH_TTY   "/dev/tty"

Definition at line 62 of file passphrase.c.

Referenced by GetPhrase().

#define _T_FLUSH   (TCSAFLUSH)

Definition at line 55 of file passphrase.c.

Referenced by GetPhrase().


Enumeration Type Documentation

Enumerator:
EchoOffMode 
EchoOnMode 
RequireTTYMode 
ForceLowerMode 
ForceUpperMode 
SevenBitMode 
StdinMode 

Definition at line 67 of file passphrase.c.


Function Documentation

static void SignalHandler ( int  signal) [static]

Definition at line 121 of file passphrase.c.

References signal_number.


Variable Documentation

volatile sig_atomic_t signal_number = 0 [static]

Definition at line 82 of file passphrase.c.

Referenced by SignalHandler(), GetPhrase(), and WizardSignalHandler().