X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=userdir_gpg.py;fp=userdir_gpg.py;h=cf9cdbc72d999032d3938d913a42f6af3ca6cdbb;hp=1140d447ec6bab861511fdf099e763efa192adf8;hb=bfb0c6a2273f10ebffd6dfa15a45ae7f5671b467;hpb=7e174bddd965ac6a8f6371c92f97ac73b686eb3d diff --git a/userdir_gpg.py b/userdir_gpg.py index 1140d44..cf9cdbc 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -254,6 +254,7 @@ def GPGWriteFilter(Program,Options,Message): # It is best if the recipient is specified using the hex key fingerprint # of the target, ie 0x64BE1319CCF6D393BF87FF9358A6D4EE def GPGEncrypt(Message,To,PGP2): + Error = "KeyringError" # Encrypt using the PGP5 block encoding and with the PGP5 option set. # This will handle either RSA or DSA/DH asymetric keys. # In PGP2 compatible mode IDEA and rfc1991 encoding are used so that