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/fedd_to_abac.py

    re8f2d4c r67fa1cf  
    1111from string import join
    1212
    13 import Creddy
     13import ABAC
    1414
    1515from federation.authorizer import abac_authorizer
     
    114114                        (cert, key, r, k, cf)
    115115            else:
    116                 cid = Creddy.ID(cert)
     116                cid = ABAC.ID(cert)
    117117                cid.load_privkey(key)
    118                 cattr = Creddy.Attribute(cid, r, 3600 * 24 * 365 * 10)
     118                cattr = ABAC.Attribute(cid, r, 3600 * 24 * 365 * 10)
    119119                cattr.principal(k)
    120120                cattr.bake()
    121                 cattr.write_name(cf)
     121                cattr.write_file(cf)
    122122                credfiles.append(cf)
    123123    return credfiles
Note: See TracChangeset for help on using the changeset viewer.