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=1b9732cc8da57fbc339cc3950db102fc73079e30;hp=c70b5c16d4fe117e1399f5ba52d5a368536b3de9;hb=906572ef5c181841210506f6f86039c3256d355b;hpb=587a54ab542cce47d8594d17a615913479177dda diff --git a/userdir_gpg.py b/userdir_gpg.py index c70b5c1..1b9732c 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -119,7 +119,7 @@ def GetClearSig(Msg, Paranoid = 0, lax_multipart = False): Output = "-----BEGIN PGP SIGNED MESSAGE-----\r\n"; # Semi-evil hack to get the proper hash type inserted in the message if Msg.get_param('micalg') != None: - Output = Output + "Hash: MD5,SHA1,%s\r\n"%(Msg.get_param('micalg')[4:].upper()) + Output = Output + "Hash: SHA1,%s\r\n"%(Msg.get_param('micalg')[4:].upper()) Output = Output + "\r\n"; Output = Output + Signed.as_string().replace("\n-","\n- -") + "\n" + Signature.get_payload(decode=True) return (Output,1);