Example #1
0
 def __init__(self, asn1_time=None, _pyfree=0, asn1_utctime=None):
     # type: (Optional[ASN1_TIME], int) -> None
     # handle old keyword parameter
     if asn1_time is None:
         asn1_time = asn1_utctime
     if asn1_time is not None:
         assert m2.asn1_time_type_check(asn1_time), \
             "'asn1_time' type error'"
         self.asn1_time = asn1_time
         self._pyfree = _pyfree
     else:
         self.asn1_time = m2.asn1_time_new()
         self._pyfree = 1
Example #2
0
 def __init__(self, asn1_time=None, _pyfree=0, asn1_utctime=None):
     # type: (Optional[ASN1_TIME], Optional[int], Optional[ASN1_TIME]) -> None
     # handle old keyword parameter
     if asn1_time is None:
         asn1_time = asn1_utctime
     if asn1_time is not None:
         assert m2.asn1_time_type_check(asn1_time), \
             "'asn1_time' type error'"
         self.asn1_time = asn1_time
         self._pyfree = _pyfree
     else:
         self.asn1_time = m2.asn1_time_new()
         self._pyfree = 1