OSSL_DISPATCH(3ossl)
π NAME π
okay so bestie, this page is OSSL_DISPATCH(3ossl) β the OpenSSL Core type that defines a dispatchable function table β and it also covers OSSL_DISPATCH_END, the macro that says βweβre done here, periodt.β
β¨ SYNOPSIS β¨
#include <openssl/core.h>
typedef struct ossl_dispatch_st OSSL_DISPATCH;
struct ossl_dispatch_st {
int function_id;
void (*function)(void);
};
#define OSSL_DISPATCH_END
π¦ DESCRIPTION π¦
This type is literally a tuple of function identity and function pointer. Arrays of this type get passed between the OpenSSL libraries and the providers to describe what functionality one side provides to the other.
β οΈ No cap: arrays of this type must be terminated with the OSSL_DISPATCH_END macro.
πΈ OSSL_DISPATCH fields πΈ
function_idβ the OpenSSL-defined function identity of the implemented function.functionβ pointer to the implemented function itself. Even though this field has a generic definition, the function it points to must have a function signature that corresponds to thefunction_id.
Available function identities and corresponding function signatures are defined in openssl-core_dispatch.h(7). Furthermore, the chosen function identities and associated function signature must be chosen specifically for the operation that itβs intended for, as determined by the intended OSSL_ALGORITHM(3) array.
Any function identity not recognised by the recipient of this type will be ignored. This ensures that providers built with one OpenSSL version in mind will work together with any other OpenSSL version that supports this mechanism. slay for compatibility π
π SEE ALSO π
crypto(7), openssl-core_dispatch.h(7), OSSL_ALGORITHM(3)
π HISTORY π
OSSL_DISPATCH was added in OpenSSL 3.0.
π COPYRIGHT π
Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.
Signing off from OpenSSL 3.5.0, dated 2026-09-25 β OSSL_DISPATCH(3ossl) out π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms