ASN1_GENERALIZEDTIME_set_string function

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

ASN1_GENERALIZEDTIME_set_string sets |s| to a GeneralizedTime whose contents are a copy of |str|. It returns one on success and zero on error or if |str| is not a valid GeneralizedTime.

If |s| is NULL, this function validates |str| without copying it.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(ffi.Pointer<ASN1_GENERALIZEDTIME>, ffi.Pointer<ffi.Char>)
>(symbol: 'bssl_dart_ASN1_GENERALIZEDTIME_set_string')
external int ASN1_GENERALIZEDTIME_set_string(
  ffi.Pointer<ASN1_GENERALIZEDTIME> s,
  ffi.Pointer<ffi.Char> str,
);