[pgp] Fix typos
This commit is contained in:
@@ -86,7 +86,7 @@ class PGP(gnupg.GPG, metaclass=Singleton):
|
|||||||
raise SignError(result.status)
|
raise SignError(result.status)
|
||||||
|
|
||||||
def verify(self, payload, signed):
|
def verify(self, payload, signed):
|
||||||
# Hash algorithm is not transfered in the signed
|
# Hash algorithm is not transferred in the signed
|
||||||
# presence stanza so try all algorithms.
|
# presence stanza so try all algorithms.
|
||||||
# Text name for hash algorithms from RFC 4880 - section 9.4
|
# Text name for hash algorithms from RFC 4880 - section 9.4
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ class PGPLegacy(BaseModule):
|
|||||||
def sign_presence(self, presence, status):
|
def sign_presence(self, presence, status):
|
||||||
key_data = self.get_own_key_data()
|
key_data = self.get_own_key_data()
|
||||||
if key_data is None:
|
if key_data is None:
|
||||||
self._log.warning('No own key id found, cant sign presence')
|
self._log.warning('No own key id found, can’t sign presence')
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user