Changeset a72dc2b for lib/ssl_gnutls.c


Ignore:
Timestamp:
2011-12-19T17:57:20Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9f958f7
Parents:
25b05b7
Message:

Add verify argument to ssl_connect() so HTTPS-based stuff is also secure.
(Think of Twitter, but also MSN/Yahoo! authentication.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    r25b05b7 ra72dc2b  
    7878}
    7979
    80 void *ssl_connect( char *host, int port, ssl_input_function func, gpointer data )
     80void *ssl_connect( char *host, int port, gboolean verify, ssl_input_function func, gpointer data )
    8181{
    8282        struct scd *conn = g_new0( struct scd, 1 );
     
    8686        conn->data = data;
    8787        conn->inpa = -1;
     88        conn->hostname = g_strdup( host );
     89        conn->verify = verify && global.conf->cafile;
    8890       
    8991        if( conn->fd < 0 )
Note: See TracChangeset for help on using the changeset viewer.