diff options
author | Ralph Boehme <slow@samba.org> | 2015-12-16 09:55:37 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-04-12 19:25:26 +0200 |
commit | b720575f16d8a2006d10eb8a94c7134a30d5309d (patch) | |
tree | c36f252f4daaa0db61beb71859719e11592bb2cd /libcli | |
parent | a046ffd6cd9ab81af33d4ccf2e683acf5bb6c5eb (diff) | |
download | samba-b720575f16d8a2006d10eb8a94c7134a30d5309d.tar.gz |
CVE-2016-2115: s3:libsmb: add signing constant SMB_SIGNING_IPC_DEFAULT
SMB_SIGNING_IPC_DEFAULT must be used from s3 client code when opening
RPC connections.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11756
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smbXcli_base.c | 1 | ||||
-rw-r--r-- | libcli/smb/smb_constants.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 48388b617fc..6a717661846 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -382,6 +382,7 @@ struct smbXcli_conn *smbXcli_conn_create(TALLOC_CTX *mem_ctx, conn->desire_signing = true; conn->mandatory_signing = false; break; + case SMB_SIGNING_IPC_DEFAULT: case SMB_SIGNING_REQUIRED: /* always */ conn->allow_signing = true; diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index 563a574521f..57915d94722 100644 --- a/libcli/smb/smb_constants.h +++ b/libcli/smb/smb_constants.h @@ -95,6 +95,7 @@ enum protocol_types { #define PROTOCOL_LATEST PROTOCOL_SMB3_11 enum smb_signing_setting { + SMB_SIGNING_IPC_DEFAULT = -2, /* Only used in C code */ SMB_SIGNING_DEFAULT = -1, SMB_SIGNING_OFF = 0, SMB_SIGNING_IF_REQUIRED = 1, |