Add TLS/SSL interception support
[privoxy.git] / parsers.c
index f313f4f..f56345f 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -249,7 +249,7 @@ static const add_header_func_ptr add_server_headers[] = {
 
 /*********************************************************************
  *
 
 /*********************************************************************
  *
- * Function    :  flush_socket
+ * Function    :  flush_iob
  *
  * Description :  Write any pending "buffered" content.
  *
  *
  * Description :  Write any pending "buffered" content.
  *
@@ -266,7 +266,7 @@ static const add_header_func_ptr add_server_headers[] = {
  *                file, the results are not portable.
  *
  *********************************************************************/
  *                file, the results are not portable.
  *
  *********************************************************************/
-long flush_socket(jb_socket fd, struct iob *iob, unsigned int delay)
+long flush_iob(jb_socket fd, struct iob *iob, unsigned int delay)
 {
    long len = iob->eod - iob->cur;
 
 {
    long len = iob->eod - iob->cur;
 
@@ -4429,8 +4429,6 @@ jb_err get_destination_from_headers(const struct list *headers, struct http_requ
    char *p;
    char *host;
 
    char *p;
    char *host;
 
-   assert(!http->ssl);
-
    host = get_header_value(headers, "Host:");
 
    if (NULL == host)
    host = get_header_value(headers, "Host:");
 
    if (NULL == host)