Create an access subject for given application.
#include <sys/credential/credential_policy.h>
int credential_access_subject_create_for_app(const char *app_id,
credential_app_access_subject_type_t app_type,
unsigned int flag,
credential_access_subject_t **app_subject)
BlackBerry 10.3.1
Application identifier. For a BAR-packaged application, this is the dname. For system services, this is the gid.
Application type.
Unused flag, reserved for future use.
On return, a pointer to the access subject structure. You must call credential_access_subject_release() to release this structure when you're done using it.
This function allocates a new credential_access_subject_t structure and initializes it for given application.
0 if operation was successful, error code otherwise.