gnutls_privkey_set_spki3
Api function
Usage
#include <gnutls/abstract.h>
int gnutls_privkey_set_spki(gnutls_privkey_t privkey, const gnutls_x509_spki_t spki, unsigned int flags);
Arguments
gnutls_privkey_t privkey
|
a public key of type |
|---|---|
const gnutls_x509_spki_t spki
|
a SubjectPublicKeyInfo structure of type |
unsigned int flags
|
must be zero |
Overview
This function will set the public key information. The provided spki must be initialized.
Returns
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
Since
3.6.0
Releases
5 releases since Debian 10 (Buster); the text changed 4 times.