Exports for User.
More...
|
| | VITASDK_BUILD_ASSERT_EQ (0x10, ScePsmDrmGetActInfoOpt) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x10, ScePsmDrmGetRifInfoOpt) |
| |
| int | scePsmDrmGetRifKey (const ScePsmDrmLicense *license_buf, ScePsmDrmKeySet *keydata, int *version_flag, ScePsmDrmExpireTime *exp_time) |
| | Get a PSM RIF key set.
|
| |
| int | scePsmDrmGetActInfo (SceUInt32 *act_type, SceUInt32 *version_flag, SceUInt64 *account_id, const ScePsmDrmGetActInfoOpt *opt) |
| | Get PSM activation information.
|
| |
| int | scePsmDrmGetRifInfo (const ScePsmDrmLicense *license, char *content_id, SceUInt64 *account_id, const ScePsmDrmGetRifInfoOpt *opt) |
| | Get PSM RIF information.
|
| |
| int | scePsmDrmGetRifName (char *rif_name) |
| | Get the fixed PSM RIF name.
|
| |
| int | scePsmDrmGetRifNameForInstall (char *rif_name, const ScePsmDrmLicense *license) |
| | Get the installation name for a PSM RIF.
|
| |
| int | scePsmDrmRemoveActData (SceUInt64 *account_id) |
| | Remove tm0:/psmdrm/act.dat and clear the cached PSM activation data.
|
| |
Exports for User.
Using this library in your project
Include the header file in your project:
Link the library to the executable:
◆ ScePsmDrmGetActInfoOpt
| struct ScePsmDrmGetActInfoOpt |
| Data Fields |
|
SceRtcTick * |
act_start_time |
Optional activation start time output. |
|
SceRtcTick * |
act_exp_time |
Optional activation expiration time output. |
|
SceUInt32 |
reserved[2] |
Ignored on FW 3.60. |
◆ ScePsmDrmGetRifInfoOpt
| struct ScePsmDrmGetRifInfoOpt |
| Data Fields |
|
SceRtcTick * |
lic_start_time |
Optional license start time output. |
|
SceRtcTick * |
lic_exp_time |
Optional license expiration time output. |
|
SceUInt32 |
reserved[2] |
Ignored on FW 3.60. |
◆ VITASDK_BUILD_ASSERT_EQ() [1/2]
◆ VITASDK_BUILD_ASSERT_EQ() [2/2]
◆ scePsmDrmGetRifKey()
Get a PSM RIF key set.
This function is restricted to a PSM runtime process on FW 3.60.
- Parameters
-
| [in] | license_buf | - Required RIF buffer (0x400 bytes) |
| [out] | keydata | - Required decrypted key set output |
| [out] | version_flag | - Optional activation version flag output; receives a SceUInt32 value. |
| [in] | exp_time | - Required structure containing optional license start and expiration time output pointers. The structure itself is not modified, but remains non-const for backwards compatibility. |
The returned start time is the later of the activation and license start times. The returned expiration time is the earlier of their expiration times.
- Returns
- 0 on success, < 0 on error.
◆ scePsmDrmGetActInfo()
Get PSM activation information.
- Parameters
-
| [out] | act_type | - Optional activation type output |
| [out] | version_flag | - Optional activation version flag output |
| [out] | account_id | - Optional activated account ID output |
| [in] | opt | - Required structure containing optional activation start and expiration time output pointers |
- Returns
- 0 on success, < 0 on error.
◆ scePsmDrmGetRifInfo()
Get PSM RIF information.
- Parameters
-
| [in] | license | - Required PSM RIF data (0x400 bytes) |
| [out] | content_id | - Optional content ID buffer (0x30 bytes) |
| [out] | account_id | - Optional license account ID output |
| [in] | opt | - Required structure containing optional license start and expiration time output pointers |
- Returns
- 0 on success, < 0 on error.
◆ scePsmDrmGetRifName()
| int scePsmDrmGetRifName |
( |
char * |
rif_name | ) |
|
Get the fixed PSM RIF name.
- Parameters
-
| [out] | rif_name | - Required RIF name buffer (0x30 bytes) |
- Returns
- 0 on success, < 0 on error.
◆ scePsmDrmGetRifNameForInstall()
| int scePsmDrmGetRifNameForInstall |
( |
char * |
rif_name, |
|
|
const ScePsmDrmLicense * |
license |
|
) |
| |
Get the installation name for a PSM RIF.
- Parameters
-
| [out] | rif_name | - Required RIF name buffer (0x30 bytes) |
| [in] | license | - Required PSM RIF data (0x400 bytes) |
- Returns
- 0 on success, < 0 on error.
◆ scePsmDrmRemoveActData()
| int scePsmDrmRemoveActData |
( |
SceUInt64 * |
account_id | ) |
|
Remove tm0:/psmdrm/act.dat and clear the cached PSM activation data.
- Parameters
-
| [out] | account_id | - Optional account ID from the removed act.dat |
- Returns
- 0 on success, < 0 on error.
◆ act_start_time
| SceRtcTick* ScePsmDrmGetActInfoOpt::act_start_time |
Optional activation start time output.
◆ act_exp_time
Optional activation expiration time output.
◆ reserved [1/2]
| SceUInt32 ScePsmDrmGetActInfoOpt::reserved[2] |
◆ lic_start_time
| SceRtcTick* ScePsmDrmGetRifInfoOpt::lic_start_time |
Optional license start time output.
◆ lic_exp_time
Optional license expiration time output.
◆ reserved [2/2]
| SceUInt32 ScePsmDrmGetRifInfoOpt::reserved[2] |