aboutsummaryrefslogtreecommitdiff
path: root/scripts/pkcs10.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-11-13 20:22:57 +0000
committerRob Austein <sra@hactrn.net>2007-11-13 20:22:57 +0000
commit222dcc75375bed4627b1bb66c449cb78a2588771 (patch)
tree40949241c9b752b80704e75af04354db6444543e /scripts/pkcs10.py
parente40bf7a235cd7e1a644c8b90d9c268ace845babe (diff)
Replace horrible profusion of tuples of resource sets with a new
wrapper abstraction. svn path=/scripts/biz-certs/Bob-CA.srl; revision=1281
Diffstat (limited to 'scripts/pkcs10.py')
-rw-r--r--scripts/pkcs10.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/pkcs10.py b/scripts/pkcs10.py
index 77272ff0..77cb8666 100644
--- a/scripts/pkcs10.py
+++ b/scripts/pkcs10.py
@@ -58,10 +58,10 @@ if parse_test:
exts = pkcs10.getExtensions()
- as, v4, v6 = rpki.resource_set.parse_extensions(exts)
- if as: print "ASN =", as
- if v4: print "IPv4 =", v4
- if v6: print "IPv6 =", v6
+ bag = rpki.resource_set.parse_extensions(exts)
+ if bag.as: print "ASN =", bag.as
+ if bag.v4: print "IPv4 =", bag.v4
+ if bag.v6: print "IPv6 =", bag.v6
for oid, crit, val in exts:
if oid in ((1, 3, 6, 1, 5, 5, 7, 1, 7), (1, 3, 6, 1, 5, 5, 7, 1, 8)):