Loading fs/cifs/cifs_debug.c +1 −3 Original line number Diff line number Diff line Loading @@ -221,8 +221,6 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) struct cifs_ses *ses; struct cifs_tcon *tcon; int i, j; const char *security_types[] = {"Unspecified", "LANMAN", "NTLM", "NTLMv2", "RawNTLMSSP", "Kerberos"}; seq_puts(m, "Display Internal CIFS Data Structures for Debugging\n" Loading Loading @@ -379,7 +377,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) } seq_printf(m,"Security type: %s\n", security_types[server->ops->select_sectype(server, ses->sectype)]); get_security_type_str(server->ops->select_sectype(server, ses->sectype))); if (server->rdma) seq_printf(m, "RDMA\n\t"); Loading fs/cifs/cifsglob.h +18 −0 Original line number Diff line number Diff line Loading @@ -2008,6 +2008,24 @@ extern struct smb_version_values smb302_values; extern struct smb_version_operations smb311_operations; extern struct smb_version_values smb311_values; static inline char *get_security_type_str(enum securityEnum sectype) { switch (sectype) { case RawNTLMSSP: return "RawNTLMSSP"; case Kerberos: return "Kerberos"; case NTLMv2: return "NTLMv2"; case NTLM: return "NTLM"; case LANMAN: return "LANMAN"; default: return "Unknown"; } } static inline bool is_smb1_server(struct TCP_Server_Info *server) { return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0; Loading Loading
fs/cifs/cifs_debug.c +1 −3 Original line number Diff line number Diff line Loading @@ -221,8 +221,6 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) struct cifs_ses *ses; struct cifs_tcon *tcon; int i, j; const char *security_types[] = {"Unspecified", "LANMAN", "NTLM", "NTLMv2", "RawNTLMSSP", "Kerberos"}; seq_puts(m, "Display Internal CIFS Data Structures for Debugging\n" Loading Loading @@ -379,7 +377,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) } seq_printf(m,"Security type: %s\n", security_types[server->ops->select_sectype(server, ses->sectype)]); get_security_type_str(server->ops->select_sectype(server, ses->sectype))); if (server->rdma) seq_printf(m, "RDMA\n\t"); Loading
fs/cifs/cifsglob.h +18 −0 Original line number Diff line number Diff line Loading @@ -2008,6 +2008,24 @@ extern struct smb_version_values smb302_values; extern struct smb_version_operations smb311_operations; extern struct smb_version_values smb311_values; static inline char *get_security_type_str(enum securityEnum sectype) { switch (sectype) { case RawNTLMSSP: return "RawNTLMSSP"; case Kerberos: return "Kerberos"; case NTLMv2: return "NTLMv2"; case NTLM: return "NTLM"; case LANMAN: return "LANMAN"; default: return "Unknown"; } } static inline bool is_smb1_server(struct TCP_Server_Info *server) { return strcmp(server->vals->version_string, SMB1_VERSION_STRING) == 0; Loading