Release version 952 generated by do-release.sh
[citadel.git] / textclient / textclient.h
index 51be112478821d72157fa05e16f8db9a050c0a42..ec89b5b8d7fbafa6b826d850fd80df231df94e6d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (c) 1987-2020 by the citadel.org team
+// Copyright (c) 1987-2022 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, and/or
 // disclosure are subject to the GNU General Purpose License version 3.
@@ -11,7 +11,7 @@
 #define        UDS                     "_UDS_"
 #define DEFAULT_HOST           "localhost"
 #define DEFAULT_PORT           "504"
-#define CLIENT_VERSION          926
+#define CLIENT_VERSION 952
 #define CLIENT_TYPE            0
 
 // commands we can send to the stty_ctdl() routine
@@ -25,7 +25,6 @@
 #define ROOMNAMELEN            128             // The size of a roomname string
 #define USERNAME_SIZE          64              // The size of a username string
 #define MAX_EDITORS            5               // number of external editors supported, must be at least 1
-#define NONCE_SIZE             128             // Added by <bc> to allow for APOP auth 
 
 #define S_KEEPALIVE            30              // How often (in seconds) to send keepalives to the server
 
@@ -80,9 +79,6 @@ enum {
 #define COLOR_POP      17                      // Restore saved color
 #define ORIGINAL_PAIR  -1                      // Default terminal colors
 
-typedef void (*sighandler_t)(int);
-
-
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -485,8 +481,6 @@ extern int (*error_printf)(char *s, ...);
 void setIPCDeathHook(void (*hook)(void));
 void setIPCErrorPrintf(int (*func)(char *s, ...));
 void connection_died(CtdlIPC* ipc, int using_ssl);
-int CtdlIPC_getsockfd(CtdlIPC* ipc);
-char CtdlIPC_get(CtdlIPC* ipc);
 void CtdlIPC_lock(CtdlIPC *ipc);
 void CtdlIPC_unlock(CtdlIPC *ipc);
 char *libcitadelclient_version_string(void);
@@ -539,34 +533,6 @@ extern char rc_gotmail_cmd[SIZ];
 extern int lines_printed;
 extern int rc_remember_passwords;
 
-#ifndef MD5_H
-#define MD5_H
-
-struct MD5Context {
-       uint32_t buf[4];
-       uint32_t bits[2];
-       uint32_t in[16];
-};
-
-void MD5Init(struct MD5Context *context);
-void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
-void MD5Final(unsigned char digest[16], struct MD5Context *context);
-void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
-char *make_apop_string(char *realpass, char *nonce, char *buffer, size_t n);
-
-/*
- * This is needed to make RSAREF happy on some MS-DOS compilers.
- */
-#ifndef HAVE_OPENSSL
-typedef struct MD5Context MD5_CTX;
-#endif
-
-#define MD5_DIGEST_LEN         16
-#define MD5_HEXSTRING_SIZE     33
-
-#endif /* !MD5_H */
-
-
 #define MAXURLS                50                      // Max embedded URL's per message (oooh, can we use our elastic array class here?)
 extern int num_urls;
 extern char urls[MAXURLS][SIZ];
@@ -672,7 +638,7 @@ int scr_getc(int delay);
 int scr_putc(int c);
 void scr_flush(void);
 int scr_blockread(void);
-sighandler_t scr_winch(int signum);
+void scr_winch(int signum);
 void wait_indicator(int state);
 void ctdl_beep(void);
 void scr_wait_indicator(int);