---
name: "gnutls_x509_crt_to_xml"
section: "3"
platform: "linux"
package: "gnutls-doc"
version: "1.4.4-3+etch5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/gnutls_x509_crt_to_xml"
---

# gnutls\_x509\_crt\_to\_xml(3)

This function parses an RDN sequence

## NAME

gnutls\_x509\_crt\_to\_xml - This function parses an RDN sequence

## SYNOPSIS

**#include \<gnutls/x509.h\>**

**int gnutls\_x509\_crt\_to\_xml(gnutls\_x509\_crt\_t** *cert***, gnutls\_datum\_t \*** *res***, int** *detail***);**

## ARGUMENTS

- gnutls\_x509\_crt\_t cert

  should contain a gnutls\_x509\_crt\_t structure

- gnutls\_datum\_t \* res

  The datum that will hold the result

- int detail

  The detail level (must be GNUTLS\_XML\_SHOW\_ALL or GNUTLS\_XML\_NORMAL)

## DESCRIPTION

This function will return the XML structures of the given X.509 certificate.  The XML structures are allocated internally (with malloc) and stored into res.

## NOTE

This function is currently not implemented.  See the NEWS entry for version 1.3.5.

Returns a negative error code in case of an error.

## REPORTING BUGS

Report bugs to \<bug-gnutls@gnu.org\>.

## COPYRIGHT

Copyright © 2004 Free Software Foundation.\
 Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

## SEE ALSO

The full documentation for **gnutls** is maintained as a Texinfo manual.  If the **info** and **gnutls** programs are properly installed at your site, the command

-

  **info gnutls**

should give you access to the complete manual.
