aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-20 23:20:36 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-20 23:20:36 +0000
commitf0e523c6ef9f6308a72d3474aaec04718a100ac9 (patch)
tree1f04e96a983915b147f77a7c5286d231b15fb872 /src/or/or.h
parentba977ed4f1e3e48759fa48bed9bb4de5085e32d6 (diff)
downloadtor-f0e523c6ef9f6308a72d3474aaec04718a100ac9.tar
tor-f0e523c6ef9f6308a72d3474aaec04718a100ac9.tar.gz
r18272@catbus: nickm | 2008-02-20 18:20:33 -0500
add a flag to suppress overwriting the certificates file with new certificates, so we do not overwrite all certs when starting as an authority. svn:r13630
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 50d98e82a..33ae67a4e 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2471,6 +2471,10 @@ int peek_buf_has_control0_command(buf_t *buf);
void assert_buf_ok(buf_t *buf);
+#ifdef BUFFERS_PRIVATE
+int buf_find_string_offset(const buf_t *buf, const char *s, size_t n);
+#endif
+
/********************************* circuitbuild.c **********************/
char *circuit_list_path(origin_circuit_t *circ, int verbose);
@@ -3846,7 +3850,8 @@ typedef struct trusted_dir_server_t {
int get_n_authorities(authority_type_t type);
int trusted_dirs_reload_certs(void);
-int trusted_dirs_load_certs_from_string(const char *contents, int from_store);
+int trusted_dirs_load_certs_from_string(const char *contents, int from_store,
+ int flush);
void trusted_dirs_flush_certs_to_disk(void);
authority_cert_t *authority_cert_get_newest_by_id(const char *id_digest);
authority_cert_t *authority_cert_get_by_sk_digest(const char *sk_digest);