int gnutls_certificate_set_openpgp_key(gnutls_certificate_credentials_t res, gnutls_openpgp_crt_t crt, gnutls_openpgp_privkey_t pkey);
ARGUMENTS
gnutls_certificate_credentials_t res
is a gnutls_certificate_credentials_t structure.
gnutls_openpgp_crt_t crt
gnutls_openpgp_privkey_t pkey
is an openpgp private key
DESCRIPTION
This function sets a certificate/private key pair in the
gnutls_certificate_credentials_t structure. This function may be
called more than once (in case multiple keys/certificates exist
for the server).
With this function the subkeys of the certificate are not used.
RETURNS
On success, GNUTLS_E_SUCCESS (zero) is returned,
otherwise an error code is returned.