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

Security Policy Framework


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)


Define Documentation

#define ALP_SPF_PKCS5_PIN   0
 

PKCS5 selector: pin

#define ALP_SPF_PKCS5_PUK   1
 

PKCS5 selector: puk

#define ALP_SPF_T_BOOLEAN   1
 

assertion type code : boolean

#define ALP_SPF_T_INT   2
 

assertion type code : int

#define ALP_SPF_T_IPV4ADDR   3
 

assertion type code : IPv4 address

#define ALP_SPF_T_PATH   4
 

assertion type code : file or directory path

#define ALP_SPF_T_STRING   0
 

assertion type code : string

#define ALP_SPF_T_URL   5
 

assertion type code : url

#define ALP_STATUS_SPF_E_NOERR   ( ALP_CLASS_SPF | 0x00 )
 

Security Policy Framework constants.

error_code: no error

#define ALP_STATUS_SPF_INVALID_PARAM   ( ALP_CLASS_SPF | 0x02 )
 

error_code: null or invalid parameter passed to call

#define ALP_STATUS_SPF_MEM_ERROR   ( ALP_CLASS_SPF | 0x03 )
 

error_code: error allocating memory

#define ALP_STATUS_SPF_NO_SERVER   ( ALP_CLASS_SPF | 0x01 )
 

error_code: client cannot connect to server


Typedef Documentation

typedef unsigned int AlpPackageID
 

typedef unsigned int AlpSPFAssertionType
 

SPF data structures AlpSecurityPolicy AlpSecurityResponse.


Function Documentation

alp_status_t alp_prv_spf_ps_enroll_package char *  path,
unsigned int  path_length,
unsigned int *  out_packageid
 

This function ....

Parameters:
[in] path,: 
[in] path_length,: 
[out] out_packageid,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_info AlpSPFIntroInfo **  out_info  ) 
 

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
 

alp_status_t alp_spf_pkcs5_set unsigned int  which,
char *  phrase
 

alp_status_t alp_spf_ps_close void   ) 
 

This function .....

Returns:
Returns ALP_STATUS_SPF_E_NOERR .....

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 ....

Parameters:
[in] policy,: 
[out] certificate,: 
[out] certificate_length,: 
[out] certid,: 
[out] certid_length,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_gid_by_policy unsigned int  policy,
gid_t *  gid
 

This function ....

Parameters:
[in] policy,: 
[out] gid,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_gids_length unsigned int  policy,
unsigned int *  size
 

This function ....

Parameters:
[in] policy,: 
[out] size,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_policy_by_certificate char *  certificate,
unsigned int  certificate_length,
unsigned int *  policy
 

This function ....

Parameters:
[in] certificate,: The RFC1113/BASE64 encoding of the certificate associated with the policy you're interested in finding.
[in] certificate_length,: The length certificate encoding
[out] policy,: The policy associated with the given certificate. Or 0 if the certificate given does not map to any policy.
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_policy_by_gid gid_t  gid,
unsigned int *  policy
 

This function ....

Parameters:
[in] gid,: 
[out] policy,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_policy_by_package char *  path,
unsigned int  path_length,
unsigned int *  out_policy
 

This function ....

Parameters:
[in] path,: 
[in] path_length,: 
[out] out_policy,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_policy_by_uid uid_t  uid,
unsigned int *  policy
 

This function ....

Parameters:
[in] uid,: 
[out] policy,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_policy_from_policyname char *  policyname,
unsigned int *  policy
 

This function ....

Parameters:
[out] policyname,: The policyname input to get the policy from .......
[in] policy,: Reference to the extracted policy ....
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_get_policyname_from_policy unsigned int  policy,
char **  policyname
 

This function ....

Parameters:
[in] policy,: The policy input to get the policyname from .......
[out] policyname,: Reference to the extracted policy name ....
Returns:
ALP_STATUS_SPF_E_NOERR ....

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 ....

Parameters:
[in] policy,: 
[out] uid,: 
[out] gid,: 
[out] sgids,: 
[out] sgids_length,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_open void   ) 
 

This function .....

Returns:
Returns ALP_STATUS_SPF_E_NOERR .....

alp_status_t alp_spf_ps_packageid_count unsigned int  packageid,
unsigned int *  out_count
 

This function ....

Parameters:
[in] packageid,: The PackageID of the package in question
[out] out_count,: The reference count of the package.
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_packageid_decrement unsigned int  packageid,
unsigned int *  out_count
 

This function ....

Parameters:
[in] packageid,: The PackageID of the package in question
[out] out_count,: The reference count of the package before decrementing.
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_ps_packageid_increment unsigned int  packageid,
unsigned int *  out_count
 

This function ....

Parameters:
[in] packageid,: The PackageID of the package in question
[out] out_count,: The reference count of the package before incrementing
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_query_assertion_type char *  assertion,
uint  assertion_len,
AlpSPFAssertionType out_type
 

This function ....

Parameters:
[in] assertion,: 
[in] assertion_len,: 
[out] out_type,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

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 .....

Returns:
Returns ALP_STATUS_SPF_E_NOERR .....

alp_status_t alp_spf_query_free_assertion_string char *  assertion,
uint  assertion_len
 

This function ....

Parameters:
[in] assertion,: 
[in] assertion_len,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_query_get_assertion_boolean char *  assertion,
uint  assertion_len,
uint *  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_get_assertion_int char *  assertion,
uint  assertion_len,
int *  out_assertion_value
 

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_string char *  assertion,
uint  assertion_len,
char **  out_assertion_value
 

This function ....

Parameters:
[in] assertion,: 
[in] assertion_len,: 
[out] out_assertion_value,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_query_get_assertion_string_from_policy char *  policy,
char *  assertion,
uint  assertion_len,
char **  out_assertion_value
 

This function ....

Parameters:
[in] policy,: 
[out] assertion,: 
[out] assertion_len,: 
[out] out_assertion_value,: 
Returns:
ALP_STATUS_SPF_E_NOERR ....

alp_status_t alp_spf_query_open void   ) 
 

This function .....

Returns:
Returns ALP_STATUS_SPF_E_NOERR .....

alp_status_t alp_spf_query_reset_subject_pid void   ) 
 

alp_status_t alp_spf_query_set_subject_pid pid_t  subject_pid  ) 
 

alp_status_t alp_spf_update char *  message,
uint  message_len
 

This function passes an update to the security service.

Parameters:
[in] message,: The policy to be updated in a signed message format.
[in] message_len,: Then length of the passed in message.
Returns:
ALP_STATUS_SPF_E_NOERR if successful, ALP_STATUS_SPF_NO_SERVER if the security service is unreachable or ALP_STATUS_SPF_INVALID_PARAM for any other error.

alp_status_t alp_spf_update_close void   ) 
 

This function .....

Returns:
Returns ALP_STATUS_SPF_E_NOERR .....

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.

Returns:
Returns ALP_STATUS_SPF_E_NOERR if successful, ALP_STATUS_SPF_NO_SERVER otherwise.


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