Test that tor correctly handles zero-length keys

Check that tor generates new keys, and overwrites the empty key files.
Test that tor generates new keys when keys are missing (existing
behaviour).
Test that tor does not overwrite key files that already contain data
(existing behaviour).

Tests fixes to bug 13111.
This commit is contained in:
teor
2015-01-10 17:14:29 +11:00
parent c200ab46b8
commit debd7862bb
3 changed files with 130 additions and 9 deletions
+3 -1
View File
@@ -120,9 +120,11 @@ if USEPYTHON
./src/test/test-bt-cl assert | $(PYTHON) $(top_srcdir)/src/test/bt_test.py
./src/test/test-bt-cl crash | $(PYTHON) $(top_srcdir)/src/test/bt_test.py
endif
./src/test/zero_length_keys.sh
EXTRA_DIST += \
src/test/bt_test.py \
src/test/ntor_ref.py \
src/test/slownacl_curve25519.py \
src/test/test_cmdline_args.py
src/test/test_cmdline_args.py \
src/test/zero_length_keys.sh