abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since b7b2ca1 was
4721618,
checked in by Mei <mei@…>, 12 years ago
|
1) tested out python and perl test scripts along with
abac_chunk_t calls in libabac's abac.hh
|
-
Property mode set to
100644
|
File size:
484 bytes
|
Rev | Line | |
---|
[4721618] | 1 | /** |
---|
| 2 | tbasic.c |
---|
| 3 | |
---|
| 4 | bring up and taking down a context |
---|
| 5 | |
---|
| 6 | **/ |
---|
| 7 | |
---|
| 8 | #include <err.h> |
---|
| 9 | #include <stdio.h> |
---|
| 10 | #include <assert.h> |
---|
| 11 | |
---|
| 12 | #include <abac.h> |
---|
| 13 | |
---|
| 14 | int main(int argc, char **argv) { |
---|
| 15 | int i, success=0; |
---|
| 16 | abac_credential_t *cred=NULL; |
---|
| 17 | abac_credential_t **credentials=NULL; |
---|
| 18 | |
---|
| 19 | printf("calling main ..\n"); |
---|
| 20 | abac_context_t *ctxt = abac_context_new(); |
---|
| 21 | abac_context_t *ctxt2 = abac_context_new(); |
---|
| 22 | printf("done calling main ..\n"); |
---|
| 23 | |
---|
| 24 | abac_context_free(ctxt2); |
---|
| 25 | |
---|
| 26 | return 0; |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.