X509_add1_trust_object function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<X509>, Pointer<ASN1_OBJECT>)>(ffi.Pointer<X509>, ffi.Pointer<ASN1_OBJECT>)>(symbol: 'bssl_dart_X509_add1_trust_object')
int X509_add1_trust_object(
  1. Pointer<X509> x509,
  2. Pointer<ASN1_OBJECT> obj
)

X509_add1_trust_object configures |x509| as a valid trust anchor for |obj|. It returns one on success and zero on error. |obj| should be a certificate usage OID associated with an |X509_TRUST_*| constant.

See |X509_VERIFY_PARAM_set_trust| for details on how this value is evaluated. Note this only takes effect if |x509| was configured as a trusted certificate via |X509_STORE|.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<X509>, ffi.Pointer<ASN1_OBJECT>)>(
  symbol: 'bssl_dart_X509_add1_trust_object',
)
external int X509_add1_trust_object(
  ffi.Pointer<X509> x509,
  ffi.Pointer<ASN1_OBJECT> obj,
);