diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-09 19:54:05 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-14 19:09:10 +0000 |
commit | 49bb43f6626b927b978eac765609844294523cad (patch) | |
tree | 8a56916651f51c63489cd1427e6fba2b6a19cbdb /toxencryptsave | |
parent | 7821cd84121ac8a4de5c70ab46d36bcbb881bb43 (diff) |
Standardise header guards.
Using the full path including the repo name.
Diffstat (limited to 'toxencryptsave')
9 files changed, 41 insertions, 6 deletions
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h index 5cb32f8d..8249fa1c 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_H | ||
3 | |||
1 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 5 | #include "config.h" |
3 | #endif | 6 | #endif |
@@ -90,3 +93,5 @@ int crypto_pwhash_scryptsalsa208sha256_ll(const uint8_t * passwd, size_t passwdl | |||
90 | #endif | 93 | #endif |
91 | 94 | ||
92 | #endif | 95 | #endif |
96 | |||
97 | #endif | ||
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h index 3f0b7d72..978ac918 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_SCRYPT_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_SCRYPT_H | ||
3 | |||
1 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 5 | #include "config.h" |
3 | #endif | 6 | #endif |
@@ -91,3 +94,5 @@ extern uint8_t * escrypt_gensalt_r( | |||
91 | #endif /* !_CRYPTO_SCRYPT_H_ */ | 94 | #endif /* !_CRYPTO_SCRYPT_H_ */ |
92 | 95 | ||
93 | #endif | 96 | #endif |
97 | |||
98 | #endif | ||
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h index ee5b30f7..ebf8d9df 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_EXPORT_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_EXPORT_H | ||
3 | |||
1 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 5 | #include "config.h" |
3 | #endif | 6 | #endif |
@@ -36,3 +39,5 @@ | |||
36 | #endif | 39 | #endif |
37 | 40 | ||
38 | #endif | 41 | #endif |
42 | |||
43 | #endif | ||
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h index b74bc6a3..17cd2112 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_PBKDF2_SHA256_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_PBKDF2_SHA256_H | ||
3 | |||
1 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 5 | #include "config.h" |
3 | #endif | 6 | #endif |
@@ -50,3 +53,5 @@ void PBKDF2_SHA256(const uint8_t *, size_t, const uint8_t *, size_t, | |||
50 | #endif /* !_SHA256_H_ */ | 53 | #endif /* !_SHA256_H_ */ |
51 | 54 | ||
52 | #endif | 55 | #endif |
56 | |||
57 | #endif | ||
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h index 874915ef..260a4550 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_RUNTIME_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_RUNTIME_H | ||
3 | |||
1 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 5 | #include "config.h" |
3 | #endif | 6 | #endif |
@@ -31,3 +34,5 @@ int sodium_runtime_has_sse3(void); | |||
31 | #endif | 34 | #endif |
32 | 35 | ||
33 | #endif | 36 | #endif |
37 | |||
38 | #endif | ||
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h index 04e5c1ed..4deca4c6 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SYSENDIAN_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SYSENDIAN_H | ||
3 | |||
1 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 5 | #include "config.h" |
3 | #endif | 6 | #endif |
@@ -151,3 +154,5 @@ le64enc(void *pp, uint64_t x) | |||
151 | #endif /* !_SYSENDIAN_H_ */ | 154 | #endif /* !_SYSENDIAN_H_ */ |
152 | 155 | ||
153 | #endif | 156 | #endif |
157 | |||
158 | #endif | ||
diff --git a/toxencryptsave/defines.h b/toxencryptsave/defines.h index e3fca073..0bc1d9ed 100644 --- a/toxencryptsave/defines.h +++ b/toxencryptsave/defines.h | |||
@@ -1,2 +1,7 @@ | |||
1 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H | ||
2 | #define C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H | ||
3 | |||
1 | #define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave" | 4 | #define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave" |
2 | #define TOX_ENC_SAVE_MAGIC_LENGTH 8 | 5 | #define TOX_ENC_SAVE_MAGIC_LENGTH 8 |
6 | |||
7 | #endif | ||
diff --git a/toxencryptsave/toxencryptsave.api.h b/toxencryptsave/toxencryptsave.api.h index b034288a..28d7a650 100644 --- a/toxencryptsave/toxencryptsave.api.h +++ b/toxencryptsave/toxencryptsave.api.h | |||
@@ -22,8 +22,8 @@ | |||
22 | * You should have received a copy of the GNU General Public License | 22 | * You should have received a copy of the GNU General Public License |
23 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 23 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. |
24 | */ | 24 | */ |
25 | #ifndef TOXENCRYPTSAVE_H | 25 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H |
26 | #define TOXENCRYPTSAVE_H | 26 | #define C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H |
27 | 27 | ||
28 | #ifdef __cplusplus | 28 | #ifdef __cplusplus |
29 | extern "C" { | 29 | extern "C" { |
@@ -313,5 +313,5 @@ static bool is_data_encrypted(const uint8_t *data); | |||
313 | } | 313 | } |
314 | #endif | 314 | #endif |
315 | 315 | ||
316 | #endif | 316 | #endif // C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H |
317 | %} | 317 | %} |
diff --git a/toxencryptsave/toxencryptsave.h b/toxencryptsave/toxencryptsave.h index 78d377e5..400483cb 100644 --- a/toxencryptsave/toxencryptsave.h +++ b/toxencryptsave/toxencryptsave.h | |||
@@ -21,8 +21,8 @@ | |||
21 | * You should have received a copy of the GNU General Public License | 21 | * You should have received a copy of the GNU General Public License |
22 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. | 22 | * along with Tox. If not, see <http://www.gnu.org/licenses/>. |
23 | */ | 23 | */ |
24 | #ifndef TOXENCRYPTSAVE_H | 24 | #ifndef C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H |
25 | #define TOXENCRYPTSAVE_H | 25 | #define C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H |
26 | 26 | ||
27 | #ifdef __cplusplus | 27 | #ifdef __cplusplus |
28 | extern "C" { | 28 | extern "C" { |
@@ -375,4 +375,4 @@ bool tox_is_data_encrypted(const uint8_t *data); | |||
375 | } | 375 | } |
376 | #endif | 376 | #endif |
377 | 377 | ||
378 | #endif | 378 | #endif // C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H |