5 OSSL_DECODER_from_data,
8 - Routines to perform a decoding
12 #include <openssl/decoder.h>
14 int OSSL_DECODER_from_bio(OSSL_DECODER_CTX *ctx, BIO *in);
15 int OSSL_DECODER_from_fp(OSSL_DECODER_CTX *ctx, FILE *fp);
16 int OSSL_DECODER_from_data(OSSL_DECODER_CTX *ctx, const unsigned char **pdata,
19 Feature availability macros:
23 =item OSSL_DECODER_from_fp() is only available when B<OPENSSL_NO_STDIO>
30 OSSL_DECODER_from_data() runs the decoding process for the context I<ctx>,
31 with input coming from I<*pdata>, I<*pdata_len> bytes long. Both I<*pdata>
32 and I<*pdata_len> must be non-NULL. When OSSL_DECODER_from_data() returns,
33 I<*pdata> is updated to point at the location after what has been decoded,
34 and I<*pdata_len> to have the number of remaining bytes.
36 OSSL_DECODER_from_bio() runs the decoding process for the context I<ctx>,
37 with the input coming from the B<BIO> I<in>. Should it make a difference,
38 it's recommended to have the BIO set in binary mode rather than text mode.
40 OSSL_DECODER_from_fp() does the same thing as OSSL_DECODER_from_bio(),
41 except that the input is coming from the B<FILE> I<fp>.
45 OSSL_DECODER_from_bio() and OSSL_DECODER_from_fp() return 1 on success, or 0
48 =begin comment TODO(3.0) Add examples!
52 Text, because pod2xxx doesn't like empty sections
58 L<provider(7)>, L<OSSL_DECODER_CTX(3)>
62 The functions described here were added in OpenSSL 3.0.
66 Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
68 Licensed under the Apache License 2.0 (the "License"). You may not use
69 this file except in compliance with the License. You can obtain a copy
70 in the file LICENSE in the source distribution or at
71 L<https://www.openssl.org/source/license.html>.