~ubuntu-branches/ubuntu/oneiric/weechat/oneiric

« back to all changes in this revision

Viewing changes to src/core/wee-network.c

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2010-12-27 23:29:46 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20101227232946-fh2eh42bmeushi0u
Tags: 0.3.3-3
* Upload to unstable.
* Downgrade tcl-dev dependency to 8.4 until tcl 8.5 hit unstable.
* Add a patch to make cmake aware of python 2.7 (Closes: #606989).
  Thanks to Matthias Klose.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2003-2010 by FlashCode <flashcode@flashtux.org>
3
 
 * See README for License detail, AUTHORS for developers list.
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
 
2
 * Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
 
3
 * Copyright (C) 2005-2010 Emmanuel Bouthenot <kolter@openics.org>
 
4
 *
 
5
 * This file is part of WeeChat, the extensible chat client.
 
6
 *
 
7
 * WeeChat is free software; you can redistribute it and/or modify
6
8
 * it under the terms of the GNU General Public License as published by
7
9
 * the Free Software Foundation; either version 3 of the License, or
8
10
 * (at your option) any later version.
9
11
 *
10
 
 * This program is distributed in the hope that it will be useful,
 
12
 * WeeChat is distributed in the hope that it will be useful,
11
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
15
 * GNU General Public License for more details.
14
16
 *
15
17
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 * along with WeeChat.  If not, see <http://www.gnu.org/licenses/>.
17
19
 */
18
20
 
19
21
/*
20
22
 * wee-network.c: network functions for WeeChat
21
23
 */
22
24
 
23
 
 
24
25
#ifdef HAVE_CONFIG_H
25
26
#include "config.h"
26
27
#endif
79
80
    gnutls_global_init ();
80
81
    gnutls_certificate_allocate_credentials (&gnutls_xcred);
81
82
    
82
 
    ca_path = string_replace (CONFIG_STRING(config_network_gnutls_ca_file),
83
 
                              "~", getenv ("HOME"));
 
83
    ca_path = string_expand_home (CONFIG_STRING(config_network_gnutls_ca_file));
84
84
    if (ca_path)
85
85
    {
86
86
        ca_path2 = string_replace (ca_path, "%h", weechat_home);