gnutls_x509_privkey_get_spki(3)

gnutls_x509_privkey_get_spki3

Api function

Usage

#include <gnutls/x509.h>

int gnutls_x509_privkey_get_spki(gnutls_x509_privkey_t key, gnutls_x509_spki_t spki, unsigned int flags);

Arguments

gnutls_x509_privkey_t key

should contain a gnutls_x509_privkey_t type

gnutls_x509_spki_t spki

a SubjectPublicKeyInfo structure of type gnutls_x509_spki_t

unsigned int flags

must be zero

Overview

This function will return the public key information of a private key. The provided spki must be initialized.

Returns

Zero on success, or a negative error code on error.

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-07. Parsed by carta from the page's man source.