]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
re-enable ziplinks + ssl
authorAaron Sethman <redacted>
Sat, 13 Dec 2008 20:20:59 +0000 (23:20 +0300)
committerAaron Sethman <redacted>
Sat, 13 Dec 2008 20:20:59 +0000 (23:20 +0300)
src/client.c
src/newconf.c
src/sslproc.c

index 343072708b842e9c0b8168d544feafedeae147d0..ac45624f0f180842cd14a4f181f0edecb211a562 100644 (file)
@@ -238,7 +238,11 @@ free_local_client(struct Client *client_p)
        if (client_p->localClient->privset)
                privilegeset_unref(client_p->localClient->privset);
 
-       ssld_decrement_clicount(client_p->localClient->ssl_ctl);
+       if(IsSSL(client_p))
+           ssld_decrement_clicount(client_p->localClient->ssl_ctl);
+           
+       if(IsCapable(client_p, CAP_ZIP))
+           ssld_decrement_clicount(client_p->localClient->z_ctl);
 
        rb_bh_free(lclient_heap, client_p->localClient);
        client_p->localClient = NULL;
index f2ccf68db9363e9705a768fb4272b7893c9d1932..9e929f3c9e6c65b37517ef2c0c1c38bdcd3e74ca 100644 (file)
@@ -1243,13 +1243,6 @@ conf_end_connect(struct TopConf *tc)
                yy_server->flags &= ~SERVER_COMPRESSED;
        }
 #endif
-       if(ServerConfCompressed(yy_server) && ServerConfSSL(yy_server))
-       {
-               conf_report_error("Ignoring compressed for connect block %s -- "
-                                      "ssl and compressed are mutually exclusive (OpenSSL does its own compression)", 
-                                      yy_server->name);
-               yy_server->flags &= ~SERVER_COMPRESSED;
-       }
 
        add_server_conf(yy_server);
        rb_dlinkAdd(yy_server, &yy_server->node, &server_conf_list);
index 01f5ea0a2f20a604ef836ec63a85be164e64b718..f05053847054805da4964bccb6fe70a396cb1074 100644 (file)
@@ -766,9 +766,10 @@ start_zlib_session(void *data)
        /* need to redo as what we did before isn't valid now */
        int32_to_buf(&buf[1], rb_get_fd(server->localClient->F));
        add_to_cli_fd_hash(server);
-       server->localClient->ssl_ctl = which_ssld();
-       server->localClient->ssl_ctl->cli_count++;
-       ssl_cmd_write_queue(server->localClient->ssl_ctl, F, 2, buf, len);
+
+       server->localClient->z_ctl = which_ssld();
+       server->localClient->z_ctl->cli_count++;
+       ssl_cmd_write_queue(server->localClient->z_ctl, F, 2, buf, len);
        rb_free(buf);
 }
 
@@ -796,7 +797,7 @@ collect_zipstats(void *unused)
                        int32_to_buf(&buf[1], rb_get_fd(target_p->localClient->F));
                        rb_strlcpy(odata, target_p->name, (sizeof(buf) - len));
                        len += strlen(odata) + 1;       /* Get the \0 as well */
-                       ssl_cmd_write_queue(target_p->localClient->ssl_ctl, NULL, 0, buf, len);
+                       ssl_cmd_write_queue(target_p->localClient->z_ctl, NULL, 0, buf, len);
                }
        }
 }