]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/common/include/prov/bio.h
Update copyright year
[thirdparty/openssl.git] / providers / common / include / prov / bio.h
CommitLineData
63665fff 1/*
00c405b3 2 * Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
63665fff
RL
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>
d40b42ab 13#include "prov/provider_ctx.h"
63665fff
RL
14
15int ossl_prov_bio_from_dispatch(const OSSL_DISPATCH *fns);
16
d40b42ab
MC
17OSSL_CORE_BIO *ossl_prov_bio_new_file(const char *filename, const char *mode);
18OSSL_CORE_BIO *ossl_prov_bio_new_membuf(const char *filename, int len);
19int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len,
63665fff 20 size_t *bytes_read);
d40b42ab
MC
21int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len,
22 size_t *written);
23int ossl_prov_bio_free(OSSL_CORE_BIO *bio);
24int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap);
25int ossl_prov_bio_printf(OSSL_CORE_BIO *bio, const char *format, ...);
26
27BIO_METHOD *bio_prov_init_bio_method(void);
28BIO *bio_new_from_core_bio(PROV_CTX *provctx, OSSL_CORE_BIO *corebio);