Skip to content

Commit 08f5112

Browse files
author
David Saada
committed
Remove the require integrity flag
1 parent 0e50dc3 commit 08f5112

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.mbed
33
projectfiles
44
*.py*
5+
BUILD/

main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ void kv_store_global_api_example()
7575
/* Now that you know the data value size of this key,
7676
* allocate a buffer with matching size and get the value data */
7777
printf("kv_get first key\n");
78-
char *kv_first_value_out = new char[info.size+1];
79-
memset(kv_first_value_out, 0, info.size+1);
78+
char *kv_first_value_out = new char[info.size + 1];
79+
memset(kv_first_value_out, 0, info.size + 1);
8080
res = kv_get(kv_key_in, kv_first_value_out, info.size, &actual_size);
8181
printf("kv_get -> %d\n", err_code(res));
8282
printf("kv_get key: %s\n", kv_key_in);
@@ -90,9 +90,9 @@ void kv_store_global_api_example()
9090
printf("kv_set -> %d\n", err_code(res));
9191

9292
/* Set an authenticated-encrypted 'Dummy' key with Replay protection */
93-
printf("kv_set third key with Confidentiality, Integrity and Replay Protection flags\n");
93+
printf("kv_set third key with Confidentiality and Replay Protection flags\n");
9494
res = kv_set("/kv/dummy_auth_enc_key", "auth_enc_value", strlen("auth_enc_value"),
95-
KV_REQUIRE_CONFIDENTIALITY_FLAG|KV_REQUIRE_INTEGRITY_FLAG|KV_REQUIRE_REPLAY_PROTECTION_FLAG);
95+
KV_REQUIRE_CONFIDENTIALITY_FLAG | KV_REQUIRE_REPLAY_PROTECTION_FLAG);
9696
printf("kv_set -> %d\n", err_code(res));
9797

9898
/* Set 2 non-dummy 'Real' KV pairs */

mbed-os.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/mbed-os/#f9d07f373f087b0162cbfe1e92049a68898abd2b
1+
https://github.com/ARMmbed/mbed-os/#d9625811c9193ac3ab36a969bab93e28dac03776

0 commit comments

Comments
 (0)