X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fcertificate.py;fp=sfa%2Ftrust%2Fcertificate.py;h=ac643669f8208dde28702571840edb4abd561da4;hb=8cbccf66e8c89243e1d55c0e71841cebb6c98006;hp=960a387dba97f75564ba5416dc6c226180596832;hpb=ca1b51aeaa338bd3998956c732f77b68836deb03;p=sfa.git diff --git a/sfa/trust/certificate.py b/sfa/trust/certificate.py index 960a387d..ac643669 100644 --- a/sfa/trust/certificate.py +++ b/sfa/trust/certificate.py @@ -693,13 +693,13 @@ class Certificate: # the X509 subject_alt_name extension. Set_data can only be called once, due # to limitations in the underlying library. - def set_data(self, str, field='subjectAltName'): + def set_data(self, string, field='subjectAltName'): # pyOpenSSL only allows us to add extensions, so if we try to set the # same extension more than once, it will not work if field in self.data: raise Exception("Cannot set {} more than once".format(field)) - self.data[field] = str - self.add_extension(field, 0, str) + self.data[field] = string + self.add_extension(field, 0, string) ## # Return the data string that was previously set with set_data