]> git.ipfire.org Git - thirdparty/openssl.git/blob - include/internal/bio.h
Copyright consolidation 03/10
[thirdparty/openssl.git] / include / internal / bio.h
1 /*
2 * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the OpenSSL license (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 <openssl/bio.h>
11
12 struct bio_method_st {
13 int type;
14 const char *name;
15 int (*bwrite) (BIO *, const char *, int);
16 int (*bread) (BIO *, char *, int);
17 int (*bputs) (BIO *, const char *);
18 int (*bgets) (BIO *, char *, int);
19 long (*ctrl) (BIO *, int, long, void *);
20 int (*create) (BIO *);
21 int (*destroy) (BIO *);
22 long (*callback_ctrl) (BIO *, int, bio_info_cb *);
23 };
24
25 void bio_free_ex_data(BIO *bio);
26 void bio_cleanup(void);