/[weechat]/weechat/src/common/weechat.c
ViewVC logotype

Diff of /weechat/src/common/weechat.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.46 by flashcode, Sun Jun 19 20:55:11 2005 UTC revision 1.47 by flashcode, Tue Jun 21 08:05:58 2005 UTC
# Line 75  char *local_charset = NULL;     /* local Line 75  char *local_charset = NULL;     /* local
75    
76  int server_cmd_line;    /* at least one server on WeeChat command line      */  int server_cmd_line;    /* at least one server on WeeChat command line      */
77    
78  gnutls_anon_client_credentials gnutls_anoncred;  /* gnutls client credentials */  gnutls_certificate_credentials gnutls_xcred;   /* gnutls client credentials */
79    
80    
81  /*  /*
# Line 522  wee_init_vars () Line 522  wee_init_vars ()
522            
523      /* init gnutls */      /* init gnutls */
524      gnutls_global_init ();      gnutls_global_init ();
525      gnutls_anon_allocate_client_credentials (&gnutls_anoncred);      gnutls_certificate_allocate_credentials (&gnutls_xcred);
526        gnutls_certificate_set_x509_trust_file (gnutls_xcred, "ca.pem", GNUTLS_X509_FMT_PEM);
527  }  }
528    
529  /*  /*
# Line 616  wee_shutdown (int return_code) Line 617  wee_shutdown (int return_code)
617      if (local_charset)      if (local_charset)
618          free (local_charset);          free (local_charset);
619      alias_free_all ();      alias_free_all ();
620      gnutls_anon_free_client_credentials (gnutls_anoncred);      gnutls_certificate_free_credentials (gnutls_xcred);
621      gnutls_global_deinit();      gnutls_global_deinit();
622      exit (return_code);      exit (return_code);
623  }  }

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26