Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9ab64854
Commit
9ab64854
authored
Oct 11, 2002
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change name of debug function to not conflict with optional jfs debug function
parent
164f9e55
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
fs/cifs/asn1.c
fs/cifs/asn1.c
+1
-1
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.c
+1
-1
fs/cifs/cifs_debug.h
fs/cifs/cifs_debug.h
+1
-1
fs/cifs/connect.c
fs/cifs/connect.c
+2
-5
No files found.
fs/cifs/asn1.c
View file @
9ab64854
...
@@ -458,7 +458,7 @@ decode_negTokenInit(unsigned char *security_blob, int length,
...
@@ -458,7 +458,7 @@ decode_negTokenInit(unsigned char *security_blob, int length,
unsigned
int
cls
,
con
,
tag
,
oidlen
,
rc
;
unsigned
int
cls
,
con
,
tag
,
oidlen
,
rc
;
int
use_ntlmssp
=
FALSE
;
int
use_ntlmssp
=
FALSE
;
dump_mem
(
" Received SecBlob "
,
security_blob
,
length
);
/* cifs_dump_mem(" Received SecBlob ", security_blob, length); */
asn1_open
(
&
ctx
,
security_blob
,
length
);
asn1_open
(
&
ctx
,
security_blob
,
length
);
...
...
fs/cifs/cifs_debug.c
View file @
9ab64854
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "cifs_debug.h"
#include "cifs_debug.h"
void
void
dump_mem
(
char
*
label
,
void
*
data
,
int
length
)
cifs_
dump_mem
(
char
*
label
,
void
*
data
,
int
length
)
{
{
int
i
,
j
;
int
i
,
j
;
int
*
intptr
=
data
;
int
*
intptr
=
data
;
...
...
fs/cifs/cifs_debug.h
View file @
9ab64854
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#ifndef _H_CIFS_DEBUG
#ifndef _H_CIFS_DEBUG
#define _H_CIFS_DEBUG
#define _H_CIFS_DEBUG
void
dump_mem
(
char
*
label
,
void
*
data
,
int
length
);
void
cifs_
dump_mem
(
char
*
label
,
void
*
data
,
int
length
);
extern
int
traceSMB
;
/* flag which enables the function below */
extern
int
traceSMB
;
/* flag which enables the function below */
void
dump_smb
(
struct
smb_hdr
*
,
int
);
void
dump_smb
(
struct
smb_hdr
*
,
int
);
...
...
fs/cifs/connect.c
View file @
9ab64854
...
@@ -168,7 +168,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
...
@@ -168,7 +168,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
}
else
if
(
temp
[
0
]
!=
(
char
)
0
)
{
}
else
if
(
temp
[
0
]
!=
(
char
)
0
)
{
cERROR
(
1
,
cERROR
(
1
,
(
"
\n
Unknown RFC 1001 frame received not 0x00 nor 0x85"
));
(
"
\n
Unknown RFC 1001 frame received not 0x00 nor 0x85"
));
dump_mem
(
" Received Data is: "
,
temp
,
length
);
cifs_
dump_mem
(
" Received Data is: "
,
temp
,
length
);
break
;
break
;
}
else
{
}
else
{
if
((
length
!=
sizeof
(
struct
smb_hdr
)
-
1
)
if
((
length
!=
sizeof
(
struct
smb_hdr
)
-
1
)
...
@@ -757,8 +757,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
...
@@ -757,8 +757,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
/* Removed following few lines to not send old style password
/* Removed following few lines to not send old style password
hash ever - for better security */
hash ever - for better security */
/* toUpper(cifs_sb->local_nls, password_with_pad);
/* toUpper(cifs_sb->local_nls, password_with_pad);
SMBencrypt(password_with_pad, cryptKey,session_key);
SMBencrypt(password_with_pad, cryptKey,session_key); */
dump_mem("\nCIFS (Samba encrypt): ", session_key,CIFS_SESSION_KEY_SIZE); */
rc
=
CIFSSessSetup
(
xid
,
pSesInfo
,
rc
=
CIFSSessSetup
(
xid
,
pSesInfo
,
volume_info
.
username
,
volume_info
.
username
,
...
@@ -989,7 +988,6 @@ CIFSSessSetup(unsigned int xid, struct cifsSesInfo *ses, char *user,
...
@@ -989,7 +988,6 @@ CIFSSessSetup(unsigned int xid, struct cifsSesInfo *ses, char *user,
rc
=
SendReceive
(
xid
,
ses
,
smb_buffer
,
smb_buffer_response
,
rc
=
SendReceive
(
xid
,
ses
,
smb_buffer
,
smb_buffer_response
,
&
bytes_returned
,
1
);
&
bytes_returned
,
1
);
/* dump_mem("\nSessSetup response is: ", smb_buffer_response, 92);*/
if
(
rc
)
{
if
(
rc
)
{
/* rc = map_smb_to_linux_error(smb_buffer_response); now done in SendReceive */
/* rc = map_smb_to_linux_error(smb_buffer_response); now done in SendReceive */
}
else
if
((
smb_buffer_response
->
WordCount
==
3
)
}
else
if
((
smb_buffer_response
->
WordCount
==
3
)
...
@@ -1235,7 +1233,6 @@ CIFSSpnegoSessSetup(unsigned int xid, struct cifsSesInfo *ses,
...
@@ -1235,7 +1233,6 @@ CIFSSpnegoSessSetup(unsigned int xid, struct cifsSesInfo *ses,
rc
=
SendReceive
(
xid
,
ses
,
smb_buffer
,
smb_buffer_response
,
rc
=
SendReceive
(
xid
,
ses
,
smb_buffer
,
smb_buffer_response
,
&
bytes_returned
,
1
);
&
bytes_returned
,
1
);
/* dump_mem("\nSessSetup response is: ", smb_buffer_response, 92); */
if
(
rc
)
{
if
(
rc
)
{
/* rc = map_smb_to_linux_error(smb_buffer_response); *//* done in SendReceive now */
/* rc = map_smb_to_linux_error(smb_buffer_response); *//* done in SendReceive now */
}
else
if
((
smb_buffer_response
->
WordCount
==
3
)
}
else
if
((
smb_buffer_response
->
WordCount
==
3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment