git.svenne.dk
/
public
/
dnssec-swede-utility.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f1c877c
)
No need to assign when used once
author
Pieter Lexis
<pieter@plexis.eu>
Sat, 4 Feb 2012 19:43:16 +0000
(20:43 +0100)
committer
Pieter Lexis
<pieter@plexis.eu>
Sat, 4 Feb 2012 19:43:16 +0000
(20:43 +0100)
swede
patch
|
blob
|
history
diff --git
a/swede
b/swede
index 036071a3cb6cf72ac56e96037f61f8c82a4887bd..02ebd165eddf7c25e327c0215e3bdc1359dad100 100755
(executable)
--- a/
swede
+++ b/
swede
@@
-466,8
+466,7
@@
if __name__ == '__main__':
# Good, now let's verify
if record.usage == 1: # End-host cert
# Good, now let's verify
if record.usage == 1: # End-host cert
- cert = chain[0]
- if verifyCertMatch(record, cert):
+ if verifyCertMatch(record, chain[0]):
if verify_result == 0: # The cert chains to a valid CA cert according to the system-certificates
print 'SUCCESS (Usage 1): Certificate offered by the server matches the one mentioned in the TLSA record and chains to a valid CA certificate'
else:
if verify_result == 0: # The cert chains to a valid CA cert according to the system-certificates
print 'SUCCESS (Usage 1): Certificate offered by the server matches the one mentioned in the TLSA record and chains to a valid CA certificate'
else: