summaryrefslogtreecommitdiff
path: root/toxencryptsave
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-04-09 23:56:19 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-04-16 11:05:08 +0000
commitc08b2fb3e2c3c8e8a5722e7350b61efd6992be45 (patch)
treebc6f5738bb6a948146cedb612cc12abb3e158fb4 /toxencryptsave
parent7f9f8045cd6f8d92559cdc9f7d297cf92e960e49 (diff)
Remove tokstyle exemptions from build files.
We put some tokstyle exemptions into the source files themselves, instead. This way we can check some of the code in those files, and more in the future when tokstyle supports more constructs (like apidsl). Also: hacked ping_array.api.h to not emit `_array` as parameter names. We'll need to fix apidsl to do this better. This works for now.
Diffstat (limited to 'toxencryptsave')
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c2
-rw-r--r--toxencryptsave/defines.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
index e2de3e5f..3aab156f 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c
@@ -201,7 +201,7 @@ crypto_pwhash_scryptsalsa208sha256_str_verify(const char str[crypto_pwhash_scryp
201 return -1; 201 return -1;
202 } 202 }
203 escrypt_free_local(&escrypt_local); 203 escrypt_free_local(&escrypt_local);
204 ret = crypto_memcmp(wanted, str, sizeof wanted); 204 ret = crypto_memcmp((const uint8_t *) wanted, (const uint8_t *) str, sizeof wanted);
205 crypto_memzero(wanted, sizeof wanted); 205 crypto_memzero(wanted, sizeof wanted);
206 206
207 return ret; 207 return ret;
diff --git a/toxencryptsave/defines.h b/toxencryptsave/defines.h
index 0bc1d9ed..8a490344 100644
--- a/toxencryptsave/defines.h
+++ b/toxencryptsave/defines.h
@@ -1,7 +1,7 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H 1#ifndef C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H
2#define C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H 2#define C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H
3 3
4#define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave" 4#define TOX_ENC_SAVE_MAGIC_NUMBER ((const uint8_t *)"toxEsave")
5#define TOX_ENC_SAVE_MAGIC_LENGTH 8 5#define TOX_ENC_SAVE_MAGIC_LENGTH 8
6 6
7#endif 7#endif