/* Hash a DN (from a trust anchor) into the provided buffer. This uses the DN hash implementation and context structure from the X.509 engine context.  */
static void hash_dn(br_x509_minimal_context *ctx, const void *dn, size_t len, unsigned char *out)
/* Hash a DN (from a trust anchor) into the provided buffer. This uses the DN hash implementation and context structure from the X.509 engine context.  */
static void hash_dn(br_x509_minimal_context *ctx, const void *dn, size_t len, unsigned char *out)
{
	ctx->dn_hash_impl->init(&ctx->dn_hash.vtable);
	ctx->dn_hash_impl->update(&ctx->dn_hash.vtable, dn, len);
	ctx->dn_hash_impl->out(&ctx->dn_hash.vtable, out);
}