77 {
"+authenticate", 1L },
78 {
"-authenticate", 1L },
93 {
"+key-length", 1L },
94 {
"-key-length", 1L },
105 {
"+properties", 1L },
106 {
"-properties", 1L },
113 { (
char *) NULL, 0L }
143 { (
char *) NULL, 0L }
160 { (
char *) NULL, 0L }
167 {
"None", (ssize_t)
NoHash },
296 return((
char **) NULL);
297 for (i=0; option_info[i].
mnemonic != (
const char *) NULL; i++) ;
299 if (options == (
char **) NULL)
301 for (i=0; option_info[i].
mnemonic != (
const char *) NULL; i++)
303 options[i]=(
char *) NULL;
332 assert(option != (
const char *) NULL);
333 if ((*option !=
'-') && (*option !=
'+'))
335 if (strlen(option) == 1)
338 if (isalpha((
int) ((
unsigned char) *option)) == 0)
379 if (file == (FILE *) NULL)
384 for (i=0; option_info[i].
mnemonic != (
char *) NULL; i++)
386 if ((i == 0) && (strcmp(option_info[i].mnemonic,
"Undefined") == 0))
388 (void) fprintf(file,
"%s\n",option_info[i].mnemonic);
450 for (p=options; p != (
char *) NULL; p=strchr(p,
','))
452 while (((isspace((
int) ((
unsigned char) *p)) != 0) || (*p ==
',')) &&
455 if ((*p ==
'-') || (*p ==
'+'))
461 while (((isspace((
int) ((
unsigned char) *p)) == 0) && (*p !=
',')) &&
469 for (i=0; option_info[i].
mnemonic != (
char *) NULL; i++)
474 option_types=option_types &~ option_info[i].type;
476 option_types=option_types | option_info[i].
type;
480 if ((option_info[i].mnemonic == (
char *) NULL) &&
481 ((strchr(token+1,
'-') != (
char *) NULL) ||
482 (strchr(token+1,
'_') != (
char *) NULL)))
484 while ((q=strchr(token+1,
'-')) != (
char *) NULL)
486 while ((q=strchr(token+1,
'_')) != (
char *) NULL)
488 for (i=0; option_info[i].
mnemonic != (
char *) NULL; i++)
492 option_types=option_types &~ option_info[i].type;
494 option_types=option_types | option_info[i].
type;
498 if (option_info[i].mnemonic == (
char *) NULL)
503 return(option_types);
542 return((
const char *) NULL);
543 for (i=0; option_info[i].
mnemonic != (
const char *) NULL; i++)
544 if (type == option_info[i].type)
546 if (option_info[i].mnemonic == (
const char *) NULL)
548 return(option_info[i].mnemonic);
@ SecretAuthenticateMethod
@ PublicAuthenticateMethod
#define ThrowFatalException(severity, tag)
WizardExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
static const OptionInfo HashOptions[]
static const OptionInfo ResourceOptions[]
WizardExport WizardBooleanType ListWizardOptions(FILE *file, const WizardOption option, ExceptionInfo *wizard_unused(exception))
static const OptionInfo CipherOptions[]
static const OptionInfo ModeOptions[]
static const OptionInfo EntropyLevelOptions[]
static const OptionInfo EndianOptions[]
WizardExport char ** GetWizardOptions(const WizardOption option)
static const OptionInfo CommandOptions[]
WizardExport ssize_t ParseWizardOption(const WizardOption option, const WizardBooleanType list, const char *options)
static const OptionInfo AuthenticateOptions[]
static const OptionInfo * GetOptionInfo(const WizardOption option)
static const OptionInfo EntropyOptions[]
WizardExport WizardBooleanType IsWizardOption(const char *option)
static const OptionInfo KeyLengthOptions[]
static const OptionInfo DataTypeOptions[]
WizardExport const char * WizardOptionToMnemonic(const WizardOption option, const ssize_t type)
static const OptionInfo ListOptions[]
static const OptionInfo LogWizardEventOptions[]
@ WizardAuthenticateOptions
@ WizardEntropyLevelOptions
WizardExport int LocaleCompare(const char *p, const char *q)
WizardExport char * AcquireString(const char *source)
WizardExport size_t CopyWizardString(char *destination, const char *source, const size_t length)