Changeset View
Changeset View
Standalone View
Standalone View
b/g10/gpg.c
Context not available. | |||||
oEncryptTo, | oEncryptTo, | ||||
oHiddenEncryptTo, | oHiddenEncryptTo, | ||||
oNoEncryptTo, | oNoEncryptTo, | ||||
oEncryptToDefaultKey, | |||||
oLoggerFD, | oLoggerFD, | ||||
oLoggerFile, | oLoggerFile, | ||||
oUtf8Strings, | oUtf8Strings, | ||||
Context not available. | |||||
ARGPARSE_s_s (oEncryptTo, "encrypt-to", "@"), | ARGPARSE_s_s (oEncryptTo, "encrypt-to", "@"), | ||||
ARGPARSE_s_n (oNoEncryptTo, "no-encrypt-to", "@"), | ARGPARSE_s_n (oNoEncryptTo, "no-encrypt-to", "@"), | ||||
ARGPARSE_s_s (oHiddenEncryptTo, "hidden-encrypt-to", "@"), | ARGPARSE_s_s (oHiddenEncryptTo, "hidden-encrypt-to", "@"), | ||||
ARGPARSE_s_n (oEncryptToDefaultKey, "encrypt-to-default-key", "@"), | |||||
ARGPARSE_s_s (oLocalUser, "local-user", | ARGPARSE_s_s (oLocalUser, "local-user", | ||||
N_("|USER-ID|use USER-ID to sign or decrypt")), | N_("|USER-ID|use USER-ID to sign or decrypt")), | ||||
Context not available. | |||||
sl = add_to_strlist2( &remusr, pargs.r.ret_str, utf8_strings ); | sl = add_to_strlist2( &remusr, pargs.r.ret_str, utf8_strings ); | ||||
sl->flags = 1|2; | sl->flags = 1|2; | ||||
break; | break; | ||||
case oEncryptToDefaultKey: | |||||
opt.encrypt_to_default_key = 1; | |||||
break; | |||||
case oRecipient: /* store the recipient */ | case oRecipient: /* store the recipient */ | ||||
add_to_strlist2( &remusr, pargs.r.ret_str, utf8_strings ); | add_to_strlist2( &remusr, pargs.r.ret_str, utf8_strings ); | ||||
any_explicit_recipient = 1; | any_explicit_recipient = 1; | ||||
Context not available. | |||||
break; | break; | ||||
} | } | ||||
if (opt.encrypt_to_default_key) | |||||
{ | |||||
const char *default_key = parse_def_secret_key (ctrl); | |||||
if (default_key) | |||||
{ | |||||
sl = add_to_strlist2 (&remusr, default_key, utf8_strings); | |||||
sl->flags = 1; | |||||
} | |||||
else if (opt.def_secret_key) | |||||
log_info (_("--encrypt-to-default-key specified, but no valid default keys specified.\n")); | |||||
else | |||||
log_info (_("--encrypt-to-default-key specified, but --default-key not specified.\n")); | |||||
} | |||||
/* The command dispatcher. */ | /* The command dispatcher. */ | ||||
switch( cmd ) | switch( cmd ) | ||||
{ | { | ||||
Context not available. |