63f9d4ec3aa64f97ad9e056879b8048ee0b42df6
[openssl.git] / providers / common / include / prov / bio.h
1 /*
2  * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #include <stdarg.h>
11 #include <openssl/bio.h>
12 #include <openssl/core.h>
13
14 int ossl_prov_bio_from_dispatch(const OSSL_DISPATCH *fns);
15
16 BIO *ossl_prov_bio_new_file(const char *filename, const char *mode);
17 BIO *ossl_prov_bio_new_membuf(const char *filename, int len);
18 int ossl_prov_bio_read_ex(BIO *bio, void *data, size_t data_len,
19                           size_t *bytes_read);
20 int ossl_prov_bio_free(BIO *bio);
21 int ossl_prov_bio_vprintf(BIO *bio, const char *format, va_list ap);
22 int ossl_prov_bio_printf(BIO *bio, const char *format, ...);