gpgme/lang/python/docs/dita/howto/part05/rev-uid.dita
Ben McGinnes f64d259e1d docs: python bindings howto
* Added metadata, author info, version number and xml:lang data.
2018-05-15 13:50:14 +10:00

25 lines
710 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dita PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<dita xml:lang="en-GB">
<topic id="topic_fbb_lyz_5db">
<title>Revoking a User ID</title>
<body>
<p>Revoking a user ID is a fairly similar process, except that it uses the
<codeph>key_revoke_uid</codeph> method.</p>
<p>
<codeblock id="revuid" outputclass="language-python">import gpg
c = gpg.Context()
c.home_dir = "~/.gnupg-dm"
dmfpr = "177B7C25DB99745EE2EE13ED026D2F19E99E63AA"
key = c.get_key(dmfpr, secret=True)
uid = "Danger Mouse &lt;danger.mouse@secret.example.net>"
c.key_revoke_uid(key, uid)
</codeblock>
</p>
</body>
</topic>
</dita>