@deftypefun {int} {gnutls_openpgp_keyring_import} (gnutls_openpgp_keyring_t @var{keyring}, const gnutls_datum_t * @var{data}, gnutls_openpgp_crt_fmt_t @var{format}) @var{keyring}: The structure to store the parsed key. @var{data}: The RAW or BASE64 encoded keyring. @var{format}: One of @code{gnutls_openpgp_keyring_fmt} elements. This function will convert the given RAW or Base64 encoded keyring to the native @code{gnutls_openpgp_keyring_t} format. The output will be stored in 'keyring'. @strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, or an error code. @end deftypefun