| Revision 5110d42,
278 bytes
checked in by Mei <mei@…>, 12 months ago
(diff) |
|
1) reorganized the test directory to include python tests
2) attribute via api and principal via api from python scripts is
working (although there is a annoying seg fault at the very end
that must be related to something not been dup()ed.. need to wait
for c example to debug it)
3) able to query via api
4) replicated access_rt2 example in python and the query result matches
5) expanded api to make it easier to generate rt2 structure
|
-
Property mode set to
100755
|
| Line | |
|---|
| 1 | #!/usr/bin/env python |
|---|
| 2 | |
|---|
| 3 | """ |
|---|
| 4 | to test with python |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | """ |
|---|
| 8 | import os |
|---|
| 9 | import ABAC |
|---|
| 10 | |
|---|
| 11 | ctxt = ABAC.Context() |
|---|
| 12 | |
|---|
| 13 | id=ABAC.ID("Alpha", 0) |
|---|
| 14 | id.write_cert("Alpha_ID.pem") |
|---|
| 15 | id.write_privkey("Alpha_private.pem") |
|---|
| 16 | |
|---|
| 17 | id=ABAC.ID("Bob", 0) |
|---|
| 18 | id.write_cert("Bob_ID.pem") |
|---|
| 19 | id.write_privkey("Bob_private.pem") |
|---|
Note: See
TracBrowser
for help on using the repository browser.