|
@@ -34,6 +34,7 @@ static int protocol_list_contains(const smartlist_t *protos,
|
|
protocol_type_t pr, uint32_t ver);
|
|
protocol_type_t pr, uint32_t ver);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
static const struct {
|
|
static const struct {
|
|
protocol_type_t protover_type;
|
|
protocol_type_t protover_type;
|
|
const char *name;
|
|
const char *name;
|
|
@@ -320,6 +321,7 @@ protocol_list_supports_protocol_or_later(const char *list,
|
|
|
|
|
|
|
|
|
|
* that we support. */
|
|
* that we support. */
|
|
|
|
+
|
|
const char *
|
|
const char *
|
|
protover_get_supported_protocols(void)
|
|
protover_get_supported_protocols(void)
|
|
{
|
|
{
|
|
@@ -403,6 +405,8 @@ encode_protocol_list(const smartlist_t *sl)
|
|
|
|
|
|
|
|
|
|
* as a DoS attempt. */
|
|
* as a DoS attempt. */
|
|
|
|
+
|
|
|
|
+
|
|
static const int MAX_PROTOCOLS_TO_EXPAND = (1<<16);
|
|
static const int MAX_PROTOCOLS_TO_EXPAND = (1<<16);
|
|
|
|
|
|
|
|
|
|
@@ -729,6 +733,7 @@ protocol_list_contains(const smartlist_t *protos,
|
|
* Note that this is only used to infer protocols for Tor versions that
|
|
* Note that this is only used to infer protocols for Tor versions that
|
|
* can't declare their own.
|
|
* can't declare their own.
|
|
**/
|
|
**/
|
|
|
|
+
|
|
const char *
|
|
const char *
|
|
protover_compute_for_old_tor(const char *version)
|
|
protover_compute_for_old_tor(const char *version)
|
|
{
|
|
{
|