Skip to content
Snippets Groups Projects
Commit e1025780 authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

uniform usage of OpenPGP instead of GPG or PGP

parent 236c5141
Branches
Tags
No related merge requests found
...@@ -35,7 +35,7 @@ passwords.""" ...@@ -35,7 +35,7 @@ passwords."""
# override default options to allow passing a keyid # override default options to allow passing a keyid
usage = _('%prog [options] <keyid>') usage = _('%prog [options] <keyid>')
epilog = _('<keyid>: a GPG fingerprint or key id') epilog = _('<keyid>: a OpenPGP fingerprint or key id')
def parse_args(self, args): def parse_args(self, args):
"""override main parsing: we absolutely need an argument""" """override main parsing: we absolutely need an argument"""
......
...@@ -266,7 +266,7 @@ class MonkeysignScan(gtk.Window): ...@@ -266,7 +266,7 @@ class MonkeysignScan(gtk.Window):
swin = gtk.ScrolledWindow() swin = gtk.ScrolledWindow()
swin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) swin.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
swin.add_with_viewport(self.qrcode) swin.add_with_viewport(self.qrcode)
label = gtk.Label(_('This is a QR-code version of your PGP fingerprint. Scan this with another monkeysign to transfer your fingerprint.')) label = gtk.Label(_('This is a QR-code version of your OpenPGP fingerprint. Scan this with another Monkeysign to transfer your fingerprint.'))
label.set_line_wrap(True) label.set_line_wrap(True)
self.qrcodewidget.pack_start(label, False) self.qrcodewidget.pack_start(label, False)
self.qrcodewidget.pack_start(swin) self.qrcodewidget.pack_start(swin)
......
...@@ -266,7 +266,7 @@ work. ...@@ -266,7 +266,7 @@ work.
# export public key material associated with detected private # export public key material associated with detected private
if not self.tmpkeyring.import_data(self.keyring.export_data(self.signing_key.fpr)): if not self.tmpkeyring.import_data(self.keyring.export_data(self.signing_key.fpr)):
self.abort(_('could not find public key material, do you have a GPG key?')) self.abort(_('could not find public key material, do you have an OpenPGP key?'))
def sign_key(self): def sign_key(self):
"""sign the key uids, as specified""" """sign the key uids, as specified"""
...@@ -393,8 +393,8 @@ mail. ...@@ -393,8 +393,8 @@ mail.
# the email body # the email body
body = _(""" body = _("""
Please find attached your signed PGP key. You can import the signed Please find attached your signed OpenPGP key. You can import the
key by running each through `gpg --import`. signed key by running each through `gpg --import`.
If you have multiple user ids, each signature was sent in a separate If you have multiple user ids, each signature was sent in a separate
email to each user id. email to each user id.
...@@ -491,7 +491,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t ...@@ -491,7 +491,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
keypart = MIMEBase('application', 'pgp-keys', name=filename) keypart = MIMEBase('application', 'pgp-keys', name=filename)
keypart.add_header('Content-Disposition', 'attachment', filename=filename) keypart.add_header('Content-Disposition', 'attachment', filename=filename)
keypart.add_header('Content-Transfer-Encoding', '7bit') keypart.add_header('Content-Transfer-Encoding', '7bit')
keypart.add_header('Content-Description', (_('signed PGP Key %s, uid %s') % (self.keyfpr, self.recipient.decode('utf-8')))) keypart.add_header('Content-Description', (_('signed OpenPGP Key %s, uid %s') % (self.keyfpr, self.recipient.decode('utf-8'))))
keypart.set_payload(self.tmpkeyring.export_data(self.keyfpr)) keypart.set_payload(self.tmpkeyring.export_data(self.keyfpr))
return MIMEMultipart('mixed', None, [text, keypart]) return MIMEMultipart('mixed', None, [text, keypart])
...@@ -504,7 +504,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t ...@@ -504,7 +504,7 @@ mailto: who to send the mail to (usually similar to recipient, but can be used t
p2.add_header('Content-Transfer-Encoding', '7bit') p2.add_header('Content-Transfer-Encoding', '7bit')
p2.set_payload(encrypted) p2.set_payload(encrypted)
msg = MIMEMultipart('encrypted', None, [p1, p2], protocol="application/pgp-encrypted") msg = MIMEMultipart('encrypted', None, [p1, p2], protocol="application/pgp-encrypted")
msg.preamble = _('This is a multi-part message in PGP/MIME format...') msg.preamble = _('This is a multi-part message in OpenPGP/MIME format...')
msg['Subject'] = Header(self.subject.encode('utf-8'), 'UTF-8').encode() msg['Subject'] = Header(self.subject.encode('utf-8'), 'UTF-8').encode()
name, address = parseaddr(self.mailfrom) name, address = parseaddr(self.mailfrom)
msg['From'] = formataddr((Header(name.encode('utf-8'), 'UTF-8').encode(), address)) msg['From'] = formataddr((Header(name.encode('utf-8'), 'UTF-8').encode(), address))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment