Blame doc/functions/gnutls_pcert_import_x509_list
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_pcert_import_x509_list} (gnutls_pcert_st * @var{pcert_list}, gnutls_x509_crt_t * @var{crt}, unsigned * @var{ncrt}, unsigned int @var{flags})
|
|
Packit Service |
4684c1 |
@var{pcert_list}: The structures to store the certificates; must not contain initialized @code{gnutls_pcert_st} structures.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{crt}: The certificates to be imported
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{ncrt}: The number of certificates in @code{crt} ; will be updated if necessary
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{flags}: zero or @code{GNUTLS_X509_CRT_LIST_SORT}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This convenience function will import the given certificates to an
|
|
Packit Service |
4684c1 |
already allocated set of @code{gnutls_pcert_st} structures. The structures must
|
|
Packit Service |
4684c1 |
be deinitialized afterwards using @code{gnutls_pcert_deinit()} . @code{pcert_list} should contain space for at least @code{ncrt} elements.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
In the case @code{GNUTLS_X509_CRT_LIST_SORT} is specified and that
|
|
Packit Service |
4684c1 |
function cannot sort the list, @code{GNUTLS_E_CERTIFICATE_LIST_UNSORTED}
|
|
Packit Service |
4684c1 |
will be returned. Currently sorting can fail if the list size
|
|
Packit Service |
4684c1 |
exceeds an internal constraint (16).
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit Service |
4684c1 |
negative error value.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.4.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|