mei_rt2mei_rt2_fix_1
Last change
on this file since 47d5cf9 was
669b481,
checked in by Mei <mei@…>, 12 years ago
|
1) finish test conversion from creddy-prover to python
2) update the abac.hh/API doc more, adding more intermediate calls
to make abac.hh more uniform
3) found out why a very long attribute rule can not survive in/out of
ietf_attribute_t call (m64 en/decoding - abac_verifier, alice_rt1)
|
-
Property mode set to
100755
|
File size:
310 bytes
|
Rev | Line | |
---|
[669b481] | 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 | jackID=ABAC.ID("Jack", 0) |
---|
| 14 | jackID.id_write_cert("Jack_ID.pem") |
---|
| 15 | jackID.id_write_privkey("Jack_private.pem") |
---|
| 16 | |
---|
| 17 | bobID=ABAC.ID("Bob", 0) |
---|
| 18 | bobID.id_write_cert("Bob_ID.pem") |
---|
| 19 | bobID.id_write_privkey("Bob_private.pem") |
---|
| 20 | |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.