]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Extract ns_detached_signatures_st into its own header.
authorNick Mathewson <nickm@torproject.org>
Fri, 15 Jun 2018 17:49:30 +0000 (13:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 15 Jun 2018 17:49:30 +0000 (13:49 -0400)
src/or/dirauth/dirvote.c
src/or/include.am
src/or/networkstatus.c
src/or/ns_detached_signatures_st.h [new file with mode: 0644]
src/or/or.h
src/or/routerparse.c
src/test/test_dir.c

index aa30a11f5c903b9895d27d3966ea60302d72b4a1..c402bcb79942d6b66d25c3023536666240fb1021 100644 (file)
@@ -33,6 +33,7 @@
 #include "networkstatus_st.h"
 #include "networkstatus_voter_info_st.h"
 #include "node_st.h"
+#include "ns_detached_signatures_st.h"
 #include "vote_microdesc_hash_st.h"
 #include "vote_routerstatus_st.h"
 #include "vote_timing_st.h"
index e6f23e916de4ba48373119e0f9b8e371a786ed0c..7dcb725731a9db7ad60161dde1a7180de18681d2 100644 (file)
@@ -253,6 +253,7 @@ ORHEADERS = \
        src/or/networkstatus_voter_info_st.h            \
        src/or/nodelist.h                               \
        src/or/node_st.h                                \
+       src/or/ns_detached_signatures_st.h              \
        src/or/ntmain.h                                 \
        src/or/onion.h                                  \
        src/or/onion_fast.h                             \
index 8ad1bb25b7dc39a8bd32dc149933c5f59126de99..0c351f0e40ca4779c7a36b2a03162360473363c3 100644 (file)
@@ -79,6 +79,7 @@
 #include "document_signature_st.h"
 #include "networkstatus_st.h"
 #include "networkstatus_voter_info_st.h"
+#include "ns_detached_signatures_st.h"
 #include "node_st.h"
 #include "vote_microdesc_hash_st.h"
 #include "vote_routerstatus_st.h"
diff --git a/src/or/ns_detached_signatures_st.h b/src/or/ns_detached_signatures_st.h
new file mode 100644 (file)
index 0000000..4cb37de
--- /dev/null
@@ -0,0 +1,22 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2017, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef NS_DETACHED_SIGNATURES_ST_H
+#define NS_DETACHED_SIGNATURES_ST_H
+
+/** A set of signatures for a networkstatus consensus.  Unless otherwise
+ * noted, all fields are as for networkstatus_t. */
+struct ns_detached_signatures_t {
+  time_t valid_after;
+  time_t fresh_until;
+  time_t valid_until;
+  strmap_t *digests; /**< Map from flavor name to digestset_t */
+  strmap_t *signatures; /**< Map from flavor name to list of
+                         * document_signature_t */
+};
+
+#endif
+
index 43fe09f23bf4a36234194b939c88658e9a70f07f..d6a42bd9dac14256bdf95bd5ff45fa50ad64c511 100644 (file)
@@ -1883,17 +1883,7 @@ typedef enum {
 #define N_CONSENSUS_FLAVORS ((int)(FLAV_MICRODESC)+1)
 
 typedef struct networkstatus_t networkstatus_t;
-
-/** A set of signatures for a networkstatus consensus.  Unless otherwise
- * noted, all fields are as for networkstatus_t. */
-typedef struct ns_detached_signatures_t {
-  time_t valid_after;
-  time_t fresh_until;
-  time_t valid_until;
-  strmap_t *digests; /**< Map from flavor name to digestset_t */
-  strmap_t *signatures; /**< Map from flavor name to list of
-                         * document_signature_t */
-} ns_detached_signatures_t;
+typedef struct ns_detached_signatures_t ns_detached_signatures_t;
 
 /** Allowable types of desc_store_t. */
 typedef enum store_type_t {
index ab64b1c825ccd313a87d9ddca7b5486111349eae..be6ed00e25603108ce25e3620188afb105124acd 100644 (file)
@@ -84,6 +84,7 @@
 #include "document_signature_st.h"
 #include "networkstatus_st.h"
 #include "networkstatus_voter_info_st.h"
+#include "ns_detached_signatures_st.h"
 #include "rend_authorized_client_st.h"
 #include "rend_intro_point_st.h"
 #include "rend_service_descriptor_st.h"
index 10169a70cf880bd579c7ec8d70ec270a0f4da173..76f3b13f6e8a838ad7338275a6789d7a3f7ba342 100644 (file)
@@ -48,6 +48,7 @@
 #include "document_signature_st.h"
 #include "networkstatus_st.h"
 #include "networkstatus_voter_info_st.h"
+#include "ns_detached_signatures_st.h"
 #include "port_cfg_st.h"
 #include "tor_version_st.h"
 #include "vote_microdesc_hash_st.h"