source: libabac/abac_verifier.h @ f89b991

mei_rt2
Last change on this file since f89b991 was 2e9455f, checked in by Mei <mei@…>, 11 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#ifndef __ABAC_VERIFIER_H__
2#define __ABAC_VERIFIER_H__
3
4#include "abac_defines.h"
5
6/* exported */
7extern char *abac_cn_with_sha(char *);
8extern char *abac_idtype_with_sha(char*);
9extern char *abac_idtype_string(int); 
10extern int abac_verifier_session_remove_context(abac_context_t *);
11extern void abac_verifier_session_add_context(abac_context_t *);
12extern abac_id_credential_t *abac_id_credential_dup(abac_id_credential_t *);
13extern abac_id_credential_t *abac_id_credential_lookup(char *);
14extern char *abac_verifier_session_next_namespace();
15extern void abac_add_cred(abac_credential_t *cred);
16extern abac_id_credential_t *abac_check_id_cred(char *);
17extern abac_credential_t *abac_check_cred(char *);
18extern abac_id_credential_t *abac_id_credential_new(abac_id_t *a_id);
19extern abac_credential_t *abac_credential_lookup(char* cred_string);
20extern char *abac_credential_hashkey(abac_credential_t *ptr);
21extern char *abac_id_credential_hashkey(abac_id_credential_t *ptr);
22extern abac_credential_t *abac_credential_dup(abac_credential_t *ptr);
23extern abac_credential_t *abac_credential_new(abac_attribute_t *attr, char*);
24extern abac_id_t *abac_id_credential_id(abac_id_credential_t *ptr);
25extern void abac_print_cred_info(abac_credential_t *cred, FILE *fp);
26extern void abac_print_typed_cred_info(abac_credential_t *cred, FILE *fp);
27extern abac_attribute_t *abac_credential_attribute(abac_credential_t *ptr);
28extern void abac_verifier_session_dump();
29
30
31
32#endif /* __ABAC_VERIFIER_H__ */
Note: See TracBrowser for help on using the repository browser.