summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2015-01-10 17:14:29 +1100
committerteor <teor2345@gmail.com>2015-01-10 17:14:29 +1100
commitdebd7862bb6d641c13fe4ee019da633c683d740e (patch)
tree0d34554d8f733ae5729d1d19984b12f876753fec /changes
parentc200ab46b85cece87a4bcdbaacd41bc6539d1671 (diff)
downloadtor-debd7862bb6d641c13fe4ee019da633c683d740e.tar.gz
tor-debd7862bb6d641c13fe4ee019da633c683d740e.zip
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.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug13111-generate-keys-on-empty-file22
1 files changed, 14 insertions, 8 deletions
diff --git a/changes/bug13111-generate-keys-on-empty-file b/changes/bug13111-generate-keys-on-empty-file
index 345e87ab75..20c10c7443 100644
--- a/changes/bug13111-generate-keys-on-empty-file
+++ b/changes/bug13111-generate-keys-on-empty-file
@@ -1,17 +1,23 @@
- o Minor bugfixes
+ o Minor bugfixes (file handling):
- Stop failing when key files are zero-length. Instead, generate new
keys, and overwrite the empty key files.
- Fixes bug 13111.
+ Fixes bug 13111. Patch by "teor".
- Stop generating a fresh .old RSA key file when the .old file is missing.
- Fixed as part of bug 13111.
- Avoid overwriting .old key files with empty key files.
- Fixed as part of bug 13111.
- Stop crashing when a NULL filename is passed to file_status().
- Fixed as part of bug 13111.
+ Fixed as part of bug 13111. Patches by "teor".
- o Minor enhancements:
+ o Minor enhancements (file handling):
- Skip loading zero-length extra info store, router store, stats, state,
and key files.
- Implemented with bug 13111.
- Return FN_ERROR when a zero-length filename is passed to file_status().
- Fixed as part of bug 13111.
+ Fixed as part of bug 13111. Patches by "teor".
+
+ o Minor enhancements (testing):
+ - Test that tor does not fail when key files are zero-length.
+ 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 bug 13111. Patch by "teor".