summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-16 15:23:27 +0100
committerMichael Adam <obnox@samba.org>2013-11-16 15:26:06 +0100
commit0f18e4fc3a1205d5abd7f38c984b2dc707dc46c9 (patch)
treea59f9bbddc4b89c6638609677c919f02a640c390 /src
parent9f43cfd4882a7af973901ccdae2b056e2ef6e943 (diff)
downloadtinyproxy-0f18e4fc3a1205d5abd7f38c984b2dc707dc46c9.tar.gz
tinyproxy-0f18e4fc3a1205d5abd7f38c984b2dc707dc46c9.zip
BB#106: remove now unused extract_ssl_url.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r--src/reqs.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/reqs.c b/src/reqs.c
index d872294..d7f5438 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -244,31 +244,6 @@ ERROR_EXIT:
}
/*
- * Extract the URL from a SSL connection.
- */
-static int extract_ssl_url (const char *url, struct request_s *request)
-{
- request->host = (char *) safemalloc (strlen (url) + 1);
- if (!request->host)
- return -1;
-
- if (sscanf (url, "%[^:]:%hu", request->host, &request->port) == 2) ;
- else if (sscanf (url, "%s", request->host) == 1)
- request->port = HTTP_PORT_SSL;
- else {
- log_message (LOG_ERR, "extract_ssl_url: Can't parse URL.");
-
- safefree (request->host);
- return -1;
- }
-
- /* Remove the username/password if they're present */
- strip_username_password (request->host);
-
- return 0;
-}
-
-/*
* Create a connection for HTTP connections.
*/
static int