rustls-ffi icon indicating copy to clipboard operation
rustls-ffi copied to clipboard

Change rustls_server_connection_get_server_name to return rustls_str

Open jsha opened this issue 4 years ago • 0 comments

This function was written before we started using rustls_str, and it uses the pattern of writing to a caller-provided buffer. That pattern is quite awkward to use, and rustls_str fits better, so we should use that instead.

Note: #178 (lifetime issues for rustls_connection' getters) may get in the way, but I think the SNI field has the same set-once property we rely on for the other getters.

jsha avatar Nov 06 '21 04:11 jsha