Verified boot wrapper - add stub implementations for host
This is part 2 of the wrapper API refactor. It adds stub
implementations for the host, and changes the host-side utilities to
use them. Firmware implementation is unchanged in this CL (other than
a few updates to macros).
BUG=chromium_os:16997
TEST=make && make runtests
Change-Id: I63989bd11de1f2239ddae256beaccd31bfb5acef
Reviewed-on: http://gerrit.chromium.org/gerrit/3256
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Tested-by: Randall Spangler <rspangler@chromium.org>
diff --git a/utility/signature_digest_utility.c b/utility/signature_digest_utility.c
index bf23ebd..85ba0c9 100644
--- a/utility/signature_digest_utility.c
+++ b/utility/signature_digest_utility.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
@@ -12,9 +12,10 @@
#include <stdlib.h>
#include "file_keys.h"
+#include "host_common.h"
#include "padding.h"
#include "signature_digest.h"
-#include "utility.h"
+
int main(int argc, char* argv[]) {
int algorithm = -1;
@@ -48,7 +49,7 @@
if(signature_digest &&
1 != fwrite(signature_digest, signature_digest_len, 1, stdout))
error_code = -1;
- Free(signature_digest);
- Free(buf);
+ free(signature_digest);
+ free(buf);
return error_code;
}