X509_CRL_set_version function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<X509_CRL>, Long)>(ffi.Pointer<X509_CRL>, ffi.Long)>(symbol: 'bssl_dart_X509_CRL_set_version')
int X509_CRL_set_version(
  1. Pointer<X509_CRL> crl,
  2. int version
)

X509_CRL_set_version sets |crl|'s version to |version|, which should be one of the |X509_CRL_VERSION_*| constants. It returns one on success and zero on error.

If unsure, use |X509_CRL_VERSION_2|. Note that, unlike certificates, CRL versions are only defined up to v2. Callers should not use |X509_VERSION_3|.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<X509_CRL>, ffi.Long)>(
  symbol: 'bssl_dart_X509_CRL_set_version',
)
external int X509_CRL_set_version(
  ffi.Pointer<X509_CRL> crl,
  int version,
);