tor-netdoc: Use the new HandshakeType enum to represent CREATE2 HTYPEs.
Representing the supported HTYPEs as HandshakeType
s instead of u32
s
makes it more difficult to pass in wrong/invalid values to
HsDescBuilder::create2_formats
.
This also fixes a descriptor publisher bug spotted by @jnewsome, where
the advertised CREATE2 HTYPEs included HTYPE 1
, which is actually
supposed to be a reserved value. The publisher now only advertises the
NTOR
HTYPE (just like C Tor).