mei_rt2mei_rt2_fix_1
Last change
on this file since 5d06689 was
5d06689,
checked in by Mei <mei@…>, 12 years ago
|
1) modify abac.hh and added abac_c.c to unify the c and c++ api
interface (almost)
2) add new API
3) tweak the tests
4) filling missing code for abac_verifier_load_attribute_cert_attribute
|
-
Property mode set to
100755
|
File size:
314 bytes
|
Rev | Line | |
---|
[5110d42] | 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 | |
---|
[5d06689] | 13 | alphaID=ABAC.ID("Alpha", 0) |
---|
| 14 | alphaID.id_write_cert("Alpha_ID.pem") |
---|
| 15 | alphaID.id_write_privkey("Alpha_private.pem") |
---|
[5110d42] | 16 | |
---|
[5d06689] | 17 | bobID=ABAC.ID("Bob", 0) |
---|
| 18 | bobID.id_write_cert("Bob_ID.pem") |
---|
| 19 | bobID.id_write_privkey("Bob_private.pem") |
---|
Note: See
TracBrowser
for help on using the repository browser.