4 * Copyright (C) 2015 NICE s.r.l.
6 * This file is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This file is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * In addition, when the library is used with OpenSSL, a special
20 * exception applies. Refer to the LICENSE_EXCEPTION file for details.
22 * Authors: Ignacio Casal Quinteiro
25 #ifndef __G_TLS_BIO_H__
26 #define __G_TLS_BIO_H__
29 #include "openssl-include.h"
33 BIO *g_tls_bio_new (GIOStream *io_stream);
35 void g_tls_bio_set_read_cancellable (BIO *bio,
36 GCancellable *cancellable);
38 void g_tls_bio_set_read_blocking (BIO *bio,
41 void g_tls_bio_set_read_error (BIO *bio,
44 void g_tls_bio_set_write_cancellable (BIO *bio,
45 GCancellable *cancellable);
47 void g_tls_bio_set_write_blocking (BIO *bio,
50 void g_tls_bio_set_write_error (BIO *bio,
55 #endif /* __G_TLS_BIO_H__ */