In the text client, changed some misleading error messages
authorArt Cancro <ajc@citadel.org>
Sat, 17 Sep 2022 21:21:27 +0000 (17:21 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 17 Sep 2022 21:21:27 +0000 (17:21 -0400)
textclient/citadel.c
textclient/config.mk

index fe5ffe7fb8b277c30db296bff95b2711c013460e..6559ef8ebae4c56ebd822f505fff191e3e6386f6 100644 (file)
@@ -1046,11 +1046,10 @@ void get_serv_info(CtdlIPC * ipc, char *supplied_hostname) {
                                /* Look up the , in the bible if you're confused */
                                (locate_host(ipc, buf), buf), buf);
 
-       /* Indicate to the server that we prefer to decode Base64 and
-        * quoted-printable on the client side.
-        */
+       // Indicate to the server that we prefer to decode Base64 and
+       // quoted-printable on the client side.
        if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "dont_decode") / 100) != 2) {
-               scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
+               scr_printf("Error %s:%d", __FILE__ , __LINE__);
                logoff(ipc, 0);
        }
 
@@ -1063,7 +1062,7 @@ void get_serv_info(CtdlIPC * ipc, char *supplied_hostname) {
         * the plain text when we have it available.
         */
        if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "text/plain|text/html|text/x-markdown") / 100) != 2) {
-               scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
+               scr_printf("Error %s:%d", __FILE__ , __LINE__);
                logoff(ipc, 0);
        }
 }
index 518496338f41e337499f780482d7ee18d9c57b7c..da064d22e975f5b3bef05adedfb1a984f2464502 100644 (file)
@@ -1,5 +1,5 @@
-CFLAGS := -Wformat-truncation=0 -ggdb
-LDFLAGS := 
+CFLAGS := -Wformat-truncation=0 -ggdb -DHAVE_OPENSSL
+LDFLAGS :=  -lssl -lcrypto -lz
 PREFIX := /usr/local
 BINDIR := /usr/local/bin
 CTDLDIR := /usr/local/citadel