]> code.citadel.org Git - citadel.git/blobdiff - citadel/client_passwords.c
HUGE PATCH. This moves all of mime_parser.c and all
[citadel.git] / citadel / client_passwords.c
index 2087f1b7a722e661b111b6a43a4573026b333adf..f764626d1d4e9616e951f48bb2bcb368aef306b5 100644 (file)
@@ -16,9 +16,9 @@
 #include <sys/stat.h>
 #include <limits.h>
 #include <stdio.h>
+#include <libcitadel.h>
 #include "citadel.h"
 #include "citadel_ipc.h"
-#include "tools.h"
 #include "commands.h"
 #include "client_passwords.h"
 
@@ -109,14 +109,14 @@ void set_stored_password(
                   || (strcasecmp(portbuf, port)) ) {
                        snprintf(buf, sizeof buf, "%s|%s|%s|%s|",
                                hostbuf, portbuf, ubuf, pbuf);
-                       CtdlEncodeBase64(buf64, buf, strlen(buf));
+                       CtdlEncodeBase64(buf64, buf, strlen(buf), 0);
                        fprintf(fp, "%s\n", buf64);
                }
        }
        if (!IsEmptyStr(username)) {
                snprintf(buf, sizeof buf, "%s|%s|%s|%s|",
                        host, port, username, password);
-               CtdlEncodeBase64(buf64, buf, strlen(buf));
+               CtdlEncodeBase64(buf64, buf, strlen(buf), 0);
                fprintf(fp, "%s\n", buf64);
        }
        fclose(oldfp);