aboutsummaryrefslogtreecommitdiff
path: root/pow/POW-0.7/lib/pkix.py
diff options
context:
space:
mode:
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 ----------#