]> code.citadel.org Git - citadel.git/blobdiff - citadel/client_passwords.c
* CtdlWriteObject() encode in memory instead of on disk (not tested)
[citadel.git] / citadel / client_passwords.c
index d755f363b86067c56126a867ec27005b93de6054..23d2e84c11000319cdf809d816064aba9d2b10c9 100644 (file)
@@ -108,14 +108,14 @@ void set_stored_password(
                   || (strcasecmp(portbuf, port)) ) {
                        snprintf(buf, sizeof buf, "%s|%s|%s|%s|",
                                hostbuf, portbuf, ubuf, pbuf);
-                       encode_base64(buf64, buf);
+                       CtdlEncodeBase64(buf64, buf, strlen(buf));
                        fprintf(fp, "%s\n", buf64);
                }
        }
        if (strlen(username) > 0) {
                snprintf(buf, sizeof buf, "%s|%s|%s|%s|",
                        host, port, username, password);
-               encode_base64(buf64, buf);
+               CtdlEncodeBase64(buf64, buf, strlen(buf));
                fprintf(fp, "%s\n", buf64);
        }
        fclose(oldfp);