summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_x509_privkey_set_spki
blob: 9b9d8fdaf3ac3371ccfcd63a5a5a7c1ec0fbc102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@deftypefun {int} {gnutls_x509_privkey_set_spki} (gnutls_x509_privkey_t @var{key}, const gnutls_x509_spki_t @var{spki}, unsigned int @var{flags})
@var{key}: should contain a @code{gnutls_x509_privkey_t}  type

@var{spki}: a SubjectPublicKeyInfo structure of type @code{gnutls_x509_spki_t} 

@var{flags}: must be zero

This function will return the public key information of a private
key. The provided  @code{spki} must be initialized.

@strong{Returns:} Zero on success, or a negative error code on error.
@end deftypefun