File: gnutls_x509_crt_list_import2

package info (click to toggle)
gnutls28 3.8.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 81,572 kB
  • sloc: ansic: 390,000; asm: 117,804; sh: 18,712; makefile: 6,754; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (29 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29




@deftypefun {int} {gnutls_x509_crt_list_import2} (gnutls_x509_crt_t ** @var{certs}, unsigned int * @var{size}, const gnutls_datum_t * @var{data}, gnutls_x509_crt_fmt_t @var{format}, unsigned int @var{flags})
@var{certs}: Will hold the parsed certificate list.

@var{size}: It will contain the size of the list.

@var{data}: The PEM encoded certificate.

@var{format}: One of DER or PEM.

@var{flags}: must be (0) or an OR'd sequence of gnutls_certificate_import_flags.

This function will convert the given PEM encoded certificate list
to the native gnutls_x509_crt_t format. The output will be stored
in  @code{certs} which will be allocated and initialized.

If the Certificate is PEM encoded it should have a header of "X509
CERTIFICATE", or "CERTIFICATE".

To deinitialize  @code{certs} , you need to deinitialize each crt structure
independently, and use @code{gnutls_free()}  at  @code{certs} .

@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, otherwise a negative error code.

@strong{Since:} 3.0
@end deftypefun