mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
hs-v3: Support HS_DESC UPLOAD failed
When failing to upload a descriptor, signal the control port with a FAILED event. Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
427b247c8d
commit
13bb4f60f0
@ -3314,7 +3314,8 @@ handle_response_upload_hsdesc(dir_connection_t *conn,
|
|||||||
"status 400 (%s) response from dirserver "
|
"status 400 (%s) response from dirserver "
|
||||||
"'%s:%d'. Malformed hidden service descriptor?",
|
"'%s:%d'. Malformed hidden service descriptor?",
|
||||||
escaped(reason), conn->base_.address, conn->base_.port);
|
escaped(reason), conn->base_.address, conn->base_.port);
|
||||||
/* XXX: Trigger control event. */
|
hs_control_desc_event_failed(conn->hs_ident, conn->identity_digest,
|
||||||
|
"UPLOAD_REJECTED");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log_warn(LD_REND, "Uploading hidden service descriptor: http "
|
log_warn(LD_REND, "Uploading hidden service descriptor: http "
|
||||||
@ -3322,7 +3323,8 @@ handle_response_upload_hsdesc(dir_connection_t *conn,
|
|||||||
"'%s:%d').",
|
"'%s:%d').",
|
||||||
status_code, escaped(reason), conn->base_.address,
|
status_code, escaped(reason), conn->base_.address,
|
||||||
conn->base_.port);
|
conn->base_.port);
|
||||||
/* XXX: Trigger control event. */
|
hs_control_desc_event_failed(conn->hs_ident, conn->identity_digest,
|
||||||
|
"UNEXPECTED");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user