summaryrefslogtreecommitdiff
path: root/src/or/routerkeys.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-14 10:36:39 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-14 10:36:39 -0400
commit5e8edba3d80bf53e5e5c09c8a87e06d0c69e00b7 (patch)
tree5df3e1354d288c232c02432c5ce19d9d58f02d07 /src/or/routerkeys.h
parent0a6997d78bdbf485f42acfa95558a91db3381d70 (diff)
downloadtor-5e8edba3d80bf53e5e5c09c8a87e06d0c69e00b7.tar.gz
tor-5e8edba3d80bf53e5e5c09c8a87e06d0c69e00b7.zip
If loading an ed25519 master key fails with errno != ENOENT, give up.
This implements feature 16582: if we get EMFILE or something when loading our master key, we should not at that point attempt to overwrite it.
Diffstat (limited to 'src/or/routerkeys.h')
-rw-r--r--src/or/routerkeys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerkeys.h b/src/or/routerkeys.h
index 1e0199e5e6..9b93358ae3 100644
--- a/src/or/routerkeys.h
+++ b/src/or/routerkeys.h
@@ -15,6 +15,7 @@
#define INIT_ED_KEY_INCLUDE_SIGNING_KEY_IN_CERT (1u<<6)
#define INIT_ED_KEY_OMIT_SECRET (1u<<7)
#define INIT_ED_KEY_TRY_ENCRYPTED (1u<<8)
+#define INIT_ED_KEY_NO_REPAIR (1u<<9)
struct tor_cert_st;
ed25519_keypair_t *ed_key_init_from_file(const char *fname, uint32_t flags,