summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_x509_crt_set_pubkey
blob: a31be1e22f32e7dd18d4729f7458712197a63c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@deftypefun {int} {gnutls_x509_crt_set_pubkey} (gnutls_x509_crt_t @var{crt}, gnutls_pubkey_t @var{key})
@var{crt}: should contain a @code{gnutls_x509_crt_t}  type

@var{key}: holds a public key

This function will set the public parameters from the given public
key to the certificate. The  @code{key} can be deallocated after that.

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
negative error value.

@strong{Since:} 2.12.0
@end deftypefun