summaryrefslogtreecommitdiffstats
path: root/source4/libcli
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-29 02:02:29 +0100
committerMichael Adam <obnox@samba.org>2012-03-03 17:03:07 +0100
commitac43937ce4d5100a82df9d76d50d72b97daaedd3 (patch)
tree75d936c89c6b82b93e3f706b52b119afcc936879 /source4/libcli
parent5a5f98dc70bcca088af061473b8cb465e5aa6ff0 (diff)
downloadsamba-ac43937ce4d5100a82df9d76d50d72b97daaedd3.tar.gz
samba-ac43937ce4d5100a82df9d76d50d72b97daaedd3.tar.xz
samba-ac43937ce4d5100a82df9d76d50d72b97daaedd3.zip
smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/clitransport.c3
-rw-r--r--source4/libcli/smb2/transport.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index a9ff8f33c57..f9759b1b7f5 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/libcli/raw/clitransport.c
@@ -90,7 +90,8 @@ struct smbcli_transport *smbcli_transport_init(struct smbcli_socket *sock,
sock->hostname,
options->signing,
smb1_capabilities,
- NULL); /* client_guid */
+ NULL, /* client_guid */
+ 0); /* smb2_capabilities */
if (transport->conn == NULL) {
TALLOC_FREE(sock);
TALLOC_FREE(transport);
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c
index 14d1fc541e8..d3e17025c0c 100644
--- a/source4/libcli/smb2/transport.c
+++ b/source4/libcli/smb2/transport.c
@@ -67,7 +67,8 @@ struct smb2_transport *smb2_transport_init(struct smbcli_socket *sock,
sock->hostname,
options->signing,
0, /* smb1_capabilities */
- &client_guid);
+ &client_guid,
+ 0 /* smb2_capabilities */);
if (transport->conn == NULL) {
talloc_free(transport);
return NULL;