Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1047)

Unified Diff: src/platform/vboot_reference/tests/verify_data.c

Issue 579009: Fix lost variable declarations due to a botched merge on the previous push. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/vboot_reference/tests/verify_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/tests/verify_data.c
diff --git a/src/platform/vboot_reference/tests/verify_data.c b/src/platform/vboot_reference/tests/verify_data.c
index 0f0dc026891c9edd0db394c7d32f6d294eb8f5be..05399b1881b4240047bd3f457c37be60ed80ceb7 100644
--- a/src/platform/vboot_reference/tests/verify_data.c
+++ b/src/platform/vboot_reference/tests/verify_data.c
@@ -21,9 +21,11 @@
#include "rsa_utility.h"
#include "verify_data.h"
-RSAPublicKey* read_RSAkey(char* input_file, int len) {
+RSAPublicKey* read_RSAkey(char* input_file) {
int key_fd;
- RSAPublicKey* key = NULL;
+ int buf_len;
+ struct stat stat_fd;
+ uint8_t* buf = NULL;
if ((key_fd = open(input_file, O_RDONLY)) == -1) {
fprintf(stderr, "Couldn't open pre-processed key file\n");
@@ -99,7 +101,7 @@ int main(int argc, char* argv[]) {
/* Length of the RSA Signature/RSA Key */
sig_len = siglen_map[algorithm] * sizeof(uint32_t);
- if (!(key = read_RSAkey(argv[2], sig_len)))
+ if (!(key = read_RSAkey(argv[2])))
goto failure;
if (!(signature = read_signature(argv[3], sig_len)))
goto failure;
« no previous file with comments | « src/platform/vboot_reference/tests/verify_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698