X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=store.cc;h=f87b671e3a1e943c02376f3145c8afdf61d63bec;hp=9d4c8833b7679b1ea6483ee38fe67416f36f146b;hb=15f090d3b2f0bf3994aacd00ab07da3b1f65ea00;hpb=535e98344fdefc4eb174700d8ad3d8228c8ac0f1 diff --git a/store.cc b/store.cc index 9d4c883..f87b671 100644 --- a/store.cc +++ b/store.cc @@ -41,6 +41,7 @@ #include #include +#include "hash.h" #include "store.h" #include "ref.h" #include "util.h" @@ -338,7 +339,8 @@ void LbsObject::checksum() { assert(written); - SHA1Checksum hash; - hash.process(data, data_len); - ref.set_checksum(hash.checksum_str()); + Hash *hash = Hash::New(); + hash->update(data, data_len); + ref.set_checksum(hash->digest_str()); + delete hash; }