xref: /netbsd-src/crypto/external/bsd/openssl/dist/include/internal/bio.h (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /*
2  * Copyright 2016-2018 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     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);
27