source: examples/python_tests/access_rt2/setup.py @ 0b3ac65

mei_rt2mei_rt2_fix_1
Last change on this file since 0b3ac65 was 5110d42, checked in by Mei <mei@…>, 13 years ago

1) reorganized the test directory to include python tests
2) attribute via api and principal via api from python scripts is

working (although there is a annoying seg fault at the very end
that must be related to something not been dup()ed.. need to wait
for c example to debug it)

3) able to query via api
4) replicated access_rt2 example in python and the query result matches
5) expanded api to make it easier to generate rt2 structure

  • Property mode set to 100755
File size: 278 bytes
Line 
1#!/usr/bin/env python
2
3"""
4  to test with python
5
6
7"""
8import os
9import ABAC
10
11ctxt = ABAC.Context()
12
13id=ABAC.ID("Alpha", 0)
14id.write_cert("Alpha_ID.pem")
15id.write_privkey("Alpha_private.pem")
16
17id=ABAC.ID("Bob", 0)
18id.write_cert("Bob_ID.pem")
19id.write_privkey("Bob_private.pem")
Note: See TracBrowser for help on using the repository browser.