base64_decode() with heimdal libs, so I've renamed it base64_decode_inplace().
authorJim McDonough <jmcd@samba.org>
Tue, 18 Feb 2003 23:17:59 +0000 (23:17 +0000)
committerJim McDonough <jmcd@samba.org>
Tue, 18 Feb 2003 23:17:59 +0000 (23:17 +0000)
(This used to be commit d510ff85fb0dafddf3dea9412a09eeee6e70f0cb)

source3/lib/util_str.c
source3/web/cgi.c

index 60e0e3837fc3d946a040b8ca3fe219495bd43389..21361a186242491f01f75bcebe310148b1ca5a80 100644 (file)
@@ -1578,7 +1578,7 @@ DATA_BLOB base64_decode_data_blob(const char *s)
 /***************************************************************************
 decode a base64 string in-place - wrapper for the above
 ***************************************************************************/
-void base64_decode(char *s)
+void base64_decode_inplace(char *s)
 {
        DATA_BLOB decoded = base64_decode_data_blob(s);
        memcpy(s, decoded.data, decoded.length);
index 46f33789bfcc2bdbed19c7a85655ea49ec2b80c3..8abc2f0bd5c6b5ff20b6b1972d92c92eacd6a7fd 100644 (file)
@@ -306,7 +306,7 @@ static BOOL cgi_handle_authorization(char *line)
        }
        line += 6;
        while (line[0] == ' ') line++;
-       base64_decode(line);
+       base64_decode_inplace(line);
        if (!(p=strchr_m(line,':'))) {
                /*
                 * Always give the same error so a cracker