summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-15 00:29:51 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-16 15:46:13 +0000
commit22db2b9fe581a35300b66126604d12e83c2eafb1 (patch)
treef0a4b46fd2453f917e89bf8034eafd5a5946d0f0 /toxcore/tox.c
parentbc58c6ea2f68123abb12ccd09bb9f50bcb230e10 (diff)
Make Net_Crypto a module-private type.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 3201f74e..2fd478dc 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -369,7 +369,7 @@ void tox_self_get_public_key(const Tox *tox, uint8_t *public_key)
369 const Messenger *m = tox; 369 const Messenger *m = tox;
370 370
371 if (public_key) { 371 if (public_key) {
372 memcpy(public_key, m->net_crypto->self_public_key, CRYPTO_PUBLIC_KEY_SIZE); 372 memcpy(public_key, nc_get_self_public_key(m->net_crypto), CRYPTO_PUBLIC_KEY_SIZE);
373 } 373 }
374} 374}
375 375
@@ -378,7 +378,7 @@ void tox_self_get_secret_key(const Tox *tox, uint8_t *secret_key)
378 const Messenger *m = tox; 378 const Messenger *m = tox;
379 379
380 if (secret_key) { 380 if (secret_key) {
381 memcpy(secret_key, m->net_crypto->self_secret_key, CRYPTO_SECRET_KEY_SIZE); 381 memcpy(secret_key, nc_get_self_secret_key(m->net_crypto), CRYPTO_SECRET_KEY_SIZE);
382 } 382 }
383} 383}
384 384