Blame doc/manpages/gnutls_x509_trust_list_add_named_crt.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_x509_trust_list_add_named_crt" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_x509_trust_list_add_named_crt \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/x509.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_x509_trust_list_add_named_crt(gnutls_x509_trust_list_t " list ", gnutls_x509_crt_t " cert ", const void * " name ", size_t " name_size ", unsigned int " flags ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_x509_trust_list_t list" 12
Packit 549fdc
The list
Packit 549fdc
.IP "gnutls_x509_crt_t cert" 12
Packit 549fdc
A certificate
Packit 549fdc
.IP "const void * name" 12
Packit 549fdc
An identifier for the certificate
Packit 549fdc
.IP "size_t name_size" 12
Packit 549fdc
The size of the identifier
Packit 549fdc
.IP "unsigned int flags" 12
Packit 549fdc
should be 0.
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will add the given certificate to the trusted
Packit 549fdc
list and associate it with a name. The certificate will not be
Packit 549fdc
be used for verification with \fBgnutls_x509_trust_list_verify_crt()\fP
Packit 549fdc
but with \fBgnutls_x509_trust_list_verify_named_crt()\fP or
Packit 549fdc
\fBgnutls_x509_trust_list_verify_crt2()\fP \- the latter only since
Packit 549fdc
GnuTLS 3.4.0 and if a hostname is provided.
Packit 549fdc
Packit 549fdc
In principle this function can be used to set individual "server"
Packit 549fdc
certificates that are trusted by the user for that specific server
Packit 549fdc
but for no other purposes.
Packit 549fdc
Packit 549fdc
The certificate must not be deinitialized during the lifetime
Packit 549fdc
of the trusted list.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
Packit 549fdc
negative error value.
Packit 549fdc
.SH "SINCE"
Packit 549fdc
3.0.0
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP