Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions centrallix/include/cxss/cxss.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,23 @@
#include "cxlib/xarray.h"
#include "cxlib/xstring.h"

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#define CXSS_ENTROPY_SIZE 1280
#define CXSS_DEBUG_CONTEXTSTACK 1
#define CXSS_IDENTIFIER_LENGTH 64
#define CXSS_CIPHER_STRENGTH (256 / 8)

#ifdef USING_OPTIMIZATION
/*** Context stack debugging can cause seg-faults if the compiler applies
*** certain optimizations.
***/
#define CXSS_DEBUG_CONTEXTSTACK 0
#else
#define CXSS_DEBUG_CONTEXTSTACK 1
#endif

#include "cxss/policy.h"

/*** CXSS data structures ***/
Expand Down Expand Up @@ -170,4 +182,3 @@ int cxssAuthorizeSpec(char* objectspec, int access_type, int log_mode);
int cxssAuthorize(char* domain, char* type, char* path, char* attr, int access_type, int log_mode);

#endif /* not defined _CXSS_H */