aboutsummaryrefslogtreecommitdiff
path: root/pow/POW-0.7/lib/pkix.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-09-29 04:27:57 +0000
committerRob Austein <sra@hactrn.net>2007-09-29 04:27:57 +0000
commitf8e063d084a350b454f2171f2395ecd5e2a66a5e (patch)
tree9a68de25f47b946fa61e52e00532631a7eaf3ed9 /pow/POW-0.7/lib/pkix.py
parente3df99f94c94b18861ec07edc1033375d1a9ba63 (diff)
Checkpoint
svn path=/pow/POW-0.7/lib/pkix.py; revision=1054
Diffstat (limited to 'pow/POW-0.7/lib/pkix.py')
-rwxr-xr-xpow/POW-0.7/lib/pkix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pow/POW-0.7/lib/pkix.py b/pow/POW-0.7/lib/pkix.py
index 7dd75322..744c4ccf 100755
--- a/pow/POW-0.7/lib/pkix.py
+++ b/pow/POW-0.7/lib/pkix.py
@@ -1226,12 +1226,12 @@ class CertificationRequest(Sequence):
def getExtensions(self):
oid = self.certificationRequestInfo.attributes.oid.get()
if oid is None:
- return None
+ return ()
if oid != (1, 2, 840, 113549, 1, 9, 14) or \
self.certificationRequestInfo.attributes.val.choice != "set" or \
len(self.certificationRequestInfo.attributes.val.choices["set"]) > 1:
raise DerError, "failed to understand X.501 Attribute encoding, sorry: %s" % self.get()
- return self.certificationRequestInfo.attributes.val.choices["set"][0]
+ return self.certificationRequestInfo.attributes.val.choices["set"][0].get()
#---------- PKCS10 ----------#
#---------- GeneralNames object support ----------#