[exim-dev] [Bug 2805] 4.95 ALPN callback returns protocol pr…

Top Pagina
Delete this message
Reply to this message
Auteur: admin
Datum:  
Aan: exim-dev
Onderwerp: [exim-dev] [Bug 2805] 4.95 ALPN callback returns protocol prefixed with length
https://bugs.exim.org/show_bug.cgi?id=2805

--- Comment #2 from jannik.hoelling@??? ---
The example on the manpage includes the length since it's an example for the
protocol/wire format.

The 'out' variable itself is not in that format since it's only a single
protocol, it can point to a part of in though.

See:
"The in, inlen parameters are a vector in protocol-list format. The value of
the out, outlen vector should be set to the value of a single protocol selected
from the in, inlen vector. The out buffer may point directly into in, or to a
buffer that outlives the handshake"

Also:
"For the callback itself, out must be set to point to the selected protocol
(which may be within in)"

--
You are receiving this mail because:
You are on the CC list for the bug.