diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-12-19 02:47:42 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-12-22 10:26:59 +0000 |
commit | ce29c8e7ec91d95167b2dea3aee9fd1ae1aac254 (patch) | |
tree | a288df55c44e8edf816e6abbde19a70faef73394 /toxcore/friend_requests.c | |
parent | 7122d2e862e028a730478d88cd61557fbed16ebf (diff) |
Wrap all sodium/nacl functions in crypto_core.c.
Diffstat (limited to 'toxcore/friend_requests.c')
-rw-r--r-- | toxcore/friend_requests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/friend_requests.c b/toxcore/friend_requests.c index f0281d3a..a2979b46 100644 --- a/toxcore/friend_requests.c +++ b/toxcore/friend_requests.c | |||
@@ -96,7 +96,7 @@ int remove_request_received(Friend_Requests *fr, const uint8_t *real_pk) | |||
96 | 96 | ||
97 | for (i = 0; i < MAX_RECEIVED_STORED; ++i) { | 97 | for (i = 0; i < MAX_RECEIVED_STORED; ++i) { |
98 | if (id_equal(fr->received_requests[i], real_pk)) { | 98 | if (id_equal(fr->received_requests[i], real_pk)) { |
99 | sodium_memzero(fr->received_requests[i], crypto_box_PUBLICKEYBYTES); | 99 | crypto_memzero(fr->received_requests[i], CRYPTO_PUBLIC_KEY_SIZE); |
100 | return 0; | 100 | return 0; |
101 | } | 101 | } |
102 | } | 102 | } |