s4:libcli:smb2: add the smb2_capabilities to the smbcli_options
[mat/samba.git] / source4 / libcli / smb2 / transport.c
index 380c9cd2d127d99f10cfd0fba9d91bb3b4a96b3f..b4a6c943dd19f5b9fdb2ea193f9f3761512ab31c 100644 (file)
@@ -59,16 +59,13 @@ struct smb2_transport *smb2_transport_init(struct smbcli_socket *sock,
        TALLOC_FREE(sock->event.fde);
        TALLOC_FREE(sock->event.te);
 
-       /* TODO: hand this in via the options? */
-       smb2_capabilities = SMB2_CAP_ALL;
-
        transport->conn = smbXcli_conn_create(transport,
                                              sock->sock->fd,
                                              sock->hostname,
                                              options->signing,
                                              0, /* smb1_capabilities */
                                              &options->client_guid,
-                                             smb2_capabilities);
+                                             options->smb2_capabilities);
        if (transport->conn == NULL) {
                talloc_free(transport);
                return NULL;