rustls / rustls-ffi

Use Rustls from any language
Other
125 stars 30 forks source link

SNI hostname getter: set `out_n = 0` if unavailable #262

Closed amesgen closed 2 years ago

amesgen commented 2 years ago

Tiny bug fix PR.

The docs of rustls_server_connection_get_sni_hostname state:

Returns Ok with *out_n == 0 if there is no SNI hostname available on this connection