OSSL_ITEM(3ssl)

OSSL_ITEM3ssl

Openssl core type for generic itemized data

Usage

 #include <openssl/core.h>
 typedef struct ossl_item_st OSSL_ITEM;
 struct ossl_item_st {
     unsigned int id;
     void *ptr;
 };

Overview

This type is a tuple of integer and pointer. It's a generic type used as a generic descriptor, its exact meaning being defined by how it's used. Arrays of this type are passed between the OpenSSL libraries and the providers, and must be terminated with a tuple where the integer is zero and the pointer NULL.

This is currently mainly used for the return value of the provider's error reason strings array, see "Provider Functions" in provider-base(7).

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

History

OSSL_ITEM was added in OpenSSL 3.0

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.