Skip to content

Commit

Permalink
Add salt to fp/r POST handler
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankZRS committed Mar 4, 2024
1 parent 825e000 commit d2f8f41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/oc_knx_sec.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,13 @@ oc_core_auth_at_post_handler(oc_request_t *request,
// oc_string(object->value.string),
// oc_string_len(object->value.string));
//}
if (object->iname == 5) {
// salt
oc_free_string(&(g_at_entries[index].osc_salt));
oc_new_string(&g_at_entries[index].osc_salt,
oc_string(object->value.string),
oc_string_len(object->value.string));
}
} else if (object->type == OC_REP_INT) {
id_only = false;
if (object->iname == 38) {
Expand Down

0 comments on commit d2f8f41

Please sign in to comment.