Am 22.05.2015 um 15:25 schrieb Mark Thomas:
On 22/05/2015 14:14, Rainer Jung wrote:
I get confused by ALPM in tcnative trunk. What is the semantics of the
member alpn of tcn_ssl_ctxt_t:
- a string
- an array of strings
- an array of individual characters
None of the above!
I get confused by the code in src/sslcontext.c.
Just in case there's something wrong I can help to clean up but first I
want to understand what the intent is. Not yet saying there is something
wrong. Just confused.
The format is an array of bytes in the following format:
Zero or more of the following sequence:
1 byte (value n) for size of what follows
n bytes representing the name (UTF-8 encoding)
If the above isn't clear, AprEndpoint.buildAlpnConfig() should help.
From memory I can't recall if the encoding to use to convert the names
to bytes is defined or not. All the names we want to define are US ASCII
so US-ASCII, ISO-8859-1 or UTF-8 are all fine.
OK, got it now, thanks.
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org