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                   contains an openpgp public key
20
21       gnutls_openpgp_privkey_t pkey
22                   is an openpgp private key
23

DESCRIPTION

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

RETURNS

34       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
35       error code is returned.
36

REPORTING BUGS

38       Report bugs to <bugs@gnutls.org>.
39       Home page: http://www.gnutls.org
40
41
43       Copyright © 2001-2014 Free Software Foundation, Inc..
44       Copying  and  distribution  of this file, with or without modification,
45       are permitted in any medium  without  royalty  provided  the  copyright
46       notice and this notice are preserved.
47

SEE ALSO

49       The  full  documentation  for gnutls is maintained as a Texinfo manual.
50       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
51       visit
52
53       http://www.gnutls.org/manual/
54
55gnutls                              3.3.29gnutls_certificate_set_openpgp_key(3)
Impressum