mei_rt2mei_rt2_fix_1
Last change
on this file since 20eaefe was
e3c7769,
checked in by Mei <mei@…>, 12 years ago
|
1) wrap up java interface with swig/jni/abac linkup
2) java regression tests
3) update doc related to new java implmentation
|
-
Property mode set to
100644
|
File size:
660 bytes
|
Line | |
---|
1 | /** |
---|
2 | tbasic.c |
---|
3 | |
---|
4 | bring up and taking down a context |
---|
5 | **/ |
---|
6 | |
---|
7 | #include <err.h> |
---|
8 | #include <stdio.h> |
---|
9 | #include <assert.h> |
---|
10 | |
---|
11 | #include <abac.h> |
---|
12 | |
---|
13 | extern void abac_print_cred_info(abac_credential_t*, FILE*); |
---|
14 | extern char *abac_id_keyid(abac_id_t *id); |
---|
15 | extern abac_attribute_t *abac_attribute_add_tail(abac_attribute_t *ptr, abac_aspect_t *); |
---|
16 | |
---|
17 | int main(int argc, char **argv) { |
---|
18 | int i, success=0; |
---|
19 | abac_credential_t *cred=NULL; |
---|
20 | abac_credential_t **credentials=NULL; |
---|
21 | |
---|
22 | printf("calling main ..\n"); |
---|
23 | abac_context_t *ctxt = abac_context_new(); |
---|
24 | // show_yap_db("dump_yap"); |
---|
25 | // abac_context_free(ctxt); |
---|
26 | printf("done calling main ..\n"); |
---|
27 | return 0; |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.