From c858986248f9ee86835be732f413824c0e42d729 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 25 Feb 2025 09:32:57 +0000 Subject: New upstream version 6.0.24.65+repack --- HTTPcode.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'HTTPcode.c') diff --git a/HTTPcode.c b/HTTPcode.c index 54a0614..f3f0d22 100644 --- a/HTTPcode.c +++ b/HTTPcode.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses */ - //#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #define _CRT_SECURE_NO_DEPRECATE @@ -71,6 +70,8 @@ BOOL SHA1PasswordHash(char * String, char * Hash); char * byte_base64_encode(char *str, int len); int APIProcessHTTPMessage(char * response, char * Method, char * URL, char * request, BOOL LOCAL, BOOL COOKIE); int RHPProcessHTTPMessage(struct ConnectionInfo * conn, char * response, char * Method, char * URL, char * request, BOOL LOCAL, BOOL COOKIE); +unsigned char * Compressit(unsigned char * In, int Len, int * OutLen); +int doinflate(unsigned char * source, unsigned char * dest, int Len, int destlen, int * outLen); extern struct ROUTE * NEIGHBOURS; extern int ROUTE_LEN; @@ -143,7 +144,7 @@ char Tail[] = ""; char RouteHddr[] = "

Routes

" ""; -char RouteLine[] = ""; +char RouteLine[] = ""; char xNodeHddr[] = "
" "
PortCallQualityNode CountFrame CountRetriesPercentMaxframeFrackLast HeardQueuedRem Qual
%s%d%s%c%d%d%d%d%d%%d%d%02d:%02d%d%d
%s%d%s%s%d%d%d%d%d%%d%d%02d:%02d%d%d
" "
" @@ -2412,7 +2413,10 @@ doHeader: if (Session == 0) Session = &Dummy; - Session->TNC = LOCAL; // TNC is only used on Web Terminal Sessions so can reuse as LOCAL flag + if (LOCAL) + Session->TNC = (struct TNCINFO *)(uintptr_t)1; // TNC is only used on Web Terminal Sessions so can reuse as LOCAL flag + else + Session->TNC = 0; WriteFile(hPipe, Session, sizeof (struct HTTPConnectionInfo), &InputLen, NULL); WriteFile(hPipe, MsgPtr, MsgLen, &InputLen, NULL); @@ -3796,7 +3800,7 @@ doHeader: int MaxRoutes = MAXNEIGHBOURS; int count; char Normcall[10]; - char locked; + char locked[4] = " "; int NodeCount; int Percent = 0; int Iframes, Retries; @@ -3812,10 +3816,14 @@ doHeader: int len = ConvFromAX25(Routes->NEIGHBOUR_CALL, Normcall); Normcall[len]=0; - if ((Routes->NEIGHBOUR_FLAG & 1) == 1) - locked = '!'; + if (Routes->NEIGHBOUR_FLAG == LOCKEDBYCONFIG) + strcpy(locked, "!"); + else if (Routes->NEIGHBOUR_FLAG == LOCKEDBYSYSOP) + strcpy(locked, "!!"); + else if (Routes->NEIGHBOUR_FLAG == LOCKEDBYSYSOP + LOCKEDBYCONFIG) + strcpy(locked, "!!!"); else - locked = ' '; + strcpy(locked, " "); NodeCount = COUNTNODES(Routes); @@ -4322,7 +4330,7 @@ int ProcessMailAPISignon(struct TCPINFO * TCP, char * MsgPtr, char * Appl, char { int ReplyLen = 0; char * input = strstr(MsgPtr, "\r\n\r\n"); // End of headers - char * user, * password, * Key; + char * user, * password; struct HTTPConnectionInfo * NewSession; int i; struct UserRec * USER; -- cgit v1.2.3