summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-07-19 07:32:08 +0200
committerKarolin Seeger <kseeger@samba.org>2018-08-13 12:56:33 +0200
commitd23a1c1ff8279bdfce7ee48ecca2e6862690448a (patch)
tree2f530624627d6f817fd2f2c24175d5c3d7976fa2 /librpc
parentb336179c60631b26da6b0ea5472d919c990c1198 (diff)
downloadsamba-d23a1c1ff8279bdfce7ee48ecca2e6862690448a.tar.gz
librpc: add binding handle support for [smb1]
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)
Diffstat (limited to 'librpc')
-rw-r--r--librpc/rpc/binding.c1
-rw-r--r--librpc/rpc/rpc_common.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index 63ba682a577..aa8cc6b46c6 100644
--- a/librpc/rpc/binding.c
+++ b/librpc/rpc/binding.c
@@ -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},
diff --git a/librpc/rpc/rpc_common.h b/librpc/rpc/rpc_common.h
index d6b2d5dbc05..cdc9fe8ac88 100644
--- a/librpc/rpc/rpc_common.h
+++ b/librpc/rpc/rpc_common.h
@@ -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);