Mercurial > pidgin
comparison src/proxy.c @ 5426:8d8bf0d31a23
[gaim-migrate @ 5805]
i'm cleaning out my tree
1. new tobase64 function that works better
2. new date/time stamp parsing stuff for jabber
3. other misc stuff, not deserving of specific mention
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Sun, 18 May 2003 05:45:18 +0000 |
| parents | 0bf1ced10b2b |
| children | a2f26666de42 |
comparison
equal
deleted
inserted
replaced
| 5425:73bde657e212 | 5426:8d8bf0d31a23 |
|---|---|
| 783 phb->host, phb->port); | 783 phb->host, phb->port); |
| 784 | 784 |
| 785 if (phb->gpi->proxyuser) { | 785 if (phb->gpi->proxyuser) { |
| 786 char *t1, *t2; | 786 char *t1, *t2; |
| 787 t1 = g_strdup_printf("%s:%s", phb->gpi->proxyuser, phb->gpi->proxypass); | 787 t1 = g_strdup_printf("%s:%s", phb->gpi->proxyuser, phb->gpi->proxypass); |
| 788 t2 = tobase64(t1); | 788 t2 = tobase64(t1, -1); |
| 789 g_free(t1); | 789 g_free(t1); |
| 790 g_return_if_fail(request_len < sizeof(request)); | 790 g_return_if_fail(request_len < sizeof(request)); |
| 791 request_len += g_snprintf(request + request_len, sizeof(request) - request_len, "Proxy-Authorization: Basic %s\r\n", t2); | 791 request_len += g_snprintf(request + request_len, sizeof(request) - request_len, "Proxy-Authorization: Basic %s\r\n", t2); |
| 792 g_free(t2); | 792 g_free(t2); |
| 793 } | 793 } |
