abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since ecb1628 was
7e3f5e2,
checked in by Mei <mei@…>, 12 years ago
|
1) converted daisychain scaling tests
|
-
Property mode set to
100755
|
File size:
342 bytes
|
Rev | Line | |
---|
[7e3f5e2] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | See README for the semantics. This creates principals |
---|
| 5 | used by the example. |
---|
| 6 | """ |
---|
| 7 | import os |
---|
| 8 | import ABAC |
---|
| 9 | |
---|
| 10 | ctxt = ABAC.Context() |
---|
| 11 | |
---|
| 12 | i=0 |
---|
| 13 | while i <= #VAL#: |
---|
| 14 | n="John%s"%i |
---|
| 15 | nid="%s_ID.pem"%n |
---|
| 16 | np="%s_private.pem"%n |
---|
| 17 | aD=ABAC.ID(n, 0) |
---|
| 18 | aD.write_cert_file(nid) |
---|
| 19 | aD.write_privkey_file(np) |
---|
| 20 | i = i+1 |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.