Skip to content

Commit

Permalink
QKD_KEY_ID_SIZE 35
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrotega committed Nov 12, 2024
1 parent 2be1a1f commit b7d3aeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/libstrongswan/plugins/qkd/qkd_etsi_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ bool qkd_set_key_id(qkd_handle_t handle, chunk_t key_id)

chunk_clear(&handle->key_id);
handle->key_id = chunk_clone(key_id);
DBG1(DBG_LIB, "\t Bob received ID: %s\n", handle->key_id.ptr);
DBG1(DBG_LIB, "\t Bob received ID: %s", handle->key_id.ptr);
DBG1(DBG_LIB, "\t Bob received ID [key_id]: %s\n", key_id.ptr);

//qkd_print_key_id("Bob received", key_id);
return TRUE;
Expand Down
3 changes: 1 addition & 2 deletions src/libstrongswan/plugins/qkd/qkd_kex.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ METHOD(key_exchange_t, get_public_key, bool,
}
*value = chunk_clone(key_id);
chunk_clear(&key_id);
DBG1(DBG_LIB, "\tKey ID chunk [1]: %s", key_id);
DBG1(DBG_LIB, "\tKey ID chunk [2]: %s", *value);

return TRUE;
}
else
Expand Down

0 comments on commit b7d3aeb

Please sign in to comment.