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:
parent
20a11e0220
commit
7a0dca5c54
|
@ -20,6 +20,7 @@ StaticLibrary libshared.a :
|
|||
HashString.cpp
|
||||
Keymap.cpp
|
||||
RWLockManager.cpp
|
||||
SHA256.cpp
|
||||
ShakeTrackingFilter.cpp
|
||||
StringForSize.cpp
|
||||
Variant.cpp
|
||||
|
|
|
@ -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
|
||||
;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
#include <OS.h>
|
||||
#include <Path.h>
|
||||
|
||||
#include <SHA256.h>
|
||||
|
||||
#include "AdaptiveBuffering.h"
|
||||
#include "SHA256.h"
|
||||
|
||||
|
||||
//#define TRACE(x...) printf(x)
|
||||
|
|
Loading…
Reference in New Issue