mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Include UPLOAD_RENDDESC_V2 in PURPOSE_IS_UPLOAD
This was only used in one place before, and it's safe to update it.
This commit is contained in:
+1
-3
@@ -1171,9 +1171,7 @@ directory_request_set_payload(directory_request_t *req,
|
||||
const char *payload,
|
||||
size_t payload_len)
|
||||
{
|
||||
tor_assert(DIR_PURPOSE_IS_UPLOAD(req->dir_purpose) ||
|
||||
// XXXX why not included?
|
||||
req->dir_purpose == DIR_PURPOSE_UPLOAD_RENDDESC_V2);
|
||||
tor_assert(DIR_PURPOSE_IS_UPLOAD(req->dir_purpose));
|
||||
|
||||
req->payload = payload;
|
||||
req->payload_len = payload_len;
|
||||
|
||||
+4
-3
@@ -423,12 +423,13 @@ typedef enum {
|
||||
#define DIR_PURPOSE_FETCH_MICRODESC 19
|
||||
#define DIR_PURPOSE_MAX_ 19
|
||||
|
||||
/** True iff <b>p</b> is a purpose corresponding to uploading data to a
|
||||
* directory server. */
|
||||
/** True iff <b>p</b> is a purpose corresponding to uploading
|
||||
* data to a directory server. */
|
||||
#define DIR_PURPOSE_IS_UPLOAD(p) \
|
||||
((p)==DIR_PURPOSE_UPLOAD_DIR || \
|
||||
(p)==DIR_PURPOSE_UPLOAD_VOTE || \
|
||||
(p)==DIR_PURPOSE_UPLOAD_SIGNATURES)
|
||||
(p)==DIR_PURPOSE_UPLOAD_SIGNATURES || \
|
||||
(p)==DIR_PURPOSE_UPLOAD_RENDDESC_V2)
|
||||
|
||||
#define EXIT_PURPOSE_MIN_ 1
|
||||
/** This exit stream wants to do an ordinary connect. */
|
||||
|
||||
Reference in New Issue
Block a user