credential_access_subject_create_for_app()

Create an access subject for given application.

Synopsis:

#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)

Since:

BlackBerry 10.3.1

Arguments:

app_id

Application identifier. For a BAR-packaged application, this is the dname. For system services, this is the gid.

app_type

Application type.

flag

Unused flag, reserved for future use.

app_subject

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.

Library:

libcredential (For the qcc command, use the -l bps option to link against this library)

Description:

This function allocates a new credential_access_subject_t structure and initializes it for given application.

Returns:

0 if operation was successful, error code otherwise.