Skip to content

HsDesc: Use a new UnparsedLinkSpecifier to avoid leaking which linkspec types we know

Nick Mathewson requested to merge nickm/arti:unparsed_linkspec into main

Resolves this comment:

    // TODO hs: We should not be parsing this eagerly.  Instead, we should
    // have an `UnparsedLinkSpec` type containing the type and data, and
    // maybe `LinkSpec` should become `UseableLinkSpec` (and lose its `Unrecognized` arm).
    // See rend-spec 2.5.2.2 for example.  The current approach will allow a peer to
    // discover whether this Arti supports a particular LSTYPE, by sending a link spec
    // of that type but with wrong data (eg, the wrong length).

Merge request reports

Loading