summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-02 19:00:57 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-03 16:55:13 +0100
commitb3f126b44cdffa9773d99a765a07a186997c9906 (patch)
treeb29d0189357f443efa9847af6f6a1962d709f606 /source3/lib
parenta7051dfcff9b739db91040b315b1892edecbf795 (diff)
downloadsamba-b3f126b44cdffa9773d99a765a07a186997c9906.tar.gz
samba-b3f126b44cdffa9773d99a765a07a186997c9906.tar.xz
samba-b3f126b44cdffa9773d99a765a07a186997c9906.zip
s3:lib: make use of SMB_SIGNING_* constants
metze
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_cmdline.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/lib/util_cmdline.c b/source3/lib/util_cmdline.c
index 542a6b4cda5..9fbdf77f191 100644
--- a/source3/lib/util_cmdline.c
+++ b/source3/lib/util_cmdline.c
@@ -104,16 +104,17 @@ void set_cmdline_auth_info_password(struct user_auth_info *auth_info,
bool set_cmdline_auth_info_signing_state(struct user_auth_info *auth_info,
const char *arg)
{
- auth_info->signing_state = -1;
+ auth_info->signing_state = SMB_SIGNING_DEFAULT;
if (strequal(arg, "off") || strequal(arg, "no") ||
strequal(arg, "false")) {
- auth_info->signing_state = false;
+ auth_info->signing_state = SMB_SIGNING_OFF;
} else if (strequal(arg, "on") || strequal(arg, "yes") ||
+ strequal(arg, "if_required") ||
strequal(arg, "true") || strequal(arg, "auto")) {
- auth_info->signing_state = true;
+ auth_info->signing_state = SMB_SIGNING_IF_REQUIRED;
} else if (strequal(arg, "force") || strequal(arg, "required") ||
strequal(arg, "forced")) {
- auth_info->signing_state = Required;
+ auth_info->signing_state = SMB_SIGNING_REQUIRED;
} else {
return false;
}