diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 4 | ||||
-rw-r--r-- | src/common/crypto_curve25519.c | 2 | ||||
-rw-r--r-- | src/common/util.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 07f011d63d..4930c05c2a 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -80,7 +80,8 @@ wint_t _getwch(void); #define WEOF (wchar_t)(0xFFFF) #endif #if defined(HAVE_DECL_SECUREZEROMEMORY) && !HAVE_DECL_SECUREZEROMEMORY -static inline void SecureZeroMemory(PVOID ptr, SIZE_T cnt) +static inline void +SecureZeroMemory(PVOID ptr, SIZE_T cnt) { volatile char *vcptr = (volatile char*)ptr; while (cnt--) @@ -3378,3 +3379,4 @@ tor_getpass(const char *prompt, char *output, size_t buflen) #error "No implementation for tor_getpass found!" #endif } + diff --git a/src/common/crypto_curve25519.c b/src/common/crypto_curve25519.c index 113ac89df7..043782423f 100644 --- a/src/common/crypto_curve25519.c +++ b/src/common/crypto_curve25519.c @@ -353,7 +353,7 @@ curve25519_basepoint_spot_check(void) /* Check the most basic possible sanity via the test secret/public key pair * used in "Cryptography in NaCl - 2. Secret keys and public keys". This - * may catch catastrophic failures on systems where Curve25519 is expensive, + * may catch catastrophic failures on systems where Curve25519 is expensive, * without requiring a ton of key generation. */ curve25519_use_ed = 1; diff --git a/src/common/util.c b/src/common/util.c index 1849613512..a5b5488b0a 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2561,7 +2561,7 @@ read_file_to_str_until_eof(int fd, size_t max_bytes_to_read, size_t *sz_out) size_t string_max = 0; if (max_bytes_to_read+1 >= SIZE_T_CEILING) { - errno = EINVAL; + errno = EINVAL; return NULL; } |