CVE-2017-12150: libcli/smb: add smbXcli_conn_signing_mandatory()
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Aug 2017 13:35:49 +0000 (15:35 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 Sep 2017 11:04:10 +0000 (13:04 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12997

Signed-off-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h

index 54939546d0e8f785708989a854ace14691f97f8f..7322380d5018224bb71883961ed68dbadd8c7163 100644 (file)
@@ -468,6 +468,11 @@ bool smbXcli_conn_use_unicode(struct smbXcli_conn *conn)
        return false;
 }
 
+bool smbXcli_conn_signing_mandatory(struct smbXcli_conn *conn)
+{
+       return conn->mandatory_signing;
+}
+
 /*
  * [MS-SMB] 2.2.2.3.5 - SMB1 support for passing through
  * query/set commands to the file system
index 338f0a4886f24f30ef2b4177e422c2b4c7161240..d0ee04f4bb081166bd626d95d5aeb7417720f7a1 100644 (file)
@@ -47,6 +47,7 @@ bool smbXcli_conn_dfs_supported(struct smbXcli_conn *conn);
 
 enum protocol_types smbXcli_conn_protocol(struct smbXcli_conn *conn);
 bool smbXcli_conn_use_unicode(struct smbXcli_conn *conn);
+bool smbXcli_conn_signing_mandatory(struct smbXcli_conn *conn);
 bool smbXcli_conn_support_passthrough(struct smbXcli_conn *conn);
 
 void smbXcli_conn_set_sockopt(struct smbXcli_conn *conn, const char *options);