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

Unified Diff: host/lib/host_key.c

Issue 2812034: Adding --repack and --headeronly options to vbutil_kernel (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: oops. Created 10 years, 6 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 | « host/include/host_key.h ('k') | host/linktest/main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/lib/host_key.c
diff --git a/host/lib/host_key.c b/host/lib/host_key.c
index da350fd46c2561c63701fff2d9152071eda986c4..fd25afd993e189fa7db495b8c7db4e74c33f494c 100644
--- a/host/lib/host_key.c
+++ b/host/lib/host_key.c
@@ -24,27 +24,27 @@
#include "vboot_common.h"
-VbPrivateKey* PrivateKeyRead(const char* filename, uint64_t algorithm) {
+VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm) {
VbPrivateKey* key;
RSA* rsa_key;
FILE* f;
if (algorithm >= kNumAlgorithms) {
- debug("PrivateKeyRead() called with invalid algorithm!\n");
+ debug("%s() called with invalid algorithm!\n", __FUNCTION__);
return NULL;
}
/* Read private key */
f = fopen(filename, "r");
if (!f) {
- debug("PrivateKeyRead(): Couldn't open key file: %s\n", filename);
+ debug("%s(): Couldn't open key file: %s\n", __FUNCTION__, filename);
return NULL;
}
rsa_key = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL);
fclose(f);
if (!rsa_key) {
- debug("PrivateKeyRead(): Couldn't read private key from file: %s\n",
+ debug("%s(): Couldn't read private key from file: %s\n", __FUNCTION__,
filename);
return NULL;
}
« no previous file with comments | « host/include/host_key.h ('k') | host/linktest/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698