def set_not_after(self, asn1_time):
     # type: (ASN1.ASN1_TIME) -> int
     """
     :return: 1 on success, 0 on failure
     """
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_not_after(self.x509, asn1_time._ptr())
示例#2
0
文件: X509.py 项目: mcepl/M2Crypto
 def set_not_after(self, asn1_time):
     # type: (ASN1.ASN1_TIME) -> int
     """
     :return: 1 on success, 0 on failure
     """
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_not_after(self.x509, asn1_time._ptr())
示例#3
0
 def set_not_after(self, asn1_utctime):
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_not_after(self.x509, asn1_utctime._ptr())
示例#4
0
文件: X509.py 项目: rodrigc/m2crypto
 def set_not_after(self, asn1_utctime):
     assert m2.x509_type_check(self.x509), "'x509' type error"
     return m2.x509_set_not_after(self.x509, asn1_utctime._ptr())