sfackler / rust-native-tls

Apache License 2.0
470 stars 195 forks source link

Add ALPN support to TlsAcceptor #229

Open matszpk opened 2 years ago

matszpk commented 2 years ago

Add ALPN to TlsAcceptor - in server side.

sfackler commented 2 years ago

This needs to be implemented for all backends. In particular, at least last time I checked Security.framework didn't support server-side ALPN.

JohnGu9 commented 9 months ago

I think it is ok just let alpn be a optional function for difference platform. If Security.framework didn't support server-side ALPN, just ignore the alpn settings or create a runtime error when set server side alpn on ios and macOS.