source: examples/python_tests/basic_id/setup.py @ 47d5cf9

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
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
13jackID=ABAC.ID("Jack", 0)
14jackID.id_write_cert("Jack_ID.pem")
15jackID.id_write_privkey("Jack_private.pem")
16
17bobID=ABAC.ID("Bob", 0)
18bobID.id_write_cert("Bob_ID.pem")
19bobID.id_write_privkey("Bob_private.pem")
20
21
Note: See TracBrowser for help on using the repository browser.