Changeset 67fa1cf for fedd/access_to_abac.py
- Timestamp:
- May 30, 2013 3:53:29 PM (11 years ago)
- Branches:
- master
- Children:
- 1f9c361, b213b53
- Parents:
- e8f2d4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/access_to_abac.py
re8f2d4c r67fa1cf 10 10 from tempfile import mkdtemp 11 11 12 import Creddy12 import ABAC 13 13 14 14 from deter import fedid … … 326 326 cfiles = [] 327 327 for i, c in enumerate(creds): 328 cid = Creddy.ID(cert)328 cid = ABAC.ID(cert) 329 329 cid.load_privkey(key) 330 cattr = Creddy.Attribute(cid, c.attr, 3600 * 24 * 365 * 10)330 cattr = ABAC.Attribute(cid, c.attr, 3600 * 24 * 365 * 10) 331 331 for r in c.req: 332 332 if r.principal and r.link and r.attr: … … 340 340 cattr.bake() 341 341 fn = '%s/cred%d_attr.der' % (dir, i) 342 cattr.write_ name(fn)342 cattr.write_file(fn) 343 343 cfiles.append(fn) 344 344 return cfiles
Note: See TracChangeset
for help on using the changeset viewer.