#ifndef __GSK_OPENSSL_BIO_STREAM_PAIR_H_
#define __GSK_OPENSSL_BIO_STREAM_PAIR_H_

#include "../gskbufferstream.h"
#include <openssl/ssl.h>

G_BEGIN_DECLS

/* Create a linked BIO and stream, such that reading the BIO
 * causes data to be read from the stream,
 * and data written to the stream causes the bio to be readable
 * and data written to the bio causes the stream to be readable.
 */
gboolean gsk_openssl_bio_stream_pair (BIO             **bio_out,
                                      GskBufferStream **stream_out);

G_END_DECLS

#endif


syntax highlighted by Code2HTML, v. 0.9.1