Skip to content

Commit

Permalink
Prevent warning from being printed in gpg2.1
Browse files Browse the repository at this point in the history
The ignored --secret-keyring option causes a warning to be printed
to the user.

See: https://dev.gnupg.org/T2749
  • Loading branch information
o committed Jun 13, 2022
1 parent 5cc883f commit 0a3004c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Horde/Crypt/Pgp/Backend/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,9 @@ protected function _createKeyring($type = 'public')
return '--keyring ' . $this->_publicKeyring;

case 'private':
if ($this->_gnupg21) {
return '';
}
if (empty($this->_privateKeyring)) {
$this->_privateKeyring = $this->_createTempFile('horde-pgp');
}
Expand Down

0 comments on commit 0a3004c

Please sign in to comment.