mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 18:26:44 +02:00
67 lines
1.8 KiB
Diff
67 lines
1.8 KiB
Diff
diff --git a/blowfish.c b/blowfish.c
|
|
index 51f6e48..a02887a 100644
|
|
--- a/blowfish.c
|
|
+++ b/blowfish.c
|
|
@@ -3,6 +3,7 @@
|
|
/* $Id: blowfish.c,v 1.3 1998/12/01 15:46:16 vasim Exp $ */
|
|
|
|
#include <sys/types.h>
|
|
+#include <arpa/inet.h>
|
|
#include "blowfish.h"
|
|
|
|
#define F(x,s) (((s->S[0][(x >> 24) & 0xff] \
|
|
diff --git a/rtnppd.c b/rtnppd.c
|
|
index ad3e7c2..129905f 100644
|
|
--- a/rtnppd.c
|
|
+++ b/rtnppd.c
|
|
@@ -162,8 +162,10 @@ int translate_packet(tnpp_packet *pack, int transparentcrc);
|
|
* log packet (if need)
|
|
* Return 1, if was translated */
|
|
int encrypt_packet(tnpp_packet *pack, tnpp_device *dev); /* Encrypt packet */
|
|
+int decrypt_packet(unsigned char *data, tnpp_device *dev);
|
|
void send_page(tnpp_device *dev, int message);
|
|
|
|
+
|
|
/* Put packet into file */
|
|
void put_to_file(char *filename, unsigned char *data, int tcrc) {
|
|
int len;
|
|
diff --git a/testq.c b/testq.c
|
|
index a8efec8..61f8051 100644
|
|
--- a/testq.c
|
|
+++ b/testq.c
|
|
@@ -9,8 +9,9 @@
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
|
|
-main(int argc, char *argv[]) {
|
|
+void main(int argc, char *argv[]) {
|
|
char buffer[5120];
|
|
int res;
|
|
struct sockaddr_un sun, suno;
|
|
diff --git a/tnpppage.c b/tnpppage.c
|
|
index 8233faa..6d27b3f 100644
|
|
--- a/tnpppage.c
|
|
+++ b/tnpppage.c
|
|
@@ -37,7 +37,7 @@ int send_tnpp_packet(int fd, struct sockaddr_un *sun, unsigned char *data,
|
|
int length, crc;
|
|
|
|
if (len > (MAX_PACKET_SIZE - 14))
|
|
- return;
|
|
+ return 0;
|
|
snprintf(buf, sizeof(buf) - 1, "%c%04X%02X%04X%02X%c", '\01', tnpp_to, 20,
|
|
tnpp_from, 0, '\02');
|
|
length = strlen(buf);
|
|
diff --git a/testq.c b/testq.c
|
|
index 61f8051..0081a77 100644
|
|
--- a/testq.c
|
|
+++ b/testq.c
|
|
@@ -3,6 +3,7 @@
|
|
* See comments. */
|
|
/* $Id: testq.c,v 1.1 1998/11/21 19:35:46 vasim Exp $ */
|
|
|
|
+#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|