1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (C) 2020, Microsoft Corporation. 4 * 5 * Author(s): Steve French <stfrench@microsoft.com> 6 * David Howells <dhowells@redhat.com> 7 */ 8 9 #ifndef _FS_CONTEXT_H 10 #define _FS_CONTEXT_H 11 12 #include <linux/parser.h> 13 #include "cifsglob.h" 14 15 enum smb_version { 16 Smb_1 = 1, 17 Smb_20, 18 Smb_21, 19 Smb_30, 20 Smb_302, 21 Smb_311, 22 Smb_3any, 23 Smb_default, 24 Smb_version_err 25 }; 26 27 int cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3); 28 29 enum { 30 Opt_cache_loose, 31 Opt_cache_strict, 32 Opt_cache_none, 33 Opt_cache_ro, 34 Opt_cache_rw, 35 Opt_cache_err 36 }; 37 38 int cifs_parse_cache_flavor(char *value, struct smb_vol *vol); 39 40 enum cifs_sec_param { 41 Opt_sec_krb5, 42 Opt_sec_krb5i, 43 Opt_sec_krb5p, 44 Opt_sec_ntlmsspi, 45 Opt_sec_ntlmssp, 46 Opt_ntlm, 47 Opt_sec_ntlmi, 48 Opt_sec_ntlmv2, 49 Opt_sec_ntlmv2i, 50 Opt_sec_lanman, 51 Opt_sec_none, 52 53 Opt_sec_err 54 }; 55 56 int cifs_parse_security_flavors(char *value, struct smb_vol *vol); 57 58 #endif 59