diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-10 20:54:48 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-10 20:54:48 +0200 |
commit | 99d594014014a37fdee9e83575a8895400c9cd60 (patch) | |
tree | 55152fcfb850511b17ae2af9c77bf30778b465d2 /toxcore/net_crypto.c | |
parent | 8bdf487d199b82db85883b613e86deeba15f9b32 (diff) |
Const correctness in various interdependent files
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 47b23d54..bb38af26 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -2466,7 +2466,7 @@ void save_keys(Net_Crypto *c, uint8_t *keys) | |||
2466 | /* Load the public and private keys from the keys array. | 2466 | /* Load the public and private keys from the keys array. |
2467 | * Length must be crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES. | 2467 | * Length must be crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES. |
2468 | */ | 2468 | */ |
2469 | void load_keys(Net_Crypto *c, uint8_t *keys) | 2469 | void load_keys(Net_Crypto *c, const uint8_t *keys) |
2470 | { | 2470 | { |
2471 | memcpy(c->self_public_key, keys, crypto_box_PUBLICKEYBYTES); | 2471 | memcpy(c->self_public_key, keys, crypto_box_PUBLICKEYBYTES); |
2472 | memcpy(c->self_secret_key, keys + crypto_box_PUBLICKEYBYTES, crypto_box_SECRETKEYBYTES); | 2472 | memcpy(c->self_secret_key, keys + crypto_box_PUBLICKEYBYTES, crypto_box_SECRETKEYBYTES); |