MagickCore 7.0.10
passphrase.c File Reference
Include dependency graph for passphrase.c:

Go to the source code of this file.

Macros

#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
 

Macro Definition Documentation

◆ _PATH_TTY

#define _PATH_TTY   "/dev/tty"

Definition at line 62 of file passphrase.c.

◆ _T_FLUSH

#define _T_FLUSH   (TCSAFLUSH)

Definition at line 55 of file passphrase.c.

Enumeration Type Documentation

◆ PassphraseMode

Enumerator
EchoOffMode 
EchoOnMode 
RequireTTYMode 
ForceLowerMode 
ForceUpperMode 
SevenBitMode 
StdinMode 

Definition at line 67 of file passphrase.c.

Function Documentation

◆ GetPassphrase()

◆ GetPhrase()

◆ SignalHandler()

static void SignalHandler ( int  signal)
static

Definition at line 121 of file passphrase.c.

References signal_number.

Variable Documentation

◆ signal_number

volatile sig_atomic_t signal_number = 0
static