creds_store.h File Reference

libcredstore interface More...

Go to the source code of this file.

Data Structures

struct  creds_store_funcs
 struct with function pointers to use credstore More...

Defines

#define XOS_CREDENTIAL_MAXSIZE   10000
 the maximun credential size (in bytes)

Typedefs

typedef struct creds_store_funcsxoscredstore_h

Functions

struct creds_store_funcsget_creds_store_funcs ()
 get function pointers of available credstore default implementation
struct creds_store_funcsget_creds_store_funcs_by_impl (char *impl)
 get function pointers of requested credstore implementation


Detailed Description

libcredstore interface

This file should be included by any application or library that use libcredstore API directly. It's not needed in applications that use xos_getcred.


Define Documentation

#define XOS_CREDENTIAL_MAXSIZE   10000

the maximun credential size (in bytes)

in KRS implementation, 10,000 bytes is a limit per user, that includes also metadata and names (if you use KRS, ensure that this limit is below 9800 to make space metadata). ZKRS implementation compress the credential, but compress ratio is not predectible


Function Documentation

struct creds_store_funcs* get_creds_store_funcs (  )  [read]

get function pointers of available credstore default implementation

If kernel supports Key Retention Service, default implementation is zkrs ( KRS with key compress). If KRS is not available, default implementation is uskeystore.

Return values:
function pointers of credstore implementation
NULL if failure

struct creds_store_funcs* get_creds_store_funcs_by_impl ( char *  impl  )  [read]

get function pointers of requested credstore implementation

Currently, there are three implementations available:

  • krs: use kernel Key Retention Service.
  • zkrs: as krs, but compress/descompress credentials automatically.
  • uskeystore: a user space implementation, based in a daemon for credstore.
Return values:
function pointers of credstore implementation
NULL if failure


Generated on Tue May 5 09:03:28 2009 for libcredstore by  doxygen 1.5.6