]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/OSSL_SERIALIZER_to_bio.pod
Expand the XTS documentation
[thirdparty/openssl.git] / doc / man3 / OSSL_SERIALIZER_to_bio.pod
CommitLineData
742496f1
RL
1=pod
2
3=head1 NAME
4
5OSSL_SERIALIZER_to_bio,
6OSSL_SERIALIZER_to_fp
7- Serializer file output routines
8
9=head1 SYNOPSIS
10
11 #include <openssl/serializer.h>
12
13 int OSSL_SERIALIZER_to_bio(OSSL_SERIALIZER_CTX *ctx, BIO *out);
14 int OSSL_SERIALIZER_to_fp(OSSL_SERIALIZER_CTX *ctx, FILE *fp);
15
16Feature availability macros:
17
18=over 4
19
20=item OSSL_SERIALIZER_to_fp() is only available when B<OPENSSL_NO_STDIO>
21is undefined.
22
23=back
24
25=head1 DESCRIPTION
26
27OSSL_SERIALIZER_to_bio() runs the serialization process for the
28context I<ctx>, with the output going to the B<BIO> I<out>. The
29application is required to set up the B<BIO> properly, for example to
30have it in text or binary mode if that's appropriate.
31
32=for comment Know your serializer!
33
34OSSL_SERIALIZER_to_fp() does the same thing as OSSL_SERIALIZER_to_bio(),
35except that the output is going to the B<FILE> I<fp>.
36
37=head1 RETURN VALUES
38
39OSSL_SERIALIZER_to_bio() and OSSL_SERIALIZER_to_fp() return 1 on
40success, or 0 on failure.
41
42=head1 SEE ALSO
43
44L<provider(7)>, L<OSSL_SERIALIZER_CTX(3)>
45
46=head1 HISTORY
47
48The functions described here were added in OpenSSL 3.0.
49
50=head1 COPYRIGHT
51
52Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
53
54Licensed under the Apache License 2.0 (the "License"). You may not use
55this file except in compliance with the License. You can obtain a copy
56in the file LICENSE in the source distribution or at
57L<https://www.openssl.org/source/license.html>.
58
59=cut