X509_subject_name_hash function

  1. @RecordUse.new()
  2. @Native<Uint32 Function(Pointer<X509>)>(ffi.Pointer<X509>)>(symbol: 'bssl_dart_X509_subject_name_hash')
int X509_subject_name_hash(
  1. Pointer<X509> x509
)

X509_subject_name_hash returns the hash of |x509|'s subject name with |X509_NAME_hash|.

This hash is specific to the |X509_LOOKUP_add_dir| filesystem format and is not suitable for general-purpose X.509 name processing. It is very short, so there will be hash collisions. It also depends on an OpenSSL-specific canonicalization process.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Uint32 Function(ffi.Pointer<X509>)>(
  symbol: 'bssl_dart_X509_subject_name_hash',
)
external int X509_subject_name_hash(
  ffi.Pointer<X509> x509,
);