Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
Fix key type selection
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Jun 4, 2016
1 parent 69fb45d commit 83d57c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/hangar/src/Commands/Sign.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function fire(array $args = []): bool
$level = KeyFactory::INTERACTIVE;
break;
case 'm':
case 'signing':
case 'moderate':
$level = KeyFactory::MODERATE;
break;
Expand All @@ -49,14 +50,15 @@ public function fire(array $args = []): bool
break;
}
} elseif (isset($this->config['keytype'])) {
switch (isset($this->config['keytype'])) {
switch ($this->config['keytype']) {
case 'fast':
case 'i':
case 'interactive':
case 'weak':
$level = KeyFactory::INTERACTIVE;
break;
case 'm':
case 'signing':
case 'moderate':
$level = KeyFactory::MODERATE;
break;
Expand Down

0 comments on commit 83d57c8

Please sign in to comment.