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:
bf7a595
)
in verify_chain, if the check if public keys are the same
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 11 Aug 2009 03:23:08 +0000
(
03:23
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 11 Aug 2009 03:23:08 +0000
(
03:23
+0000)
sfa/trust/certificate.py
patch
|
blob
|
history
diff --git
a/sfa/trust/certificate.py
b/sfa/trust/certificate.py
index
3b725bd
..
8ca369d
100644
(file)
--- a/
sfa/trust/certificate.py
+++ b/
sfa/trust/certificate.py
@@
-523,6
+523,9
@@
class Certificate:
if self.is_signed_by_cert(trusted_cert):
#print self.get_subject(), "is signed by a root"
return
+ # if the public keys are the same then we are set
+ if self.is_pubkey(trusted_cert.get_pubkey()):
+ return
# if there is no parent, then no way to verify the chain
if not self.parent: