Changeset ba5add7 for lib/ssl_gnutls.c


Ignore:
Timestamp:
2008-02-17T01:39:39Z (13 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
82e8fe8
Parents:
fd9fa52
Message:

explicitly initialize ssl in order to avoid gnutls and libotr fighting over the global state of libgcrypt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    rfd9fa52 rba5add7  
    6060static gboolean ssl_handshake( gpointer data, gint source, b_input_condition cond );
    6161
     62
     63void ssl_init( void )
     64{
     65        gnutls_global_init();
     66        initialized = TRUE;
     67        atexit( gnutls_global_deinit );
     68}
    6269
    6370void *ssl_connect( char *host, int port, ssl_input_function func, gpointer data )
     
    122129        if( !initialized )
    123130        {
    124                 gnutls_global_init();
    125                 initialized = TRUE;
    126                 atexit( gnutls_global_deinit );
     131                ssl_init();
    127132        }
    128133       
Note: See TracChangeset for help on using the changeset viewer.