vitasdk
Documentation of the vitasdk
npdrm.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>
#include <psp2/psmdrm.h>
#include <psp2common/npdrm.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  SceNpDrmCheckActDataOpt
 
struct  SceNpDrmCheckDrmResetOpt
 
struct  SceNpDrmGetRifInfoOpt
 Optional outputs for _sceNpDrmGetRifInfo. More...
 

Functions

int _sceNpDrmGetRifName (char *rif_name, uint64_t aid)
 Get rif name.
 
int _sceNpDrmGetFixedRifName (char *rif_name, uint64_t aid)
 Get fixed rif name.
 
int _sceNpDrmCheckActData (int *act_type, int *version_flag, SceUInt64 *account_id, SceUInt64 opt[2])
 Check you have npdrm activation data, and get information from it.
 
int _sceNpDrmGetRifNameForInstall (char *rif_name, const SceNpDrmLicense *rif_data, int is_fixed)
 Get rif name for install.
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceNpDrmCheckActDataOpt)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceNpDrmCheckDrmResetOpt)
 
 VITASDK_BUILD_ASSERT_EQ (0x28, SceNpDrmGetRifInfoOpt)
 
int _sceNpDrmCheckDrmReset (const void *input, SceSize input_size, const SceNpDrmCheckDrmResetOpt *opt)
 Check whether activation data must be reset.
 
int _sceNpDrmGetRifInfo (const SceNpDrmLicense *license, SceSize license_size, SceBool check_sign, const SceNpDrmGetRifInfoOpt *opt)
 Get RIF information.
 
int _sceNpDrmPresetRifProvisionalFlag (SceNpDrmLicense *license)
 Set the provisional flag in a RIF.
 
int _sceNpDrmRemoveActData (SceUInt64 *account_id)
 Remove tm0:/npdrm/act.dat and clear the cached activation data.