        }
    } while (nbytes > 0);

    tls_close(tls);
    tls_free(tls);
    tls_config_free(tls_config);

    return 0;
}


int server(int fd_read, int fd_write)
{
    static char buf[1024] = {0};
    struct tls *tls;