---
name: "gnutls_certificate_get_x509_cas"
section: "3"
platform: "linux"
package: "gnutls-doc"
version: "2.8.6-1+squeeze3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/gnutls_certificate_get_x509_cas"
---

# gnutls\_certificate\_get\_x509\_cas(3)

Used to export all the CAs from a gnutls\_certificate\_credentials\_t structure

## NAME

gnutls\_certificate\_get\_x509\_cas - Used to export all the CAs from a gnutls\_certificate\_credentials\_t structure

## SYNOPSIS

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

**void gnutls\_certificate\_get\_x509\_cas(gnutls\_certificate\_credentials\_t** *sc***, gnutls\_x509\_crt\_t \*\*** *x509\_ca\_list***, unsigned int \*** *ncas***);**

## ARGUMENTS

- gnutls\_certificate\_credentials\_t sc

  is a **gnutls\_certificate\_credentials\_t** structure.

- gnutls\_x509\_crt\_t \*\* x509\_ca\_list

  will point to the CA list. Should be treated as constant

- unsigned int \* ncas

  the number of CAs

## DESCRIPTION

This function will export all the CAs associated with the given credentials.

## SINCE

2\.4.0

## REPORTING BUGS

Report bugs to \<bug-gnutls@gnu.org\>. GnuTLS home page: http://www.gnu.org/software/gnutls/ General help using GNU software: http://www.gnu.org/gethelp/

## COPYRIGHT

Copyright © 2008 Free Software Foundation.\
 Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

## 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.
