s4:libcli: add smb_connect_nego_{send,recv}()
[sfrench/samba-autobuild/.git] / source4 / libcli / smb_composite / smb_composite.h
index 383946f1307ad60684c9bf7936c454a3e2ea2420..e43cbb9dff92418ed01908991c39c5f70971ad3b 100644 (file)
@@ -101,6 +101,28 @@ NTSTATUS smb_composite_savefile_recv(struct composite_context *c);
 NTSTATUS smb_composite_savefile(struct smbcli_tree *tree, 
                                struct smb_composite_savefile *io);
 
+/*
+  a composite request for a low level connection to a remote server. Includes
+
+    - socket establishment
+    - session request
+    - negprot
+*/
+struct tevent_req *smb_connect_nego_send(TALLOC_CTX *mem_ctx,
+                                        struct tevent_context *ev,
+                                        struct resolve_context *resolve_ctx,
+                                        const struct smbcli_options *options,
+                                        const char *socket_options,
+                                        const char *dest_hostname,
+                                        const char *dest_address, /* optional */
+                                        const char **dest_ports,
+                                        const char *target_hostname,
+                                        const char *called_name,
+                                        const char *calling_name);
+NTSTATUS smb_connect_nego_recv(struct tevent_req *req,
+                              TALLOC_CTX *mem_ctx,
+                              struct smbXcli_conn **_conn);
+
 /*
   a composite request for a full connection to a remote server. Includes