Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c27325cc
Commit
c27325cc
authored
Dec 12, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
realrtsp: cosmetics
parent
01bde5c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
modules/access/rtsp/real.c
modules/access/rtsp/real.c
+5
-6
modules/access/rtsp/real.h
modules/access/rtsp/real.h
+1
-1
No files found.
modules/access/rtsp/real.c
View file @
c27325cc
...
...
@@ -208,8 +208,7 @@ static void hash(char *field, char *param)
LE_32C
(
field
+
12
,
d
);
}
static
void
call_hash
(
char
*
key
,
char
*
challenge
,
int
len
)
{
static
void
call_hash
(
char
*
key
,
char
*
challenge
,
unsigned
int
len
)
{
uint8_t
*
ptr1
,
*
ptr2
;
uint32_t
a
,
b
,
c
,
d
,
tmp
;
...
...
@@ -221,7 +220,7 @@ static void call_hash (char *key, char *challenge, int len) {
a
+=
len
*
8
;
LE_32C
(
ptr1
,
a
);
if
(
a
<
(
uint32_t
)(
len
<<
3
))
if
(
a
<
(
len
<<
3
))
{
lprintf
(
"not verified: (len << 3) > a true
\n
"
);
ptr2
+=
4
;
...
...
@@ -231,14 +230,14 @@ static void call_hash (char *key, char *challenge, int len) {
LE_32C
(
ptr2
,
tmp
);
a
=
64
-
b
;
c
=
0
;
if
(
a
<=
(
uint32_t
)
len
)
if
(
a
<=
len
)
{
memcpy
(
key
+
b
+
24
,
challenge
,
a
);
hash
(
key
,
key
+
24
);
c
=
a
;
d
=
c
+
0x3f
;
while
(
d
<
(
uint32_t
)
len
)
{
while
(
d
<
len
)
{
lprintf
(
"not verified: while ( d < len )
\n
"
);
hash
(
key
,
challenge
+
d
-
0x3f
);
d
+=
64
;
...
...
@@ -304,7 +303,7 @@ static void calc_response_string (char *result, char *challenge) {
void
real_calc_response_and_checksum
(
char
*
response
,
char
*
chksum
,
char
*
challenge
)
{
int
ch_len
,
table_len
,
resp_len
;
int
ch_len
,
resp_len
;
int
i
;
char
*
ptr
;
char
buf
[
128
];
...
...
modules/access/rtsp/real.h
View file @
c27325cc
...
...
@@ -41,7 +41,7 @@
#ifdef REALDEBUG
# define lprintf printf
#else
static
inline
void
lprintf
(
const
char
*
dummy
,
...
)
{
}
static
inline
void
lprintf
(
const
char
*
dummy
,
...
)
{
(
void
)
dummy
;
}
#endif
int
real_get_rdt_chunk_header
(
rtsp_client_t
*
,
rmff_pheader_t
*
);
...
...
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