summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshare/smb/libshare_smb.c
diff options
context:
space:
mode:
authorMatt Barden <matt.barden@nexenta.com>2017-04-18 08:42:45 -0400
committerGordon Ross <gwr@nexenta.com>2019-08-10 10:04:10 -0400
commit3e2c0c0978d26f8b8020b49760008c6bb6e59221 (patch)
tree248bc80c9af58bb9dcdfaf775cffadfa78e6e3d5 /usr/src/lib/libshare/smb/libshare_smb.c
parent11eb14c0b4910a2d5a319fe0b5bf5c633fbfbfa6 (diff)
downloadillumos-gate-3e2c0c0978d26f8b8020b49760008c6bb6e59221.tar.gz
11023 SMB server min_protocol setting
Reviewed by: Gordon Ross <gordon.ross@nexenta.com> Reviewed by: Evan Layton <evan.layton@nexenta.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/lib/libshare/smb/libshare_smb.c')
-rw-r--r--usr/src/lib/libshare/smb/libshare_smb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/lib/libshare/smb/libshare_smb.c b/usr/src/lib/libshare/smb/libshare_smb.c
index 7a731820e0..6a0ad97b7f 100644
--- a/usr/src/lib/libshare/smb/libshare_smb.c
+++ b/usr/src/lib/libshare/smb/libshare_smb.c
@@ -84,7 +84,7 @@ static int hostname_validator(int, char *);
static int path_validator(int, char *);
static int cmd_validator(int, char *);
static int disposition_validator(int, char *);
-static int max_protocol_validator(int, char *);
+static int protocol_validator(int, char *);
static int require_validator(int, char *);
static int smb_enable_resource(sa_resource_t);
@@ -918,10 +918,12 @@ struct smb_proto_option_defs {
SMB_REFRESH_REFRESH },
{ SMB_CI_DISPOSITION, 0, MAX_VALUE_BUFLEN,
disposition_validator, SMB_REFRESH_REFRESH },
- { SMB_CI_MAX_PROTOCOL, 0, MAX_VALUE_BUFLEN, max_protocol_validator,
+ { SMB_CI_MAX_PROTOCOL, 0, MAX_VALUE_BUFLEN, protocol_validator,
SMB_REFRESH_REFRESH },
{ SMB_CI_ENCRYPT, 0, MAX_VALUE_BUFLEN, require_validator,
SMB_REFRESH_REFRESH },
+ { SMB_CI_MIN_PROTOCOL, 0, MAX_VALUE_BUFLEN, protocol_validator,
+ SMB_REFRESH_REFRESH },
{ SMB_CI_OPLOCK_ENABLE, 0, 0, true_false_validator,
SMB_REFRESH_REFRESH },
};
@@ -2389,7 +2391,7 @@ disposition_validator(int index, char *value)
/*ARGSUSED*/
static int
-max_protocol_validator(int index, char *value)
+protocol_validator(int index, char *value)
{
if (value == NULL)
return (SA_BAD_VALUE);