26RCSIDH(bio_h,
"$Id: 8d48580aad105d56c71cde107dcc084f7c0e00b8 $")
28#include "openssl_user_macros.h"
30#include <openssl/bio.h>
31#include <freeradius-devel/util/dbuff.h>
33typedef struct fr_tls_bio_dbuff_s fr_tls_bio_dbuff_t;
35uint8_t *fr_tls_bio_dbuff_finalise(fr_tls_bio_dbuff_t *bd);
37char *fr_tls_bio_dbuff_finalise_bstr(fr_tls_bio_dbuff_t *bd);
39fr_dbuff_t *fr_tls_bio_dbuff_out(fr_tls_bio_dbuff_t *bd);
41fr_dbuff_t *fr_tls_bio_dbuff_in(fr_tls_bio_dbuff_t *bd);
43void fr_tls_bio_dbuff_reset(fr_tls_bio_dbuff_t *bd);
45BIO *fr_tls_bio_dbuff_alloc(fr_tls_bio_dbuff_t **
out, TALLOC_CTX *bio_ctx, TALLOC_CTX *buff_ctx,
46 size_t init,
size_t max,
bool free_buff);
48uint8_t *fr_tls_bio_dbuff_thread_local_finalise(
void);
50char *fr_tls_bio_dbuff_thread_local_finalise_bstr(
void);
52void fr_tls_bio_dbuff_thread_local_clear(
void);
54BIO *fr_tls_bio_dbuff_thread_local(TALLOC_CTX *ctx,
size_t init,
size_t max);
56int fr_tls_bio_init(
void);
58void fr_tls_bio_free(
void);
static size_t char ** out