Re: Introducing TLS
| Newsgroups | gmane.network.gnutella.devel |
|---|---|
| Organization | Home, Grenoble, France |
| Message-ID | <[email protected]> |
Quoting Sam Berlin <[email protected]> from ml.gnutella.dev-forum: : The X-Alt header is changed so that "tls=##" is written prior to any of :the : locations are listed. '##' is the hexademical representation of the :byte[] : that describes which of the following alternate locations can accept :TLS. This specification is confusing. It looks like one cannot send more than 8 addresses in X-Alt. '##' does not stand for 2 hex chars, but rather a complete bit array in big-endian format, where bit 0 represents the first address, bit 1 the second address, etc.. So in a list of 17 hosts where only the 16th (i.e. the last but not least) host can support TLS, this is bit #15 (numbering starts at 0), you would say: tls=8000, at the beginning of the X-Alt field, where indeed only the bit #15 is set. Thanks for clarifying the specs accordingly. Raphael