mei_rt2mei_rt2_fix_1
Last change
on this file since c6d5da3 was
373bf68,
checked in by Mei <mei@…>, 12 years ago
|
1) add the scaling test suite
|
-
Property mode set to
100755
|
File size:
716 bytes
|
Rev | Line | |
---|
[373bf68] | 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 | ralphsID=ABAC.ID("Ralphs", 0) |
---|
| 13 | ralphsID.id_write_cert("Ralphs_ID.pem") |
---|
| 14 | ralphsID.id_write_privkey("Ralphs_private.pem") |
---|
| 15 | |
---|
| 16 | bobID=ABAC.ID("Bob", 0) |
---|
| 17 | bobID.id_write_cert("Bob_ID.pem") |
---|
| 18 | bobID.id_write_privkey("Bob_private.pem") |
---|
| 19 | |
---|
| 20 | maryID=ABAC.ID("Mary", 0) |
---|
| 21 | maryID.id_write_cert("Mary_ID.pem") |
---|
| 22 | maryID.id_write_privkey("Mary_private.pem") |
---|
| 23 | |
---|
| 24 | ######## NOISE ################################## |
---|
| 25 | |
---|
| 26 | i=1 |
---|
| 27 | while i <= #VAL#: |
---|
| 28 | n="john%s"%i |
---|
| 29 | nid="%s_ID.pem"%n |
---|
| 30 | np="%s_private.pem"%n |
---|
| 31 | aD=ABAC.ID(n, 0) |
---|
| 32 | aD.id_write_cert(nid) |
---|
| 33 | aD.id_write_privkey(np) |
---|
| 34 | i = i+1 |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.