#12388: Missing support for TLS SNI (easy)
--------------------------------+----------------------------
Reporter: FreeFull | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Network Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
--------------------------------+----------------------------
Comment (by markh):
I had a look at this and I came up with two ways to fix it.
- Allow passing the hostname to the socket, either in the constructor or
in the Connect call.
- Store the hostname in BNetworkAddress
I gave the first option a try and it was more work than I expected and it
crashes in the Connect call of BSecureSocket now. I added the
SSL_set_tlsext_host_name call there and perhaps I am doing something wrong
here. What is the best way to figure out what is going wrong? Attach a
patch with my changes?
Implementing the first option gave me the idea that the second option
would be better, but I don't know the network code good enough to say for
certain that it is better.
As both of the proposed changes are on the Haiku side, we perhaps also
need to take into account backwards compatibility.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12388#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.