diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-13 05:25:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-13 05:25:46 +0100 |
commit | 4da2ad92155a6f71012c25a47195637e48153446 (patch) | |
tree | 90ad7e5e1cfd99df24503a952fcc3ac435b74b21 /src/noise.c | |
parent | 1350390458461897bf26760a908571905d871bcf (diff) |
Use __read_mostly attribute when possible
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/noise.c')
-rw-r--r-- | src/noise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noise.c b/src/noise.c index 9555e58..0ffffd7 100644 --- a/src/noise.c +++ b/src/noise.c @@ -24,8 +24,8 @@ static const u8 handshake_name[33] = "Noise_IK_25519_ChaChaPoly_BLAKE2s"; static const u8 handshake_psk_name[36] = "NoisePSK_IK_25519_ChaChaPoly_BLAKE2s"; -static u8 handshake_name_hash[NOISE_HASH_LEN]; -static u8 handshake_psk_name_hash[NOISE_HASH_LEN]; +static u8 handshake_name_hash[NOISE_HASH_LEN] __read_mostly; +static u8 handshake_psk_name_hash[NOISE_HASH_LEN] __read_mostly; static const u8 identifier_name[34] = "WireGuard v0 zx2c4 Jason@zx2c4.com"; static atomic64_t keypair_counter = ATOMIC64_INIT(0); |