diff options
author | Rob Austein <sra@hactrn.net> | 2014-04-02 21:57:02 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-04-02 21:57:02 +0000 |
commit | 70a3f8fb7e3c890e3800d556a2fd1ba9188433e7 (patch) | |
tree | 62920c0490c710bc4a7a398a7967f3cda85d1ec1 /rpkid/rpki/rpkid.py | |
parent | 9ee77a750670e1ebaeca6747e8594e5d21433481 (diff) |
Get AIA comparison right.
svn path=/branches/tk671/; revision=5740
Diffstat (limited to 'rpkid/rpki/rpkid.py')
-rw-r--r-- | rpkid/rpki/rpkid.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rpkid/rpki/rpkid.py b/rpkid/rpki/rpkid.py index d4f8aeef..1235a602 100644 --- a/rpkid/rpki/rpkid.py +++ b/rpkid/rpki/rpkid.py @@ -598,6 +598,7 @@ class ca_obj(rpki.sql.sql_persistent): % ("" if len(cert_map) == 1 else "s", ", ".join(c.cert.gSKI() for c in cert_map.values()), rc.class_name, parent.self.self_handle, parent.parent_handle)) + self.gctx.sql.sweep() self.gctx.checkpoint() cb() @@ -1532,7 +1533,7 @@ class child_cert_obj(rpki.sql.sql_persistent): old_resources = self.cert.get_3779resources() old_sia = self.cert.get_SIA() - old_aia = self.cert.get_AIA() + old_aia = self.cert.get_AIA()[0] old_ca_detail = self.ca_detail needed = False @@ -1559,11 +1560,11 @@ class child_cert_obj(rpki.sql.sql_persistent): needed = True if ca_detail != old_ca_detail: - rpki.log.debug("Issuer changed for %r %s: old %r new %r" % (self, self.uri, old_ca_detail, ca_detail)) + rpki.log.debug("Issuer changed for %r: old %r new %r" % (self, old_ca_detail, ca_detail)) needed = True if ca_detail.ca_cert_uri != old_aia: - rpki.log.debug("AIA changed for %r %s: old %r new %r" % (self, self.uri, old_aia, ca_detail.ca_cert_uri)) + rpki.log.debug("AIA changed for %r: old %r new %r" % (self, old_aia, ca_detail.ca_cert_uri)) needed = True must_revoke = old_resources.oversized(resources) or old_resources.valid_until > resources.valid_until |