Ignore:
Timestamp:
May 30, 2013 3:53:29 PM (11 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
1f9c361, b213b53
Parents:
e8f2d4c
Message:

MOve over to ABAC 0.1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/access_to_abac.py

    re8f2d4c r67fa1cf  
    1010from tempfile import mkdtemp
    1111
    12 import Creddy
     12import ABAC
    1313
    1414from deter import fedid
     
    326326    cfiles = []
    327327    for i, c in enumerate(creds):
    328         cid = Creddy.ID(cert)
     328        cid = ABAC.ID(cert)
    329329        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)
    331331        for r in c.req:
    332332            if r.principal and r.link and r.attr:
     
    340340        cattr.bake()
    341341        fn = '%s/cred%d_attr.der' % (dir, i)
    342         cattr.write_name(fn)
     342        cattr.write_file(fn)
    343343        cfiles.append(fn)
    344344    return cfiles
Note: See TracChangeset for help on using the changeset viewer.