Moved SHA256 code to libshared.a.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37235 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-06-23 17:47:07 +00:00
parent 20a11e0220
commit 7a0dca5c54
6 changed files with 10 additions and 7 deletions

View File

@ -20,6 +20,7 @@ StaticLibrary libshared.a :
HashString.cpp
Keymap.cpp
RWLockManager.cpp
SHA256.cpp
ShakeTrackingFilter.cpp
StringForSize.cpp
Variant.cpp

View File

@ -1,15 +1,15 @@
SubDir HAIKU_TOP src tests add-ons kernel file_systems consistency_check ;
UsePrivateHeaders shared ;
SimpleTest generate_hashs :
generate_hashs.cpp
AdaptiveBuffering.cpp
SHA256.cpp
: be $(TARGET_LIBSTDC++)
: be $(TARGET_LIBSTDC++) libshared.a
;
SimpleTest consistency_check :
consistency_check.cpp
AdaptiveBuffering.cpp
SHA256.cpp
: be $(TARGET_LIBSTDC++)
: be $(TARGET_LIBSTDC++) libshared.a
;

View File

@ -18,8 +18,9 @@
#include <OS.h>
#include <Path.h>
#include <SHA256.h>
#include "AdaptiveBuffering.h"
#include "SHA256.h"
//#define TRACE(x...) printf(x)
@ -211,7 +212,7 @@ main(int argc, char** argv)
file_entry entry;
read(file, entry.hash, SHA_DIGEST_LENGTH);
read(file, &entry.node, sizeof(ino_t));
int length;
read(file, &length, sizeof(int));
read(file, buffer, length + 1);

View File

@ -18,8 +18,9 @@
#include <OS.h>
#include <Path.h>
#include <SHA256.h>
#include "AdaptiveBuffering.h"
#include "SHA256.h"
//#define TRACE(x...) printf(x)