summaryrefslogtreecommitdiff
path: root/dpi/cookies.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/cookies.c')
-rw-r--r--dpi/cookies.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/dpi/cookies.c b/dpi/cookies.c
index b858bd53..51767241 100644
--- a/dpi/cookies.c
+++ b/dpi/cookies.c
@@ -1142,14 +1142,14 @@ static int Cookies_set(char *cookie_string, char *url_host,
* Compare the cookie with the supplied data to see whether it matches
*/
static bool_t Cookies_match(CookieData_t *cookie, const char *url_path,
- bool_t host_only_val, bool_t is_ssl)
+ bool_t host_only_val, bool_t is_tls)
{
if (cookie->host_only != host_only_val)
return FALSE;
/* Insecure cookies match both secure and insecure urls, secure
cookies match only secure urls */
- if (cookie->secure && !is_ssl)
+ if (cookie->secure && !is_tls)
return FALSE;
if (!Cookies_path_matches(url_path, cookie->path))
@@ -1163,7 +1163,7 @@ static void Cookies_add_matching_cookies(const char *domain,
const char *url_path,
bool_t host_only_val,
Dlist *matching_cookies,
- bool_t is_ssl)
+ bool_t is_tls)
{
DomainNode *node = dList_find_sorted(domains, domain,
Domain_node_by_domain_cmp);
@@ -1183,7 +1183,7 @@ static void Cookies_add_matching_cookies(const char *domain,
--i; continue;
}
/* Check if the cookie matches the requesting URL */
- if (Cookies_match(cookie, url_path, host_only_val, is_ssl)) {
+ if (Cookies_match(cookie, url_path, host_only_val, is_tls)) {
int j;
CookieData_t *curr;
uint_t path_length = strlen(cookie->path);
@@ -1213,7 +1213,7 @@ static char *Cookies_get(char *url_host, char *url_path,
char *domain_str, *str;
CookieData_t *cookie;
Dlist *matching_cookies;
- bool_t is_ssl, is_ip_addr, host_only_val;
+ bool_t is_tls, is_ip_addr, host_only_val;
Dstr *cookie_dstring;
int i;
@@ -1224,7 +1224,7 @@ static char *Cookies_get(char *url_host, char *url_path,
matching_cookies = dList_new(8);
/* Check if the protocol is secure or not */
- is_ssl = (!dStrAsciiCasecmp(url_scheme, "https"));
+ is_tls = (!dStrAsciiCasecmp(url_scheme, "https"));
is_ip_addr = Cookies_domain_is_ip(url_host);
@@ -1240,17 +1240,17 @@ static char *Cookies_get(char *url_host, char *url_path,
/* e.g., sub.example.com set a cookie with domain ".sub.example.com". */
domain_str = dStrconcat(".", url_host, NULL);
Cookies_add_matching_cookies(domain_str, url_path, host_only_val,
- matching_cookies, is_ssl);
+ matching_cookies, is_tls);
dFree(domain_str);
}
host_only_val = TRUE;
/* e.g., sub.example.com set a cookie with no domain attribute. */
Cookies_add_matching_cookies(url_host, url_path, host_only_val,
- matching_cookies, is_ssl);
+ matching_cookies, is_tls);
host_only_val = FALSE;
/* e.g., sub.example.com set a cookie with domain "sub.example.com". */
Cookies_add_matching_cookies(url_host, url_path, host_only_val,
- matching_cookies, is_ssl);
+ matching_cookies, is_tls);
if (!is_ip_addr) {
for (domain_str = strchr(url_host+1, '.');
@@ -1258,12 +1258,12 @@ static char *Cookies_get(char *url_host, char *url_path,
domain_str = strchr(domain_str+1, '.')) {
/* e.g., sub.example.com set a cookie with domain ".example.com". */
Cookies_add_matching_cookies(domain_str, url_path, host_only_val,
- matching_cookies, is_ssl);
+ matching_cookies, is_tls);
if (domain_str[1]) {
domain_str++;
/* e.g., sub.example.com set a cookie with domain "example.com".*/
Cookies_add_matching_cookies(domain_str, url_path, host_only_val,
- matching_cookies, is_ssl);
+ matching_cookies, is_tls);
}
}
}