Changeset 5419 for wire

Show
Ignore:
Timestamp:
03/16/08 16:50:56 (6 months ago)
Author:
morris
Message:

Sync with libwired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/wire/client.c

    r5395 r5419  
    156156 
    157157void wr_client_init(void) { 
    158         wr_socket_tls = wi_socket_tls_init(wi_socket_tls_alloc()); 
    159          
    160         if(!wi_socket_tls_set_type(wr_socket_tls, WI_SOCKET_TLS_CLIENT)
    161                 wi_log_err(WI_STR("Could not set SSL context: %m")); 
     158        wr_socket_tls = wi_socket_tls_init_with_type(wi_socket_tls_alloc(), WI_SOCKET_TLS_CLIENT); 
     159         
     160        if(!wr_socket_tls
     161                wi_log_err(WI_STR("Could not create TLS context: %m")); 
    162162         
    163163        if(!wi_socket_tls_set_ciphers(wr_socket_tls, WI_STR("ALL:NULL:!MD5:@STRENGTH"))) 
    164                 wi_log_err(WI_STR("Could not set SSL ciphers: %m")); 
     164                wi_log_err(WI_STR("Could not set TLS ciphers: %m")); 
    165165         
    166166        wr_server_string_encoding = wi_string_encoding_init_with_charset(