Skip to content

Commit

Permalink
fix key_pair_new usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Nov 20, 2024
1 parent 50b6306 commit 543d0f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions biscuit-capi/tests/capi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod capi {
int main() {
char *seed = "abcdefghabcdefghabcdefghabcdefgh";

KeyPair * root_kp = key_pair_new((const uint8_t *) seed, strlen(seed));
KeyPair * root_kp = key_pair_new((const uint8_t *) seed, strlen(seed), 0);
printf("key_pair creation error? %s\n", error_message());
PublicKey* root = key_pair_public(root_kp);

Expand All @@ -34,7 +34,7 @@ mod capi {

char *seed2 = "ijklmnopijklmnopijklmnopijklmnop";

KeyPair * kp2 = key_pair_new((const uint8_t *) seed2, strlen(seed2));
KeyPair * kp2 = key_pair_new((const uint8_t *) seed2, strlen(seed2), 0);

Biscuit* b2 = biscuit_append_block(biscuit, bb, kp2);
printf("biscuit append error? %s\n", error_message());
Expand Down Expand Up @@ -157,7 +157,7 @@ biscuit block 0 context: (null)
uint8_t * pub_buf = malloc(32);


KeyPair * kp = key_pair_new((const uint8_t *) seed, strlen(seed));
KeyPair * kp = key_pair_new((const uint8_t *) seed, strlen(seed), 0);
printf("key_pair creation error? %s\n", error_message());
PublicKey* pubkey = key_pair_public(kp);

Expand Down

0 comments on commit 543d0f1

Please sign in to comment.