Changeset 5409

Show
Ignore:
Timestamp:
03/15/08 09:36:57 (4 months ago)
Author:
morris
Message:

Sync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/trackerd/tracker.c

    r5391 r5409  
    156156        if(wt_settings.cipher) { 
    157157                if(!wi_socket_tls_set_ciphers(wt_socket_tls, wt_settings.cipher)) { 
    158                         wi_log_err(WI_STR("Could not set SSL cipher list \"%@\""), 
     158                        wi_log_err(WI_STR("Could not set TLS cipher list \"%@\""), 
    159159                                wt_settings.cipher); 
    160160                } 
     
    167167                if(certificate) { 
    168168                        if(!wi_socket_tls_set_certificate(wt_socket_tls, certificate)) 
    169                                 wi_log_err(WI_STR("Could not set certificate: %m")); 
     169                                wi_log_err(WI_STR("Could not set TLS certificate: %m")); 
    170170                 
    171171                        wi_release(certificate); 
     
    180180                if(wt_private_key) { 
    181181                        if(!wi_socket_tls_set_private_key(wt_socket_tls, wt_private_key)) 
    182                                 wi_log_err(WI_STR("Could not set private key: %m")); 
     182                                wi_log_err(WI_STR("Could not set TLS private key: %m")); 
    183183                } else { 
    184184                        wi_log_err(WI_STR("Could not load private key %@: %m"), 
     
    207207        unsigned char   dh1024_g[] = { 0x02 }; 
    208208 
    209         wt_socket_tls = wi_socket_tls_init(wi_socket_tls_alloc()); 
    210          
    211         if(!wi_socket_tls_set_type(wt_socket_tls, WI_SOCKET_TLS_SERVER)
    212                 wi_log_err(WI_STR("Could not set SSL context: %m")); 
     209        wt_socket_tls = wi_socket_tls_init_with_type(wi_socket_tls_alloc(), WI_SOCKET_TLS_SERVER); 
     210         
     211        if(!wt_socket_tls
     212                wi_log_err(WI_STR("Could not create TLS context: %m")); 
    213213         
    214214        if(!wi_socket_tls_set_dh(wt_socket_tls, dh1024_p, sizeof(dh1024_p), dh1024_g, sizeof(dh1024_g)))