Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and use Brainkey v2 #157

Merged
merged 7 commits into from
Feb 22, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
User wrapped sprintf (lib, comm_kit)
  • Loading branch information
SergeySeroshtan committed Feb 19, 2021
commit d7292816939e13c271f48d16a387dfc4fda62444
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<class name="messenger contacts" scope="private">
Provides access to the messenger contacts endpoints.

<require header="stdio.h" is_system="1"/>
<require class="data" project="common"/>
<require class="buffer" project="common"/>
<require class="str mutable" project="common"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
<require class="virgil http client" project="core sdk"/>
<require class="keyknox client" project="keyknox sdk"/>

<require header="stdio.h" is_system="1"/>


<dependency name="random" interface="random" project="foundation"/>
<dependency name="auth" class="messenger auth"/>
Expand Down
1 change: 0 additions & 1 deletion library/sdk/comm-kit/src/vssq_messenger_contacts.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include "vssq_messenger_user_private.h"
#include "vssq_contact_utils.h"

#include <stdio.h>
#include <virgil/crypto/common/vsc_data.h>
#include <virgil/crypto/common/vsc_buffer.h>
#include <virgil/crypto/common/vsc_str_mutable.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
#include <virgil/sdk/core/vssc_json_object.h>
#include <virgil/sdk/core/vssc_virgil_http_client.h>
#include <virgil/sdk/keyknox/vssk_keyknox_client.h>
#include <stdio.h>
#include <virgil/sdk/keyknox/vssk_keyknox_entry.h>
#include <virgil/crypto/common/vsc_str.h>

Expand Down Expand Up @@ -799,7 +798,7 @@ vssq_messenger_group_epoch_keyknox_storage_keyknox_pack_group_epoch(
const size_t epoch_num = vssq_messenger_group_epoch_num(group_epoch);
VSSQ_ASSERT(epoch_num < 1000);

snprintf(epoch_num_chars, sizeof(epoch_num_chars) - 1, "%zu", epoch_num);
vssq_snprintf(epoch_num_chars, sizeof(epoch_num_chars) - 1, "%zu", epoch_num);
vsc_str_t epoch_num_str = vsc_str_from_str(epoch_num_chars);

const vssc_string_list_t *keyknox_identites = vssq_messenger_group_epoch_participant_identities(group_epoch);
Expand Down