]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/OSSL_DESERIALIZER_CTX.pod
Rename OSSL_SERIALIZER / OSSL_DESERIALIZER to OSSL_ENCODE / OSSL_DECODE
[thirdparty/openssl.git] / doc / man3 / OSSL_DESERIALIZER_CTX.pod
CommitLineData
c3e4c1f3
RL
1=pod
2
3=head1 NAME
4
5OSSL_DESERIALIZER_CTX,
6OSSL_DESERIALIZER_CTX_new,
7OSSL_DESERIALIZER_settable_ctx_params,
8OSSL_DESERIALIZER_CTX_set_params,
9OSSL_DESERIALIZER_CTX_free
10- Serializer context routines
11
12=head1 SYNOPSIS
13
14 #include <openssl/deserializer.h>
15
16 typedef struct ossl_deserializer_ctx_st OSSL_DESERIALIZER_CTX;
17
18 OSSL_DESERIALIZER_CTX *OSSL_DESERIALIZER_CTX_new(OPENSSL_CTX *libctx);
19 const OSSL_PARAM *OSSL_DESERIALIZER_settable_ctx_params(OSSL_DESERIALIZER *deser);
20 int OSSL_DESERIALIZER_CTX_set_params(OSSL_DESERIALIZER_CTX *ctx,
21 const OSSL_PARAM params[]);
22 void OSSL_DESERIALIZER_CTX_free(OSSL_DESERIALIZER_CTX *ctx);
23
24=head1 DESCRIPTION
25
26B<OSSL_DESERIALIZER_CTX> is a context with which B<OSSL_DESERIALIZER>
27operations are performed. The context typically holds values, both
28internal and supplied by the application, which are useful for the
29implementations supplied by providers.
30
31OSSL_DESERIALIZER_CTX_new() creates a new empty B<OSSL_DESERIALIZER_CTX>.
32
33OSSL_DESERIALIZER_settable_ctx_params() returns an L<OSSL_PARAM(3)>
34array of parameter descriptors.
35
36OSSL_DESERIALIZER_CTX_set_params() attempts to set parameters specified
37with an L<OSSL_PARAM(3)> array I<params>. These parameters are passed
38to all deserializers that have been added to the I<ctx> so far.
39Parameters that an implementation doesn't recognise should be ignored
40by it.
41
42OSSL_DESERIALIZER_CTX_free() frees the given context I<ctx>.
43
44=head1 RETURN VALUES
45
46OSSL_DESERIALIZER_CTX_new() returns a pointer to a
47B<OSSL_DESERIALIZER_CTX>, or NULL if the context structure couldn't be
48allocated.
49
50OSSL_DESERIALIZER_settable_ctx_params() returns an L<OSSL_PARAM(3)>
51array, or NULL if none is available.
52
53OSSL_DESERIALIZER_CTX_set_params() returns 1 if all recognised
54parameters were valid, or 0 if one of them was invalid or caused some
55other failure in the implementation.
56
57=head1 SEE ALSO
58
59L<provider(7)>, L<OSSL_DESERIALIZER(3)>, L<OSSL_DESERIALIZER_from_bio(3)>
60
61=head1 HISTORY
62
63The functions described here were added in OpenSSL 3.0.
64
65=head1 COPYRIGHT
66
67Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
68
69Licensed under the Apache License 2.0 (the "License"). You may not use
70this file except in compliance with the License. You can obtain a copy
71in the file LICENSE in the source distribution or at
72L<https://www.openssl.org/source/license.html>.
73
74=cut