projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix hexdigest() call
[mirror/userdir-ldap.git]
/
ud-mailgate
diff --git
a/ud-mailgate
b/ud-mailgate
index
36f1cc3
..
fb5b7ba
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-8,10
+8,7
@@
import userdir_gpg, userdir_ldap, sys, traceback, time, ldap, os, commands
import pwd, tempfile
import hmac
import userdir_gpg, userdir_ldap, sys, traceback, time, ldap, os, commands
import pwd, tempfile
import hmac
-try:
- import hashlib
-except ImportError:
- import sha as sha1_module
+import sha as sha1_module
from userdir_gpg import *
from userdir_ldap import *
from userdir_gpg import *
from userdir_ldap import *
@@
-100,10
+97,10
@@
DelItems = {"c": None,
def make_hmac(str):
F = open(PassDir+"/key-hmac","r");
def make_hmac(str):
F = open(PassDir+"/key-hmac","r");
- key = F.readline()
+ key = F.readline()
.strip()
F.close();
F.close();
- return hmac.new(key, str, sha1_module).hexdigest
+ return hmac.new(key, str, sha1_module).hexdigest
()