Closed bjin closed 8 months ago
Such feature extensions are welcome. Would you provide a flexible design?
I don't know much about how the quic
package works internally with the tls
package. But after a quick look at the code, it seems like you might be able to set onClientCertificate
and onServerNameIndication
here:
I'm not sure if this will work smoothly, though.
In terms of design, using the same function types for onClientCertificate
and onServerNameIndication
seems like a reasonable approach to me.
Your approach should work. If you want to know more, please read https://kazu-yamamoto.hatenablog.jp/entry/2020/09/16/150801
Probably, we should expose TLS's ServerHooks
entirely from QUIC's ServerConfig
.
This appears to be a promising solution, offering users maximum flexibility.
May I ask you to implement it and send a PR?
Sure, it seems like a task suitable for beginners, mainly involving interface changes. I'd like to get this sorted out to use the SNI functionality, but I'm pretty busy lately. I might find time in a few weeks.
BTW, your warp-quic
GitHub repository is outdated. Since changes to warp-quic
are needed, could you update it to the version on Hackage? This way, I can submit a pull request once the task is completed.
your warp-quic GitHub repository is outdated.
I don't understand this. Do you mean that your warp-quic GitHub repository will be outdated.
My bad! The correct repo is https://github.com/yesodweb/wai The source of this confusion is a wrong URL in the cabal file. So, I did:
The
tls
package offers aNetwork.TLS.ServerHooks
parameter, allowing customization through functions likeonClientCertificate
andonServerNameIndication
on the server side. Could we consider introducing a similar feature in this package?It seems that the
Network.QUIC.Internal.Hooks
parameter is primarily designed for debugging and may not offer significant value in real-world scenarios.