sha512.c, etc.: Provide `sha512' as a hash function for signing.
[secnet] / make-secnet-sites
index 5f271e3..f3beffa 100755 (executable)
@@ -97,7 +97,7 @@ class hash:
        "A choice of hash function"
        def __init__(self,w):
                self.ht=w[1]
-               if (self.ht!='md5' and self.ht!='sha1'):
+               if (self.ht not in ('md5', 'sha1', 'sha512')):
                        complain("unknown hash type %s"%(self.ht))
        def __str__(self):
                return '%s'%(self.ht)