Call base4_encode() with "1" for its new "pad" arg so that the
authorWayne Davison <wayned@samba.org>
Mon, 6 Mar 2006 18:22:26 +0000 (18:22 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 6 Mar 2006 18:22:26 +0000 (18:22 +0000)
Proxy-Authorization header is properly padded with trailing '='
chars.

socket.c

index 47f7ce1..c850cd3 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -64,7 +64,7 @@ static int establish_proxy_connection(int fd, char *host, int port,
                        return -1;
                }
 
-               base64_encode(buffer, len, authbuf);
+               base64_encode(buffer, len, authbuf, 1);
                authhdr = "\r\nProxy-Authorization: Basic ";
        } else {
                *authbuf = '\0';