Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
69748437
Commit
69748437
authored
May 23, 2004
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* drms.c: Support for previews.
parent
d89f26ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+17
-6
No files found.
modules/demux/mp4/drms.c
View file @
69748437
...
...
@@ -30,7 +30,12 @@
# include <stdio.h>
#endif
#include <vlc/vlc.h>
#ifdef __VLC__
# include <vlc/vlc.h>
# include "libmp4.h"
#else
# include "drmsvl.h"
#endif
#ifdef HAVE_ERRNO_H
# include <errno.h>
...
...
@@ -67,8 +72,6 @@
#include "drms.h"
#include "drmstables.h"
#include "libmp4.h"
/*****************************************************************************
* aes_s: AES keys structure
*****************************************************************************
...
...
@@ -334,10 +337,18 @@ int drms_init( void *_p_drms, uint32_t i_type,
AddMD5
(
&
md5
,
p_drms
->
p_iviv
,
16
);
EndMD5
(
&
md5
);
if
(
GetUserKey
(
p_drms
,
p_drms
->
p_key
)
)
if
(
p_drms
->
i_user
==
0
&&
p_drms
->
i_key
==
0
)
{
i_ret
=
-
1
;
break
;
static
char
const
p_secret
[]
=
"tr1-th3n.y00_by3"
;
memcpy
(
p_drms
->
p_key
,
p_secret
,
16
);
}
else
{
if
(
GetUserKey
(
p_drms
,
p_drms
->
p_key
)
)
{
i_ret
=
-
1
;
break
;
}
}
InitAES
(
&
p_drms
->
aes
,
p_drms
->
p_key
);
...
...
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