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 |
/* |
/* |
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 |
/* |
/* |
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 |
} |
} |