RDK Documentation (Open Sourced RDK Components)
playreadydrmsession.cpp File Reference

Playready Session management. More...

#include "config.h"
#include "playreadydrmsession.h"
#include <gst/gst.h>
#include <assert.h>
#include <iostream>
#include <sstream>
#include <string>
#include <string.h>
#include <vector>
#include <sys/utsname.h>
#include "priv_aamp.h"
Include dependency graph for playreadydrmsession.cpp:

Go to the source code of this file.

Macros

#define NYI_KEYSYSTEM   "keysystem-placeholder"
 

Functions

DRM_API DRM_RESULT DRM_CALL DRM_UTL_ReadNetworkBytesToNativeGUID (const DRM_BYTE *pbData, const DRM_DWORD cbData, DRM_DWORD ibGuidOffset, DRM_GUID *pDrmGuid)
 Read UUID from init data. More...
 

Variables

DRM_CONST_STRING g_dstrDrmPath
 
DRM_RESULT dr
 
const DRM_WCHAR g_rgwchCDMDrmStoreName []
 
const DRM_WCHAR g_rgwchCDMDrmPath []
 
const DRM_CONST_STRING g_dstChainTitle
 
const DRM_CONST_STRING g_dstrCDMDrmPath = CREATE_DRM_STRING(g_rgwchCDMDrmPath)
 
const DRM_CONST_STRING * g_rgpdstrRights [1]
 
static DRM_ID CLSID_PlayReadyProtectionSystemID
 
static DRM_ID PSSH_BOX_GUID
 

yes

Playready Session management.

Definition in file playreadydrmsession.cpp.

Function Documentation

◆ DRM_UTL_ReadNetworkBytesToNativeGUID()

DRM_API DRM_RESULT DRM_CALL DRM_UTL_ReadNetworkBytesToNativeGUID ( const DRM_BYTE *  pbData,
const DRM_DWORD  cbData,
DRM_DWORD  ibGuidOffset,
DRM_GUID *  pDrmGuid 
)

Read UUID from init data.

Parameters
pbData: Pointer to initdata
cbData: size of init data
ibGuidOffset: offset to uuid
pDrmGuid: Gets updated with uuid
Return values
DRM_SUCCESSif no errors encountered

Definition at line 81 of file playreadydrmsession.cpp.

Variable Documentation

◆ g_rgwchCDMDrmStoreName

const DRM_WCHAR g_rgwchCDMDrmStoreName[]
Initial value:
=
{ WCHAR_CAST('/'), WCHAR_CAST('o'), WCHAR_CAST('p'), WCHAR_CAST('t'),
WCHAR_CAST('/'), WCHAR_CAST('d'), WCHAR_CAST('r'), WCHAR_CAST('m'),
WCHAR_CAST('/'), WCHAR_CAST('p'), WCHAR_CAST('l'), WCHAR_CAST('a'),
WCHAR_CAST('y'), WCHAR_CAST('r'), WCHAR_CAST('e'), WCHAR_CAST('a'),
WCHAR_CAST('d'), WCHAR_CAST('y'), WCHAR_CAST('/'), WCHAR_CAST('d'),
WCHAR_CAST('r'), WCHAR_CAST('m'), WCHAR_CAST('s'), WCHAR_CAST('t'),
WCHAR_CAST('o'), WCHAR_CAST('r'), WCHAR_CAST('e'), WCHAR_CAST('.'),
WCHAR_CAST('d'), WCHAR_CAST('a'), WCHAR_CAST('t'), WCHAR_CAST('\0') }

Definition at line 44 of file playreadydrmsession.cpp.

◆ g_rgwchCDMDrmPath

const DRM_WCHAR g_rgwchCDMDrmPath[]
Initial value:
=
{ WCHAR_CAST('/'), WCHAR_CAST('o'), WCHAR_CAST('p'), WCHAR_CAST('t'),
WCHAR_CAST('/'), WCHAR_CAST('d'), WCHAR_CAST('r'), WCHAR_CAST('m'),
WCHAR_CAST('/'), WCHAR_CAST('p'), WCHAR_CAST('l'), WCHAR_CAST('a'),
WCHAR_CAST('y'), WCHAR_CAST('r'), WCHAR_CAST('e'), WCHAR_CAST('a'),
WCHAR_CAST('d'), WCHAR_CAST('y'), WCHAR_CAST('\0') }

Definition at line 55 of file playreadydrmsession.cpp.

◆ g_dstChainTitle

const DRM_CONST_STRING g_dstChainTitle
Initial value:
= CREATE_DRM_STRING(
g_rgwchCDMDrmStoreName)

Definition at line 62 of file playreadydrmsession.cpp.

◆ g_rgpdstrRights

const DRM_CONST_STRING* g_rgpdstrRights[1]
Initial value:
=
{ &g_dstrWMDRM_RIGHT_PLAYBACK }

Definition at line 65 of file playreadydrmsession.cpp.

◆ CLSID_PlayReadyProtectionSystemID

DRM_ID CLSID_PlayReadyProtectionSystemID
static
Initial value:
=
{ 0x79, 0xf0, 0x04, 0x9a, 0x40, 0x98, 0x86, 0x42, 0xab, 0x92, 0xe6, 0x5b, 0xe0,
0x88, 0x5f, 0x95 }

Definition at line 279 of file playreadydrmsession.cpp.

◆ PSSH_BOX_GUID

DRM_ID PSSH_BOX_GUID
static
Initial value:
=
{ 0x18, 0x4f, 0x8a, 0xd0, 0xf3, 0x10, 0x82, 0x4a, 0xb6, 0xc8, 0x32, 0xd8, 0xab,
0xa1, 0x83, 0xd3 }

Definition at line 284 of file playreadydrmsession.cpp.