summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2gbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/include/2gbb.h')
-rw-r--r--firmware/2lib/include/2gbb.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/firmware/2lib/include/2gbb.h b/firmware/2lib/include/2gbb.h
index 6ad0eb3b..4e4bd906 100644
--- a/firmware/2lib/include/2gbb.h
+++ b/firmware/2lib/include/2gbb.h
@@ -24,10 +24,9 @@ struct vb2_workbuf;
* @param wb Workbuf for data storage.
* @return VB2_SUCCESS, or error code on error.
*/
-int vb2_gbb_read_root_key(struct vb2_context *ctx,
- struct vb2_packed_key **keyp,
- uint32_t *size,
- struct vb2_workbuf *wb);
+vb2_error_t vb2_gbb_read_root_key(struct vb2_context *ctx,
+ struct vb2_packed_key **keyp, uint32_t *size,
+ struct vb2_workbuf *wb);
/**
* Read the recovery key from the GBB, and store it onto the given workbuf.
@@ -40,9 +39,8 @@ int vb2_gbb_read_root_key(struct vb2_context *ctx,
* @param wb Workbuf for data storage.
* @return VB2_SUCCESS, or error code on error.
*/
-int vb2_gbb_read_recovery_key(struct vb2_context *ctx,
- struct vb2_packed_key **keyp,
- uint32_t *size,
- struct vb2_workbuf *wb);
+vb2_error_t vb2_gbb_read_recovery_key(struct vb2_context *ctx,
+ struct vb2_packed_key **keyp,
+ uint32_t *size, struct vb2_workbuf *wb);
#endif /* VBOOT_REFERENCE_VBOOT_2GBB_H_ */