ASN1_TIME_set_string_X509 function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<ASN1_OCTET_STRING>, Pointer<Char>)>(ffi.Pointer<ASN1_TIME>, ffi.Pointer<ffi.Char>)>(symbol: 'bssl_dart_ASN1_TIME_set_string_X509')
int ASN1_TIME_set_string_X509(
  1. Pointer<ASN1_OCTET_STRING> s,
  2. Pointer<Char> str
)

ASN1_TIME_set_string_X509 behaves like |ASN1_TIME_set_string| except it additionally converts GeneralizedTime to UTCTime if it is in the range where UTCTime is used. See RFC 5280, section 4.1.2.5.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<ASN1_TIME>, ffi.Pointer<ffi.Char>)>(
  symbol: 'bssl_dart_ASN1_TIME_set_string_X509',
)
external int ASN1_TIME_set_string_X509(
  ffi.Pointer<ASN1_TIME> s,
  ffi.Pointer<ffi.Char> str,
);