summaryrefslogtreecommitdiff
path: root/firmware/2lib/2stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/2stub.c')
-rw-r--r--firmware/2lib/2stub.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/firmware/2lib/2stub.c b/firmware/2lib/2stub.c
index 39503a58..0818ed8e 100644
--- a/firmware/2lib/2stub.c
+++ b/firmware/2lib/2stub.c
@@ -25,46 +25,43 @@ void vb2ex_printf(const char *func, const char *fmt, ...)
}
__attribute__((weak))
-int vb2ex_tpm_clear_owner(struct vb2_context *ctx)
+vb2_error_t vb2ex_tpm_clear_owner(struct vb2_context *ctx)
{
fprintf(stderr, "%s: function not implemented\n", __func__);
return VB2_ERROR_EX_UNIMPLEMENTED;
}
__attribute__((weak))
-int vb2ex_read_resource(struct vb2_context *ctx,
- enum vb2_resource_index index,
- uint32_t offset,
- void *buf,
- uint32_t size)
+vb2_error_t vb2ex_read_resource(struct vb2_context *ctx,
+ enum vb2_resource_index index, uint32_t offset,
+ void *buf, uint32_t size)
{
fprintf(stderr, "%s: function not implemented\n", __func__);
return VB2_ERROR_EX_UNIMPLEMENTED;
}
__attribute__((weak))
-int vb2ex_hwcrypto_digest_init(enum vb2_hash_algorithm hash_alg,
- uint32_t data_size)
+vb2_error_t vb2ex_hwcrypto_digest_init(enum vb2_hash_algorithm hash_alg,
+ uint32_t data_size)
{
return VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED;
}
__attribute__((weak))
-int vb2ex_hwcrypto_digest_extend(const uint8_t *buf,
- uint32_t size)
+vb2_error_t vb2ex_hwcrypto_digest_extend(const uint8_t *buf, uint32_t size)
{
return VB2_ERROR_SHA_EXTEND_ALGORITHM; /* Should not be called. */
}
__attribute__((weak))
-int vb2ex_hwcrypto_digest_finalize(uint8_t *digest,
- uint32_t digest_size)
+vb2_error_t vb2ex_hwcrypto_digest_finalize(uint8_t *digest,
+ uint32_t digest_size)
{
return VB2_ERROR_SHA_FINALIZE_ALGORITHM; /* Should not be called. */
}
__attribute__((weak))
-int vb2ex_tpm_set_mode(enum vb2_tpm_mode mode_val)
+vb2_error_t vb2ex_tpm_set_mode(enum vb2_tpm_mode mode_val)
{
fprintf(stderr, "%s: function not implemented\n", __func__);
return VB2_ERROR_EX_UNIMPLEMENTED;