1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
@deftypefun {int} {gnutls_pcert_import_openpgp_raw} (gnutls_pcert_st * @var{pcert}, const gnutls_datum_t * @var{cert}, gnutls_openpgp_crt_fmt_t @var{format}, gnutls_openpgp_keyid_t @var{keyid}, unsigned int @var{flags})
@var{pcert}: The pcert structure
@var{cert}: The raw certificate to be imported
@var{format}: The format of the certificate
@var{keyid}: The key ID to use (NULL for the master key)
@var{flags}: zero for now
This convenience function will import the given certificate to a
@code{gnutls_pcert_st} structure. The structure must be deinitialized
afterwards using @code{gnutls_pcert_deinit()} ;
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error value.
@strong{Since:} 3.0
@end deftypefun
|