gnutls_pubkey_get_spki(3)

gnutls_pubkey_get_spki3

Api function

Usage

#include <gnutls/abstract.h>

int gnutls_pubkey_get_spki(gnutls_pubkey_t pubkey, gnutls_x509_spki_t spki, unsigned int flags);

Arguments

gnutls_pubkey_t pubkey

a public key of type gnutls_pubkey_t

gnutls_x509_spki_t spki

a SubjectPublicKeyInfo structure of type gnutls_pubkey_spki_t

unsigned int flags

must be zero

Overview

This function will return the public key information if available. The provided spki must be initialized.

Returns

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.

Since

3.6.0

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

Reporting bugs

Report bugs to <[email protected]>.
Home page: https://www.gnutls.org

From gnutls 3.8.13-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.