-
- Downloads
Stop failing when key files are zero-length
Instead, generate new keys, and overwrite the empty key files. Adds FN_EMPTY to file_status_t and file_status. Fixes bug 13111. Related changes due to review of FN_FILE usage: Stop generating a fresh .old RSA key file when the .old file is missing. Avoid overwriting .old key files with empty key files. Skip loading zero-length extra info store, router store, stats, state, and key files.
Showing
- changes/bug13111-generate-keys-on-empty-file 10 additions, 0 deletionschanges/bug13111-generate-keys-on-empty-file
- src/common/compat.c 1 addition, 0 deletionssrc/common/compat.c
- src/common/util.c 21 additions, 9 deletionssrc/common/util.c
- src/common/util.h 1 addition, 1 deletionsrc/common/util.h
- src/or/config.c 16 additions, 6 deletionssrc/or/config.c
- src/or/router.c 26 additions, 10 deletionssrc/or/router.c
- src/or/routerlist.c 1 addition, 0 deletionssrc/or/routerlist.c
- src/or/statefile.c 3 additions, 0 deletionssrc/or/statefile.c
Loading
Please register or sign in to comment