X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=userdir_gpg.py;h=6319d583e59e7645b376bf3fa83a758f526bede5;hb=132e97a3d7ec059eba5a39360a2bf0e6432051f8;hp=69ebe342d6a948e4017990ac3228e03ab790cdc8;hpb=95a2edcec85a3ee7fbe7eb3829948238b235e998;p=mirror%2Fuserdir-ldap.git diff --git a/userdir_gpg.py b/userdir_gpg.py index 69ebe34..6319d58 100644 --- a/userdir_gpg.py +++ b/userdir_gpg.py @@ -17,7 +17,8 @@ import rfc822, time, fcntl, FCNTL, anydbm # General GPG options GPGPath = "gpg" -GPGBasicOptions = ["--no-options","--batch","--load-extension","rsa",\ +# "--load-extension","rsa", +GPGBasicOptions = ["--no-options","--batch", "--no-default-keyring","--always-trust"]; GPGKeyRings = []; GPGSigOptions = ["--output","-"]; @@ -115,9 +116,9 @@ def GetClearSig(Msg,Paranoid = 0): Output = "-----BEGIN PGP SIGNED MESSAGE-----\r\n"; # Semi-evil hack to get the proper hash type inserted in the message if Msg.getparam('micalg') != None: - Output = Output + "Hash: %s\r\n"%(string.upper(Msg.getparam('micalg')[4:])); + Output = Output + "Hash: MD5,SHA1,%s\r\n"%(string.upper(Msg.getparam('micalg')[4:])); Output = Output + "\r\n"; - Output = Output + string.replace(Signed.getvalue(),"\n---","\n- ---") + Signature; + Output = Output + string.replace(Signed.getvalue(),"\n-","\n- -") + Signature; return (Output,1); else: if Paranoid == 0: