summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-15 23:05:57 +0000
committerJeremy Allison <jra@samba.org>2003-07-15 23:05:57 +0000
commitc44a9d25a2bfff9d5ebede80f30e13e41aca797c (patch)
tree11dcb00a982f123ea0dd60bafe3e064a7e51d371 /source3/libsmb/clientgen.c
parent39de3249b0676a65cfbce23484d964f1e3334baa (diff)
downloadsamba-c44a9d25a2bfff9d5ebede80f30e13e41aca797c.tar.gz
samba-c44a9d25a2bfff9d5ebede80f30e13e41aca797c.tar.bz2
samba-c44a9d25a2bfff9d5ebede80f30e13e41aca797c.zip
Added the "required" keyword to the "client signing" parameter to force it
on. Fail if missmatch. Small format tidyups in smbd/sesssetup.c. Preparing to add signing on server side. Jeremy. (This used to be commit c390b3e4cd68cfc233ddf14d139e25d40f050f27)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 93fa94c1db..58c5ad8cd3 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -261,6 +261,9 @@ struct cli_state *cli_initialise(struct cli_state *cli)
if (lp_client_signing())
cli->sign_info.allow_smb_signing = True;
+
+ if (lp_client_signing() == Required)
+ cli->sign_info.mandatory_signing = True;
if (!cli->outbuf || !cli->inbuf)
goto error;