summaryrefslogtreecommitdiff
path: root/tests/vb20_common2_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vb20_common2_tests.c')
-rw-r--r--tests/vb20_common2_tests.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/vb20_common2_tests.c b/tests/vb20_common2_tests.c
index 623633d6..da5b2028 100644
--- a/tests/vb20_common2_tests.c
+++ b/tests/vb20_common2_tests.c
@@ -154,8 +154,7 @@ int test_algorithm(int key_algorithm, const char *keys_dir)
}
sprintf(filename, "%s/key_rsa%d.keyb", keys_dir, rsa_len);
- key1 = (struct vb2_packed_key *)
- PublicKeyReadKeyb(filename, key_algorithm, 1);
+ key1 = vb2_read_packed_keyb(filename, key_algorithm, 1);
if (!key1) {
fprintf(stderr, "Error reading public_key: %s\n", filename);
return 1;