예제 #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)