Bump API version to 2.2 and package version to 2.1.0. Remove NSS and
[platform/upstream/libsoup.git] / libsoup / soup-ssl.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * soup-queue.c: Asyncronous Callback-based HTTP Request Queue.
4  *
5  * Authors:
6  *      Alex Graveley (alex@ximian.com)
7  *
8  * Copyright (C) 2001-2002, Ximian, Inc.
9  */
10
11 #ifdef HAVE_CONFIG_H
12 #include <config.h>
13 #endif
14
15 #include "soup-gnutls.h"
16 #include "soup-ssl.h"
17
18 #ifdef HAVE_SSL
19 GIOChannel *
20 soup_ssl_get_iochannel (GIOChannel *sock)
21 {
22         return soup_gnutls_get_iochannel (sock, SOUP_SSL_TYPE_CLIENT);
23 }
24
25 GIOChannel *
26 soup_ssl_get_server_iochannel (GIOChannel *sock)
27 {
28         return soup_gnutls_get_iochannel (sock, SOUP_SSL_TYPE_SERVER);
29 }
30 #endif /* HAVE_SSL */