|
MagickCore 7.0.10
|
#include "wizard/studio.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/memory_.h"#include "wizard/passphrase.h"#include "wizard/utility-private.h"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 StringInfo * | GetPassphrase (ExceptionInfo *exception) |
Variables | |
| static volatile sig_atomic_t | signal_number = 0 |
| #define _PATH_TTY "/dev/tty" |
Definition at line 62 of file passphrase.c.
| #define _T_FLUSH (TCSAFLUSH) |
Definition at line 55 of file passphrase.c.
| enum PassphraseMode |
| Enumerator | |
|---|---|
| EchoOffMode | |
| EchoOnMode | |
| RequireTTYMode | |
| ForceLowerMode | |
| ForceUpperMode | |
| SevenBitMode | |
| StdinMode | |
Definition at line 67 of file passphrase.c.
| WizardExport StringInfo * GetPassphrase | ( | ExceptionInfo * | exception | ) |
Definition at line 294 of file passphrase.c.
References AcquireStringInfo(), AuthenticateError, CompareStringInfo(), DestroyStringInfo(), EchoOffMode, FormatLocaleString(), GetPhrase(), GetStringInfoLength(), GetWizardModule, PrintWizardString(), SetStringInfoLength(), STDERR_FILENO, ThrowWizardException(), WizardFalse, WizardPathExtent, and WizardTrue.
Referenced by AuthenticateSecretKey(), and GenerateSecretKey().
|
static |
Definition at line 126 of file passphrase.c.
References _PATH_TTY, _T_FLUSH, CopyWizardMemory(), EchoOnMode, ForceLowerMode, ForceUpperMode, GetPhrase(), GetStringInfoDatum(), GetStringInfoLength(), open_utf8(), RequireTTYMode, SetStringInfoLength(), SevenBitMode, signal_number, STDERR_FILENO, STDIN_FILENO, StdinMode, WizardFalse, WizardPathExtent, and WizardTrue.
Referenced by GetPassphrase(), and GetPhrase().
|
static |
Definition at line 121 of file passphrase.c.
References signal_number.
|
static |
Definition at line 82 of file passphrase.c.
Referenced by GetPhrase(), RegisterWizardSignalHandler(), SetWizardSignalHandler(), SignalHandler(), and WizardSignalHandler().