code: public static void setTlsExtHostName(long ssl, String hostname) {
          if (hostname != null && hostname.endsWith(".")) {
              // Strip trailing dot if included.
              // See https://github.com/netty/netty-tcnative/issues/400
              hostname = hostname.substring(0, hostname.length() - 1);
          }
          setTlsExtHostName0(ssl, hostname);
      }
docs: Call SSL_set_tlsext_host_name
  
  @param ssl the SSL instance (SSL *)
  @param hostname the hostname