librpc: add binding handle support for [smb1]
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Jul 2018 05:32:08 +0000 (07:32 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 10:56:33 +0000 (12:56 +0200)
This will be used to force smb1.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13308

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 062b518cabd9fb5f72f96cdf400c978c0b844619)

librpc/rpc/binding.c
librpc/rpc/rpc_common.h

index 63ba682a577e88be16ce5aa2af742262ef57b98d..aa8cc6b46c6f151d5103098130c5d071b16bb183 100644 (file)
@@ -103,6 +103,7 @@ static const struct ncacn_option {
        {"print", DCERPC_DEBUG_PRINT_BOTH},
        {"padcheck", DCERPC_DEBUG_PAD_CHECK},
        {"bigendian", DCERPC_PUSH_BIGENDIAN},
+       {"smb1", DCERPC_SMB1},
        {"smb2", DCERPC_SMB2},
        {"ndr64", DCERPC_NDR64},
        {"packet", DCERPC_PACKET},
index d6b2d5dbc055ec5e1be186549b87caecc4a8a48c..cdc9fe8ac88262feaeec5d096ab7658b79418027 100644 (file)
@@ -108,6 +108,8 @@ struct dcerpc_binding;
 
 #define DCERPC_PACKET                  (1<<26)
 
+#define DCERPC_SMB1                    (1<<27)
+
 /* The following definitions come from ../librpc/rpc/dcerpc_error.c  */
 
 const char *dcerpc_errstr(TALLOC_CTX *mem_ctx, uint32_t fault_code);