ASN1_UTCTIME_adj function

  1. @RecordUse.new()
  2. @Native<Pointer<ASN1_OCTET_STRING> Function(Pointer<ASN1_OCTET_STRING>, Int64, Int, Long)>(ffi.Pointer<ASN1_UTCTIME>, ffi.Int64, ffi.Int, ffi.Long)>(symbol: 'bssl_dart_ASN1_UTCTIME_adj')
Pointer<ASN1_OCTET_STRING> ASN1_UTCTIME_adj(
  1. Pointer<ASN1_OCTET_STRING> s,
  2. int posix_time,
  3. int offset_day,
  4. int offset_sec,
)

ASN1_UTCTIME_adj adds |offset_day| days and |offset_sec| seconds to |posix_time| and writes the result to |s| as a UTCTime. It returns |s| on success and NULL on error. If |s| is NULL, it returns a newly-allocated |ASN1_UTCTIME| instead.

Note this function may fail if the time overflows or is out of range for UTCTime.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ASN1_UTCTIME> Function(
    ffi.Pointer<ASN1_UTCTIME>,
    ffi.Int64,
    ffi.Int,
    ffi.Long,
  )
>(symbol: 'bssl_dart_ASN1_UTCTIME_adj')
external ffi.Pointer<ASN1_UTCTIME> ASN1_UTCTIME_adj(
  ffi.Pointer<ASN1_UTCTIME> s,
  int posix_time,
  int offset_day,
  int offset_sec,
);