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
3aa161ad
Commit
3aa161ad
authored
Feb 02, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more of the same.
parent
cacd01db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/misc/update.c
src/misc/update.c
+7
-3
No files found.
src/misc/update.c
View file @
3aa161ad
...
...
@@ -667,7 +667,10 @@ static uint8_t *hash_sha1_from_file( const char *psz_file,
fclose
(
f
);
gcry_md_final
(
hd
);
return
(
(
uint8_t
*
)
gcry_md_read
(
hd
,
GCRY_MD_SHA1
)
);
uint8_t
*
p_hash
=
(
uint8_t
*
)
gcry_md_read
(
hd
,
GCRY_MD_SHA1
);
p_hash
=
strdup
(
p_hash
);
gcry_md_close
(
hd
);
return
p_hash
;
}
/*
...
...
@@ -803,10 +806,12 @@ static uint8_t *key_sign_hash( public_key_t *p_pkey )
if
(
p_hash
[
0
]
!=
p_pkey
->
sig
.
hash_verification
[
0
]
||
p_hash
[
1
]
!=
p_pkey
->
sig
.
hash_verification
[
1
]
)
{
free
(
p_hash
);
gcry_md_close
(
hd
);
return
NULL
;
}
p_hash
=
strdup
(
p_hash
);
gcry_md_close
(
hd
);
return
p_hash
;
}
...
...
@@ -1045,7 +1050,6 @@ static vlc_bool_t GetUpdateFile( update_t *p_update )
p_hash
[
1
]
!=
sign
.
hash_verification
[
1
]
)
{
msg_Warn
(
p_update
->
p_libvlc
,
"Bad SHA1 hash for status file"
);
free
(
p_hash
);
goto
error
;
}
...
...
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