1gnutls_certificate_set_openpgp_key(3)gnutlsgnutls_certificate_set_openpgp_key(3)
2
3
4

NAME

6       gnutls_certificate_set_openpgp_key - API function
7

SYNOPSIS

9       #include <gnutls/openpgp.h>
10
11       int gnutls_certificate_set_openpgp_key(gnutls_certificate_credentials_t
12       res, gnutls_openpgp_crt_t crt, gnutls_openpgp_privkey_t pkey);
13

ARGUMENTS

15       gnutls_certificate_credentials_t res
16                   is a gnutls_certificate_credentials_t structure.
17
18       gnutls_openpgp_crt_t crt
19
20       gnutls_openpgp_privkey_t pkey
21                   is an openpgp private key
22

DESCRIPTION

24       This function sets a certificate/private key pair  in  the  gnutls_cer‐
25       tificate_credentials_t  structure.   This  function  may be called more
26       than once (in case multiple keys/certificates exist for the server).
27
28       Note that this function requires that the preferred key ids  have  been
29       set and be used. See gnutls_openpgp_crt_set_preferred_key_id().  Other‐
30       wise the master key will be used.
31

RETURNS

33       On success, GNUTLS_E_SUCCESS (zero) is  returned,  otherwise  an  error
34       code is returned.
35

REPORTING BUGS

37       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
38       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
39       http://www.gnu.org/gethelp/
40
42       Copyright © 2008 Free Software Foundation.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium  without  royalty  provided  the  copyright
45       notice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the info and gnutls programs are properly installed  at  your  site,
50       the command
51
52              info gnutls
53
54       should give you access to the complete manual.
55
56
57
58gnutls                             2.12.6.g1nutls_certificate_set_openpgp_key(3)
Impressum