source: examples/python_tests/partial_proof_rt0/setup.py @ 212e99f

mei_rt2mei_rt2_fix_1 libabac-0.2.2apre-partial
Last change on this file since 212e99f was a7f03f3, checked in by Mei <mei@…>, 12 years ago

1) add the new yap porting directory and some of code
2) add parital proof test code

  • Property mode set to 100755
File size: 594 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.
5sets up 2 (Acme, Coyote, Ladybug) principal ID credentials
6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12acme=ABAC.ID("Acme", 0)
13acme.id_write_cert("Acme_ID.pem")
14acme.id_write_privkey("Acme_private.pem")
15
16osh=ABAC.ID("Osh", 0)
17osh.id_write_cert("Osh_ID.pem")
18osh.id_write_privkey("Osh_private.pem")
19
20coyote=ABAC.ID("Coyote", 0)
21coyote.id_write_cert("Coyote_ID.pem")
22coyote.id_write_privkey("Coyote_private.pem")
23
24ladybug=ABAC.ID("Ladybug", 0)
25ladybug.id_write_cert("Ladybug_ID.pem")
26ladybug.id_write_privkey("Ladybug_private.pem")
Note: See TracBrowser for help on using the repository browser.