git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8045e90
)
all non authority certs should be marked as CA:FALSE
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 18 Aug 2011 15:33:50 +0000
(11:33 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 18 Aug 2011 15:33:50 +0000
(11:33 -0400)
sfa/trust/hierarchy.py
patch
|
blob
|
history
diff --git
a/sfa/trust/hierarchy.py
b/sfa/trust/hierarchy.py
index
73b297b
..
6323436
100644
(file)
--- a/
sfa/trust/hierarchy.py
+++ b/
sfa/trust/hierarchy.py
@@
-229,7
+229,7
@@
class Hierarchy:
# @param uuid the unique identifier to store in the GID
# @param pkey the public key to store in the GID
# @param uuid the unique identifier to store in the GID
# @param pkey the public key to store in the GID
- def create_gid(self, xrn, uuid, pkey):
+ def create_gid(self, xrn, uuid, pkey
, CA=False
):
hrn, type = urn_to_hrn(xrn)
parent_hrn = get_authority(hrn)
# Using hrn_to_urn() here to make sure the urn is in the right format
hrn, type = urn_to_hrn(xrn)
parent_hrn = get_authority(hrn)
# Using hrn_to_urn() here to make sure the urn is in the right format
@@
-245,6
+245,10
@@
class Hierarchy:
elif type and 'authority' in type:
# authority type
gid.set_intermediate_ca(True)
elif type and 'authority' in type:
# authority type
gid.set_intermediate_ca(True)
+ elif CA:
+ gid.set_intermediate_ca(True)
+ else:
+ gid.set_intermediate_ca(False)
# set issuer
if not parent_hrn or hrn == self.config.SFA_INTERFACE_HRN:
# set issuer
if not parent_hrn or hrn == self.config.SFA_INTERFACE_HRN: