diff options
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r-- | rpkid/rpki/x509.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index 7ab89e83..da151cd6 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -693,15 +693,12 @@ class X509(DER_object): if resources is not None: cert.setRFC3779( - asn = (("inherit" if resources.asn.inherit else - ((r.min, r.max) for r in resources.asn)) - or None), - ipv4 = (("inherit" if resources.v4.inherit else - ((r.min, r.max) for r in resources.v4)) - or None), - ipv6 = (("inherit" if resources.v6.inherit else - ((r.min, r.max) for r in resources.v6)) - or None)) + asn = ("inherit" if resources.asn.inherit else + ((r.min, r.max) for r in resources.asn)), + ipv4 = ("inherit" if resources.v4.inherit else + ((r.min, r.max) for r in resources.v4)), + ipv6 = ("inherit" if resources.v6.inherit else + ((r.min, r.max) for r in resources.v6))) cert.sign(keypair.get_POW(), rpki.POW.SHA256_DIGEST) |