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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pow/POW-0.7/lib/pkix.py b/pow/POW-0.7/lib/pkix.py
index a4641085..65f62442 100755
--- a/pow/POW-0.7/lib/pkix.py
+++ b/pow/POW-0.7/lib/pkix.py
@@ -1259,7 +1259,8 @@ class CertificationRequest(Sequence):
return None
def setExtensions(self, exts):
- self.certificationRequestInfo.attributes.val.choices["set"][0].set(exts)
+ self.certificationRequestInfo.attributes.oid.set((1, 2, 840, 113549, 1, 9, 14))
+ self.certificationRequestInfo.attributes.val.set(("set", [exts]))
#---------- PKCS10 ----------#
#---------- GeneralNames object support ----------#