Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
38d7da29
Commit
38d7da29
authored
Jan 28, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update.c verify_signature(): remove unused parameter
parent
358bcd05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/misc/update.c
src/misc/update.c
+6
-7
No files found.
src/misc/update.c
View file @
38d7da29
...
...
@@ -438,7 +438,7 @@ static int download_signature( vlc_object_t *p_this,
/*
* Verify an OpenPGP signature made on some SHA-1 hash, with some DSA public key
*/
static
int
verify_signature
(
vlc_object_t
*
p_this
,
uint8_t
*
p_r
,
uint8_t
*
p_s
,
static
int
verify_signature
(
uint8_t
*
p_r
,
uint8_t
*
p_s
,
public_key_packet_t
*
p_key
,
uint8_t
*
p_hash
)
{
/* the data to be verified (a SHA-1 hash) */
...
...
@@ -998,8 +998,7 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
goto
error
;
}
if
(
verify_signature
(
VLC_OBJECT
(
p_update
->
p_libvlc
),
p_new_pkey
->
sig
.
r
,
p_new_pkey
->
sig
.
s
,
if
(
verify_signature
(
p_new_pkey
->
sig
.
r
,
p_new_pkey
->
sig
.
s
,
&
p_update
->
p_pkey
->
key
,
p_hash
)
==
VLC_SUCCESS
)
{
free
(
p_hash
);
...
...
@@ -1050,8 +1049,8 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
goto
error
;
}
if
(
verify_signature
(
VLC_OBJECT
(
p_update
->
p_libvlc
),
sign
.
r
,
sign
.
s
,
&
p_update
->
p_pkey
->
key
,
p_hash
)
!=
VLC_SUCCESS
)
if
(
verify_signature
(
sign
.
r
,
sign
.
s
,
&
p_update
->
p_pkey
->
key
,
p_hash
)
!=
VLC_SUCCESS
)
{
msg_Err
(
p_update
->
p_libvlc
,
"BAD SIGNATURE for status file"
);
free
(
p_hash
);
...
...
@@ -1368,8 +1367,8 @@ void update_DownloadReal( update_download_thread_t *p_udt )
goto
end
;
}
if
(
verify_signature
(
VLC_OBJECT
(
p_udt
),
sign
.
r
,
sign
.
s
,
&
p_update
->
p_pkey
->
key
,
p_hash
)
!=
VLC_SUCCESS
)
if
(
verify_signature
(
sign
.
r
,
sign
.
s
,
&
p_update
->
p_pkey
->
key
,
p_hash
)
!=
VLC_SUCCESS
)
{
utf8_unlink
(
psz_destfile
);
intf_UserFatal
(
p_udt
,
VLC_TRUE
,
_
(
"File corrupted"
),
...
...
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