Changeset 6cd26fbcc7f7f35f4efa8438f2a064c982574358
- Timestamp:
- 10/03/08 00:12:18
(9 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1205104338 +0100
- git-parent:
[0f234aafbef405e2be5b59aa72899378f47d7377]
- git-author:
- Rafaël Carré <funman@videolan.org> 1205096127 +0100
- Message:
check if the binary signature was issued by the public key we got in memory, before real cryptographic verification
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r873c583 |
r6cd26fb |
|
| 1369 | 1369 | } |
|---|
| 1370 | 1370 | |
|---|
| | 1371 | if( memcmp( sign.issuer_longid, p_update->p_pkey->longid, 8 ) ) |
|---|
| | 1372 | { |
|---|
| | 1373 | utf8_unlink( psz_destfile ); |
|---|
| | 1374 | msg_Err( p_udt, "Invalid signature issuer" ); |
|---|
| | 1375 | intf_UserFatal( p_udt, VLC_TRUE, _("Invalid signature"), |
|---|
| | 1376 | _("The cryptographic signature for downloaded file \"%s\" was " |
|---|
| | 1377 | "invalid and couldn't be used to securely verify it, and so " |
|---|
| | 1378 | "VLC deleted it."), |
|---|
| | 1379 | psz_destfile ); |
|---|
| | 1380 | goto end; |
|---|
| | 1381 | } |
|---|
| | 1382 | |
|---|
| 1371 | 1383 | if( sign.type != BINARY_SIGNATURE ) |
|---|
| 1372 | 1384 | { |
|---|