int gnutls_x509_crt_get_dn(gnutls_x509_crt_t cert, char *buf,
			   size_t * sizeof_buf)
{
    if (cert == NULL) {
	gnutls_assert();
	return GNUTLS_E_INVALID_REQUEST;
    }

    return _gnutls_x509_parse_dn(cert->cert,
				 "tbsCertificate.subject.rdnSequence", buf,
				 sizeof_buf);
}
int gnutls_x509_crt_get_dn(gnutls_x509_crt_t cert, char *buf,
			   size_t * sizeof_buf)
{
    if (cert == NULL) {
	gnutls_assert();
	return GNUTLS_E_INVALID_REQUEST;
    }

    return _gnutls_x509_parse_dn(cert->cert,
				 "tbsCertificate.subject.rdnSequence", buf,
				 sizeof_buf);
}