Changes in / [8a9afe4:3d64e5b]


Ignore:
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r8a9afe4 r3d64e5b  
    1010
    1111# Program variables
    12 objects = account.o bitlbee.o commands.o conf.o crypting.o help.o ini.o irc.o log.o nick.o query.o set.o storage.o storage_text.o unix.o url.o user.o
     12objects = account.o bitlbee.o commands.o conf.o crypting.o help.o ini.o irc.o log.o nick.o query.o set.o unix.o url.o user.o storage_text.o storage.o
    1313subdirs = protocols
    1414
  • protocols/Makefile

    r8a9afe4 r3d64e5b  
    1010
    1111# [SH] Program variables
    12 objects = http_client.o md5.o nogaim.o proxy.o sha.o $(SSL_CLIENT) util.o
     12objects = md5.o nogaim.o proxy.o sha.o util.o $(SSL_CLIENT)
    1313
    1414# [SH] The next two lines should contain the directory name (in $(subdirs))
  • protocols/proxy.c

    r8a9afe4 r3d64e5b  
    106106        if (condition & GAIM_WRITE_COND)
    107107                gaim_cond |= GAIM_INPUT_WRITE;
     108//      if (condition & GAIM_ERR_COND)
     109//              fprintf( stderr, "ERROR! fd=%d\n", g_io_channel_unix_get_fd( source ) );
    108110
    109111        closure->function(closure->data, g_io_channel_unix_get_fd(source), gaim_cond);
  • protocols/ssl_client.h

    r8a9afe4 r3d64e5b  
    4040G_MODULE_EXPORT void ssl_disconnect( void *conn_ );
    4141G_MODULE_EXPORT int ssl_getfd( void *conn );
    42 G_MODULE_EXPORT GaimInputCondition ssl_getdirection( void *conn );
  • protocols/ssl_gnutls.c

    r8a9afe4 r3d64e5b  
    117117                if( st == GNUTLS_E_AGAIN || st == GNUTLS_E_INTERRUPTED )
    118118                {
    119                         conn->inpa = gaim_input_add( conn->fd, ssl_getdirection( conn ),
     119                        conn->inpa = gaim_input_add( conn->fd,
     120                                                     gnutls_record_get_direction( conn->session ) ?
     121                                                         GAIM_INPUT_WRITE : GAIM_INPUT_READ,
    120122                                                     ssl_handshake, data );
    121123                }
     
    143145int ssl_read( void *conn, char *buf, int len )
    144146{
    145         int st;
    146        
    147147        if( !((struct scd*)conn)->established )
    148148        {
     
    151151        }
    152152       
    153         st = gnutls_record_recv( ((struct scd*)conn)->session, buf, len );
     153        return( gnutls_record_recv( ((struct scd*)conn)->session, buf, len ) );
    154154       
    155         ssl_errno = SSL_OK;
    156         if( st == GNUTLS_E_AGAIN || st == GNUTLS_E_INTERRUPTED )
    157                 ssl_errno = SSL_AGAIN;
    158        
    159         return st;
    160155}
    161156
    162157int ssl_write( void *conn, const char *buf, int len )
    163158{
    164         int st;
    165        
    166159        if( !((struct scd*)conn)->established )
    167160        {
     
    170163        }
    171164       
    172         st = gnutls_record_send( ((struct scd*)conn)->session, buf, len );
    173        
    174         ssl_errno = SSL_OK;
    175         if( st == GNUTLS_E_AGAIN || st == GNUTLS_E_INTERRUPTED )
    176                 ssl_errno = SSL_AGAIN;
    177        
    178         return st;
     165        return( gnutls_record_send( ((struct scd*)conn)->session, buf, len ) );
    179166}
    180167
     
    197184        return( ((struct scd*)conn)->fd );
    198185}
    199 
    200 GaimInputCondition ssl_getdirection( void *conn )
    201 {
    202         return( gnutls_record_get_direction( ((struct scd*)conn)->session ) ?
    203                 GAIM_INPUT_WRITE : GAIM_INPUT_READ );
    204 }
  • sock.h

    r8a9afe4 r3d64e5b  
    1 #include <errno.h>
    2 #include <fcntl.h>
    3 
    41#ifndef _WIN32
    52#include <unistd.h>
Note: See TracChangeset for help on using the changeset viewer.