/***************************************************************************
 *
 * Copyright (c) 2000, 2001 BalaBit IT Ltd, Budapest, Hungary
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: giossl.h,v 1.2.4.2 2001/09/19 19:22:17 bazsi Exp $
 *
 * Author  : Buci
 * Auditor : 
 * Last version: 1.0
 * Notes:
 *
 ***************************************************************************/

#ifndef ZORP_GIOSSL_H_INCLUDED
#define ZORP_GIOSSL_H_INCLUDED

#include <zorp/ssl.h>

typedef struct _GIOSSLChannel 
{
  GIOChannel channel;
  ZSSLSession *ssl;
  GString *error;
} GIOSSLChannel;

void ERR_error_gstring(GString *str);
GIOChannel *g_io_channel_ssl_new (ZSSLSession *ssl);
gchar *g_io_channel_ssl_get_error_string(GIOChannel *channel);
ZSSLSession *g_io_channel_ssl_get_ssl(GIOChannel *channel);

#endif /* ZORP_GIOSSL_H_INCLUDED */
