Changeset 5408
- Timestamp:
- 03/15/08 09:36:04 (6 months ago)
- Files:
-
- wired/trunk/wired/server.c (modified) (5 diffs)
- wired/trunk/wired/trackers.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/wired/server.c
r5392 r5408 203 203 if(wd_settings.controlcipher) { 204 204 if(!wi_socket_tls_set_ciphers(wd_control_socket_tls, wd_settings.controlcipher)) { 205 wi_log_err(WI_STR("Could not set SSLcipher list \"%@\": %m"),205 wi_log_err(WI_STR("Could not set TLS cipher list \"%@\": %m"), 206 206 wd_settings.controlcipher); 207 207 } … … 210 210 if(wd_settings.transfercipher) { 211 211 if(!wi_socket_tls_set_ciphers(wd_transfer_socket_tls, wd_settings.transfercipher)) { 212 wi_log_err(WI_STR("Could not set SSLcipher list \"%@\": %m"),212 wi_log_err(WI_STR("Could not set TLS cipher list \"%@\": %m"), 213 213 wd_settings.transfercipher); 214 214 } … … 222 222 if(!wi_socket_tls_set_certificate(wd_control_socket_tls, certificate) || 223 223 !wi_socket_tls_set_certificate(wd_transfer_socket_tls, certificate)) { 224 wi_log_err(WI_STR("Could not set certificate: %m"));224 wi_log_err(WI_STR("Could not set TLS certificate: %m")); 225 225 } 226 226 … … 236 236 if(!wi_socket_tls_set_private_key(wd_control_socket_tls, private_key) || 237 237 !wi_socket_tls_set_private_key(wd_transfer_socket_tls, private_key)) { 238 wi_log_err(WI_STR("Could not set private key: %m"));238 wi_log_err(WI_STR("Could not set TLS private key: %m")); 239 239 } 240 240 … … 288 288 unsigned char dh1024_g[] = { 0x02 }; 289 289 290 wd_control_socket_tls = wi_socket_tls_init(wi_socket_tls_alloc()); 291 wd_transfer_socket_tls = wi_socket_tls_init(wi_socket_tls_alloc()); 292 293 if(!wi_socket_tls_set_type(wd_control_socket_tls, WI_SOCKET_TLS_SERVER) || 294 !wi_socket_tls_set_type(wd_transfer_socket_tls, WI_SOCKET_TLS_SERVER)) 295 wi_log_err(WI_STR("Could not set SSL tls: %m")); 290 wd_control_socket_tls = wi_socket_tls_init_with_type(wi_socket_tls_alloc(), WI_SOCKET_TLS_SERVER); 291 wd_transfer_socket_tls = wi_socket_tls_init_with_type(wi_socket_tls_alloc(), WI_SOCKET_TLS_SERVER); 292 293 if(!wd_control_socket_tls || !wd_transfer_socket_tls) 294 wi_log_err(WI_STR("Could not create TLS context: %m")); 296 295 297 296 if(!wi_socket_tls_set_dh(wd_control_socket_tls, dh1024_p, sizeof(dh1024_p), dh1024_g, sizeof(dh1024_g)) || wired/trunk/wired/trackers.c
r5392 r5408 143 143 } 144 144 145 tracker->tls = wi_socket_tls_init (wi_socket_tls_alloc());146 147 if(! wi_socket_tls_set_type(tracker->tls, WI_SOCKET_TLS_CLIENT)) {148 wi_log_warn(WI_STR("Could not set SSLcontext: %m"));145 tracker->tls = wi_socket_tls_init_with_type(wi_socket_tls_alloc(), WI_SOCKET_TLS_CLIENT); 146 147 if(!tracker->tls) { 148 wi_log_warn(WI_STR("Could not create TLS context: %m")); 149 149 150 150 continue; … … 153 153 if(wd_settings.controlcipher) { 154 154 if(!wi_socket_tls_set_ciphers(tracker->tls, wd_settings.controlcipher)) { 155 wi_log_err(WI_STR("Could not set SSLcipher list \"%@\": %m"),155 wi_log_err(WI_STR("Could not set TLS cipher list \"%@\": %m"), 156 156 wd_settings.controlcipher); 157 157
