Path: blob/main/crypto/openssl/providers/common/include/prov/bio.h
48534 views
/*1* Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#include <stdarg.h>10#include <openssl/bio.h>11#include <openssl/core.h>12#include "prov/provider_ctx.h"1314int ossl_prov_bio_from_dispatch(const OSSL_DISPATCH *fns);1516OSSL_CORE_BIO *ossl_prov_bio_new_file(const char *filename, const char *mode);17OSSL_CORE_BIO *ossl_prov_bio_new_membuf(const char *filename, int len);18int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len,19size_t *bytes_read);20int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len,21size_t *written);22int ossl_prov_bio_gets(OSSL_CORE_BIO *bio, char *buf, int size);23int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str);24int ossl_prov_bio_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr);25int ossl_prov_bio_up_ref(OSSL_CORE_BIO *bio);26int ossl_prov_bio_free(OSSL_CORE_BIO *bio);27int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap);28int ossl_prov_bio_printf(OSSL_CORE_BIO *bio, const char *format, ...);2930BIO_METHOD *ossl_bio_prov_init_bio_method(void);31BIO *ossl_bio_new_from_core_bio(PROV_CTX *provctx, OSSL_CORE_BIO *corebio);323334