1OSSL_ITEM(3ossl)                    OpenSSL                   OSSL_ITEM(3ossl)
2
3
4

NAME

6       OSSL_ITEM - OpenSSL Core type for generic itemized data
7

SYNOPSIS

9        #include <openssl/core.h>
10
11        typedef struct ossl_item_st OSSL_ITEM;
12        struct ossl_item_st {
13            unsigned int id;
14            void *ptr;
15        };
16

DESCRIPTION

18       This type is a tuple of integer and pointer.  It's a generic type used
19       as a generic descriptor, its exact meaning being defined by how it's
20       used.  Arrays of this type are passed between the OpenSSL libraries and
21       the providers, and must be terminated with a tuple where the integer is
22       zero and the pointer NULL.
23
24       This is currently mainly used for the return value of the provider's
25       error reason strings array, see "Provider Functions" in
26       provider-base(7).
27

SEE ALSO

29       crypto(7), provider-base(7), openssl-core.h(7)
30

HISTORY

32       OSSL_ITEM was added in OpenSSL 3.0
33
35       Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
36
37       Licensed under the Apache License 2.0 (the "License").  You may not use
38       this file except in compliance with the License.  You can obtain a copy
39       in the file LICENSE in the source distribution or at
40       <https://www.openssl.org/source/license.html>.
41
42
43
443.0.9                             2023-07-27                  OSSL_ITEM(3ossl)
Impressum