summaryrefslogtreecommitdiff
path: root/futility/vb2_helper.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-03-26 15:31:54 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-31 06:28:05 +0000
commit35c69cc159af325261a1365cce28f6ecf106307f (patch)
tree7e71d18af8d4eec7bfc1d38ad3911bdc345947d7 /futility/vb2_helper.c
parent45ecc3d44746531ab6792442dc0b2a71f5a712f0 (diff)
downloadvboot-35c69cc159af325261a1365cce28f6ecf106307f.tar.gz
futility: put the recognizer functions in file_type.inc
This is preparation for a refactoring of how files are traversed. file_type.inc will specify functions to recognize, show, or sign each type of file. This change puts the recognizer functions in file_type.inc, but just stubs out the show and sign commands. BUG=chromium:231574 BRANCH=none TEST=make runtests Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: I1596a21319a8fb1182537abdf9be0196bef4b84b Reviewed-on: https://chromium-review.googlesource.com/262893 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'futility/vb2_helper.c')
-rw-r--r--futility/vb2_helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/futility/vb2_helper.c b/futility/vb2_helper.c
index 686b8333..35ca4780 100644
--- a/futility/vb2_helper.c
+++ b/futility/vb2_helper.c
@@ -23,7 +23,7 @@
#include "futility.h"
#include "traversal.h"
-enum futil_file_type recognize_vb2_key(uint8_t *buf, uint32_t len)
+enum futil_file_type ft_recognize_vb2_key(uint8_t *buf, uint32_t len)
{
struct vb2_public_key pubkey;
struct vb2_private_key *privkey = 0;
@@ -168,7 +168,7 @@ static RSA *rsa_from_buffer(uint8_t *buf, uint32_t len)
return rsa_key;
}
-enum futil_file_type recognize_pem(uint8_t *buf, uint32_t len)
+enum futil_file_type ft_recognize_pem(uint8_t *buf, uint32_t len)
{
RSA *rsa_key = rsa_from_buffer(buf, len);
@@ -189,7 +189,7 @@ int futil_cb_show_pem(struct futil_traverse_state_s *state)
printf("Private Key file: %s\n", state->in_filename);
- /* We're called only after recognize_pem, so this should work. */
+ /* We're called only after ft_recognize_pem, so this should work. */
rsa_key = rsa_from_buffer(state->my_area->buf, state->my_area->len);
if (!rsa_key)
DIE;