Debian Codegraph @

doc/functions/gnutls_pcert_import_rawpk

raw
1
2
3
4
5 @deftypefun {int} {gnutls_pcert_import_rawpk} (gnutls_pcert_st * @var{pcert}, gnutls_pubkey_t @var{pubkey}, unsigned int @var{flags})
6 @var{pcert}: The pcert structure to import the data into.
7
8 @var{pubkey}: The raw public-key in @code{gnutls_pubkey_t} format to be imported
9
10 @var{flags}: zero for now
11
12 This convenience function will import (i.e. convert) the given raw
13 public key @code{pubkey} into a @code{gnutls_pcert_st} structure. The structure
14 must be deinitialized afterwards using @code{gnutls_pcert_deinit()} . The
15 given @code{pubkey} must not be deinitialized because it will be associated
16 with the given @code{pcert} structure and will be deinitialized with it.
17
18 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
19 negative error value.
20
21 @strong{Since:} 3.6.6
22 @end deftypefun