Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

security.h File Reference


Detailed Description

Security Policy Framework public header file for functions.

>

#include <hiker/types.h>
#include <sys/types.h>
#include <hiker/sysclass.h>
#include <unistd.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  AlpSPFIntroInstance
struct  AlpSPFIntroInfo

Defines

#define ALP_STATUS_SPF_E_NOERR   ( ALP_CLASS_SPF | 0x00 )
 Security Policy Framework constants.
#define ALP_STATUS_SPF_NO_SERVER   ( ALP_CLASS_SPF | 0x01 )
#define ALP_STATUS_SPF_INVALID_PARAM   ( ALP_CLASS_SPF | 0x02 )
#define ALP_STATUS_SPF_MEM_ERROR   ( ALP_CLASS_SPF | 0x03 )
#define ALP_SPF_T_STRING   0
#define ALP_SPF_T_BOOLEAN   1
#define ALP_SPF_T_INT   2
#define ALP_SPF_T_IPV4ADDR   3
#define ALP_SPF_T_PATH   4
#define ALP_SPF_T_URL   5
#define ALP_SPF_PKCS5_PIN   0
#define ALP_SPF_PKCS5_PUK   1

Typedefs

typedef unsigned int AlpSPFAssertionType
 SPF data structures AlpSecurityPolicy AlpSecurityResponse.
typedef unsigned int AlpPackageID

Functions

alp_status_t alp_spf_update_open (void)
 This function prepares the client for communication with the security service, creating message contexts and allocating buffers if necessary.
alp_status_t alp_spf_update (char *message, uint message_len)
 This function passes an update to the security service.
alp_status_t alp_spf_update_close (void)
 This function .....
alp_status_t alp_spf_ps_open (void)
 This function .....
alp_status_t alp_spf_ps_get_policyname_from_policy (unsigned int policy, char **policyname)
 This function ....
alp_status_t alp_spf_ps_get_policy_from_policyname (char *policyname, unsigned int *policy)
 This function ....
alp_status_t alp_spf_ps_packageid_increment (unsigned int packageid, unsigned int *out_count)
 This function ....
alp_status_t alp_spf_ps_packageid_decrement (unsigned int packageid, unsigned int *out_count)
 This function ....
alp_status_t alp_spf_ps_packageid_count (unsigned int packageid, unsigned int *out_count)
 This function ....
alp_status_t alp_spf_ps_get_policy_by_certificate (char *certificate, unsigned int certificate_length, unsigned int *policy)
 This function ....
alp_status_t alp_spf_ps_get_policy_by_gid (gid_t gid, unsigned int *policy)
 This function ....
alp_status_t alp_spf_ps_get_certificate_by_policy (unsigned int policy, char **certificate, unsigned int *certificate_length, char **certid, unsigned int *certid_length)
 This function ....
alp_status_t alp_spf_ps_get_gid_by_policy (unsigned int policy, gid_t *gid)
 This function ....
alp_status_t alp_spf_ps_get_policy_by_uid (uid_t uid, unsigned int *policy)
 This function ....
alp_status_t alp_spf_ps_get_policy_by_package (char *path, unsigned int path_length, unsigned int *out_policy)
 This function ....
alp_status_t alp_spf_ps_get_gids_length (unsigned int policy, unsigned int *size)
 This function ....
alp_status_t alp_spf_ps_get_uid_gid_gids_by_policy (unsigned int policy, uid_t *uid, gid_t *gid, gid_t *sgids[], unsigned int *sgids_length)
 This function ....
alp_status_t alp_prv_spf_ps_enroll_package (char *path, unsigned int path_length, unsigned int *out_packageid)
 This function ....
alp_status_t alp_spf_ps_close (void)
 This function .....
alp_status_t alp_spf_query_open (void)
 This function .....
alp_status_t alp_spf_query_set_subject_pid (pid_t subject_pid)
alp_status_t alp_spf_query_reset_subject_pid (void)
alp_status_t alp_spf_query_get_assertion_string (char *assertion, uint assertion_len, char **out_assertion_value)
 This function ....
alp_status_t alp_spf_query_get_assertion_int (char *assertion, uint assertion_len, int *out_assertion_value)
alp_status_t alp_spf_query_get_assertion_boolean (char *assertion, uint assertion_len, uint *out_assertion_value)
alp_status_t alp_spf_query_free_assertion_string (char *assertion, uint assertion_len)
 This function ....
alp_status_t alp_spf_query_assertion_type (char *assertion, uint assertion_len, AlpSPFAssertionType *out_type)
 This function ....
alp_status_t alp_spf_query_get_assertion_string_from_policy (char *policy, char *assertion, uint assertion_len, char **out_assertion_value)
 This function ....
alp_status_t alp_spf_query_get_assertion_int_from_policy (char *policy, char *assertion, uint assertion_len, int *out_assertion_value)
alp_status_t alp_spf_query_get_assertion_boolean_from_policy (char *policy, char *assertion, uint assertion_len, uint *out_assertion_value)
alp_status_t alp_spf_query_assertion_type_from_policy (char *policy, char *assertion, uint assertion_len, AlpSPFAssertionType *out_type)
alp_status_t alp_spf_query_close (void)
 This function .....
alp_status_t alp_spf_info (AlpSPFIntroInfo **out_info)
alp_status_t alp_spf_pkcs5_set (unsigned int which, char *phrase)
alp_status_t alp_spf_pkcs5_check (unsigned int which, char *phrase, unsigned int *correct)
alp_status_t alp_spf_pkcs5_params_get (unsigned int which, unsigned int *iteration, char **salt, unsigned int *active)
alp_status_t alp_spf_pkcs5_params_set (unsigned int which, unsigned int iteration, char *salt, unsigned int active)


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4