示例#1
0
 def set_string(self, string):
     # type: (bytes) -> int
     """
     Set time from UTC string.
     """
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     return m2.asn1_time_set_string(self.asn1_time, string)
示例#2
0
文件: ASN1.py 项目: appknox/m2crypto
 def set_string(self, string):
     # type: (bytes) -> int
     """
     Set time from UTC string.
     """
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     return m2.asn1_time_set_string(self.asn1_time, string)