CBS_parse_utc_time function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, Pointer<tm>, Int)>(ffi.Pointer<CBS>, ffi.Pointer<tm>, ffi.Int)>(symbol: 'bssl_dart_CBS_parse_utc_time')
int CBS_parse_utc_time(
  1. Pointer<CBS> cbs,
  2. Pointer<tm> out_tm,
  3. int allow_timezone_offset
)

CBS_parse_utc_time returns one if cbs is a valid DER-encoded, ASN.1 UTCTime body within the limitations imposed by RFC 5280, or zero otherwise. If allow_timezone_offset is non-zero, four-digit timezone offsets, which would not be allowed by DER, are permitted. On success, if out_tm is non-NULL, *out_tm will be zeroed, and then set to the corresponding time in UTC. This function does not compute out_tm->tm_wday or out_tm->tm_yday.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<CBS>, ffi.Pointer<tm>, ffi.Int)>(
  symbol: 'bssl_dart_CBS_parse_utc_time',
)
external int CBS_parse_utc_time(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<tm> out_tm,
  int allow_timezone_offset,
);