X509_add1_trust_object function
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,
);