comparison src/proxy.c @ 7106:db6bd3e794d8

[gaim-migrate @ 7671] tobase16(), frombase16(), tobase64(), frombase64() -> gaim_base16_encode(), gaim_base16_decode(), gaim_base64_encode(), gaim_base64_decode(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 05:56:58 +0000
parents a14200b24371
children 08ce2a94d9c7
comparison
equal deleted inserted replaced
7105:9d0e74b6ca68 7106:db6bd3e794d8
1030 char *t1, *t2; 1030 char *t1, *t2;
1031 t1 = g_strdup_printf("%s:%s", 1031 t1 = g_strdup_printf("%s:%s",
1032 gaim_proxy_info_get_username(phb->gpi), 1032 gaim_proxy_info_get_username(phb->gpi),
1033 gaim_proxy_info_get_password(phb->gpi) ? 1033 gaim_proxy_info_get_password(phb->gpi) ?
1034 gaim_proxy_info_get_password(phb->gpi) : ""); 1034 gaim_proxy_info_get_password(phb->gpi) : "");
1035 t2 = tobase64(t1, strlen(t1)); 1035 t2 = gaim_base64_encode(t1, strlen(t1));
1036 g_free(t1); 1036 g_free(t1);
1037 g_return_if_fail(request_len < sizeof(request)); 1037 g_return_if_fail(request_len < sizeof(request));
1038 request_len += g_snprintf(request + request_len, 1038 request_len += g_snprintf(request + request_len,
1039 sizeof(request) - request_len, 1039 sizeof(request) - request_len,
1040 "Proxy-Authorization: Basic %s\r\n", t2); 1040 "Proxy-Authorization: Basic %s\r\n", t2);