mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Merge remote-tracking branch 'origin/maint-0.2.4'
This commit is contained in:
commit
80e9ca411f
@ -169,7 +169,7 @@ curve25519_keypair_read_from_file(curve25519_keypair_t *keypair_out,
|
||||
|
||||
end:
|
||||
if (content) {
|
||||
memwipe(content, 0, st.st_size);
|
||||
memwipe(content, 0, (size_t) st.st_size);
|
||||
tor_free(content);
|
||||
}
|
||||
if (r != 0) {
|
||||
|
@ -1069,7 +1069,7 @@ test_crypto_curve25519_persist(void *arg)
|
||||
tor_free(tag);
|
||||
|
||||
content[69] ^= 0xff;
|
||||
tt_int_op(0, ==, write_bytes_to_file(fname, content, st.st_size, 1));
|
||||
tt_int_op(0, ==, write_bytes_to_file(fname, content, (size_t)st.st_size, 1));
|
||||
tt_int_op(-1, ==, curve25519_keypair_read_from_file(&keypair2, &tag, fname));
|
||||
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user