OSSL_SERIALIZER_CTX, OSSL_SERIALIZER_CTX_new, OSSL_SERIALIZER_CTX_get_serializer, OSSL_SERIALIZER_settable_ctx_params, OSSL_SERIALIZER_CTX_set_params, OSSL_SERIALIZER_CTX_free - Serializer context routines
#include <openssl/serializer.h>
typedef struct ossl_serializer_ctx_st OSSL_SERIALIZER_CTX;
OSSL_SERIALIZER_CTX *OSSL_SERIALIZER_CTX_new(OSSL_SERIALIZER *ser); const OSSL_SERIALIZER * OSSL_SERIALIZER_CTX_get_serializer(OSSL_SERIALIZER_CTX *ctx); const OSSL_PARAM *OSSL_SERIALIZER_settable_ctx_params(OSSL_SERIALIZER *ser); int OSSL_SERIALIZER_CTX_set_params(OSSL_SERIALIZER_CTX *ctx, const OSSL_PARAM params[]); void OSSL_SERIALIZER_CTX_free(OSSL_SERIALIZER_CTX *ctx);
OSSL_SERIALIZER_CTX is a context with which OSSL_SERIALIZER operations are performed. The context typically holds values, both internal and supplied by the application, which are useful for the implementations supplied by providers.
OSSL_SERIALIZER_CTX_new()
creates a OSSL_SERIALIZER_CTX associated
with the serializer ser. NULL is a valid ser, the context will
be created anyway, it's just not very useful. This is intentional, to
distinguish between errors in allocating the context or assigning it
values on one hand, and the lack of serializer support on the other.
OSSL_SERIALIZER_CTX_get_serializer()
gets the serializer method
currently associated with the context ctx.
OSSL_SERIALIZER_settable_ctx_params()
returns an OSSL_PARAM(3)
array of parameter descriptors.
OSSL_SERIALIZER_CTX_set_params()
attempts to set parameters specified
with an OSSL_PARAM(3) array params. Parameters that the
implementation doesn't recognise should be ignored.
OSSL_SERIALIZER_CTX_free()
frees the given context ctx.
OSSL_SERIALIZER_CTX_new()
returns a pointer to a
OSSL_SERIALIZER_CTX, or NULL if the context structure couldn't be
allocated.
OSSL_SERIALIZER_CTX_get_serializer()
returns a pointer to the
serializer method associated with ctx. NULL is a valid return
value and signifies that there is no associated serializer method.
OSSL_SERIALIZER_settable_ctx_params()
returns an OSSL_PARAM(3)
array, or NULL if none is available.
OSSL_SERIALIZER_CTX_set_params()
returns 1 if all recognised
parameters were valid, or 0 if one of them was invalid or caused some
other failure in the implementation.
provider(7), OSSL_SERIALIZER(3)
The functions described here were added in OpenSSL 3.0.
Copyright 2019 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.