setting "requireSigs" added
return default config for undefined values
This commit is contained in:
parent
9ce1fff298
commit
2fe1a0ad8c
1 changed files with 11 additions and 0 deletions
|
@ -82,6 +82,7 @@ local $ENV{'PATH'} = $GPG_EZMLM_BASE;
|
|||
# == define the available (supported) GPG_LIST_OPTIONS ==
|
||||
@GPG_LIST_OPTIONS = (
|
||||
"RequireSub",
|
||||
"requireSigs",
|
||||
"NokeyNocrypt",
|
||||
"signMessages",
|
||||
"encryptToAll",
|
||||
|
@ -203,6 +204,16 @@ sub getconfig {
|
|||
my($self) = @_;
|
||||
my(%options);
|
||||
|
||||
# define defaults
|
||||
$options{signMessages} = 1;
|
||||
$options{NokeyNocrypt} = 0;
|
||||
$options{allowKeySubmission} = 1;
|
||||
$options{encryptToAll} = 0;
|
||||
$options{VerifiedKeyReq} = 0;
|
||||
$options{RequireSub} = 0;
|
||||
$options{requireSigs} = 0;
|
||||
|
||||
|
||||
# Read the config file
|
||||
if(open(CONFIG, "<$self->{'LIST_NAME'}/config")) {
|
||||
# 'config' contains the authorative information
|
||||
|
|
Loading…
Reference in a new issue