]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.cc
unfuzzy various strings in manpage po's
[apt.git] / apt-pkg / contrib / sha1.cc
index b5a6a244064f21dbc2200cb8b1b51b39df929914..298a7799bda9e5c23713958ecf5517f0f079d25b 100644 (file)
 #include <config.h>
 
 #include <apt-pkg/sha1.h>
-#include <apt-pkg/strutl.h>
-#include <apt-pkg/macros.h>
 
+#include <stdint.h>
 #include <string.h>
-#include <unistd.h>
-#include <inttypes.h>
                                                                        /*}}}*/
 
 // SHA1Transform - Alters an existing SHA-1 hash                       /*{{{*/
@@ -246,6 +243,8 @@ bool SHA1Summation::Add(const unsigned char *data,unsigned long long len)
 {
    if (Done)
       return false;
+   if (len == 0)
+      return true;
 
    uint32_t *state = (uint32_t *)State;
    uint32_t *count = (uint32_t *)Count;