dazukoio_core.h File Reference

#include <stdio.h>
#include "dazukoio_platform.h"
#include "dazuko_transport.h"

Go to the source code of this file.

Defines

#define ITOA_SIZE   64

Functions

int xp_connection_open (struct dazuko_id *id)
int xp_connection_close (struct dazuko_id *id)
int xp_verify_id (struct dazuko_id *id)
int xp_process_request (struct dazuko_id *id, const char *buffer, size_t buffer_size)
int dazuko_get_value (const char *key, const char *string, char *buffer, size_t buffer_size)


Define Documentation

#define ITOA_SIZE   64
 

Definition at line 43 of file dazukoio_core.h.

Referenced by dazuko_set_path(), dazuko_set_version(), dazukoGetAccess_TS(), dazukoInitializeCache_TS(), dazukoRegister_TS_inner(), dazukoRegisterTrusted(), dazukoRemoveAllPaths_TS(), dazukoRemoveAllTrusted_TS(), dazukoRemoveTrusted_TS(), dazukoReturnAccess_TS(), dazukoSetAccessMask_TS(), dazukoUnregister_TS(), and dazukoUnregisterTrusted().


Function Documentation

int dazuko_get_value const char *  key,
const char *  string,
char *  buffer,
size_t  buffer_size
 

Definition at line 124 of file dazukoio_core.c.

References NULL.

00125 {
00126         const char      *p1;
00127         const char      *p2;
00128         size_t          size;
00129 
00130         if (buffer == NULL || buffer_size < 1)
00131                 return -1;
00132 
00133         buffer[0] = 0;
00134 
00135         if (key == NULL || string == NULL)
00136                 return -1;
00137 
00138         p1 = strstr(string, key);
00139         if (p1 == NULL)
00140                 return -1;
00141 
00142         p1 += strlen(key);
00143 
00144         for (p2=p1 ; *p2 && *p2!='\n' ; p2++)
00145                 continue;
00146 
00147         size = p2 - p1;
00148         if (size >= buffer_size)
00149                 size = buffer_size - 1;
00150 
00151         memcpy(buffer, p1, size);
00152 
00153         buffer[size] = 0;
00154 
00155         return 0;
00156 }

int xp_connection_close struct dazuko_id id  ) 
 

Referenced by dazukoRegister_TS_inner(), dazukoRegisterTrusted(), dazukoUnregister_TS(), and dazukoUnregisterTrusted().

int xp_connection_open struct dazuko_id id  ) 
 

Referenced by dazukoRegister_TS_inner(), dazukoRegisterTrusted(), and dazukoUnregisterTrusted().

int xp_process_request struct dazuko_id id,
const char *  buffer,
size_t  buffer_size
 

Referenced by dazukoRegisterTrusted(), dazukoUnregisterTrusted(), and process_request().

int xp_verify_id struct dazuko_id id  ) 
 

Referenced by dazuko_set_path(), dazukoGetAccess_TS(), dazukoInitializeCache_TS(), dazukoRemoveAllPaths_TS(), dazukoRemoveAllTrusted_TS(), dazukoRemoveTrusted_TS(), dazukoReturnAccess_TS(), dazukoSetAccessMask_TS(), and dazukoUnregister_TS().


Generated on Sun May 21 14:31:02 2006 for RSBAC by  doxygen 1.4.2