summaryrefslogtreecommitdiff
path: root/package/libtirpc/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/libtirpc/patches')
-rw-r--r--package/libtirpc/patches/patch-src_auth_none_c11
-rw-r--r--package/libtirpc/patches/patch-src_auth_time_c20
-rw-r--r--package/libtirpc/patches/patch-src_clnt_bcast_c11
-rw-r--r--package/libtirpc/patches/patch-src_clnt_fd_locks_h11
-rw-r--r--package/libtirpc/patches/patch-src_getpublickey_c11
-rw-r--r--package/libtirpc/patches/patch-src_key_call_c15
-rw-r--r--package/libtirpc/patches/patch-src_svc_auth_none_c13
7 files changed, 92 insertions, 0 deletions
diff --git a/package/libtirpc/patches/patch-src_auth_none_c b/package/libtirpc/patches/patch-src_auth_none_c
new file mode 100644
index 000000000..765711342
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_auth_none_c
@@ -0,0 +1,11 @@
+--- libtirpc-1.3.6.orig/src/auth_none.c 2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/auth_none.c 2025-04-30 13:30:55.736451017 +0200
+@@ -62,7 +62,7 @@ static bool_t authnone_validate (AUTH *,
+ static bool_t authnone_refresh (AUTH *, void *);
+ static void authnone_destroy (AUTH *);
+
+-extern bool_t xdr_opaque_auth();
++extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *);
+
+ static struct auth_ops *authnone_ops();
+
diff --git a/package/libtirpc/patches/patch-src_auth_time_c b/package/libtirpc/patches/patch-src_auth_time_c
new file mode 100644
index 000000000..67bfd0e80
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_auth_time_c
@@ -0,0 +1,20 @@
+--- libtirpc-1.3.6.orig/src/auth_time.c 2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/auth_time.c 2025-04-30 13:33:25.507704020 +0200
+@@ -248,7 +248,7 @@ __rpc_get_time_offset(td, srv, thost, ua
+ char ut[64], ipuaddr[64];
+ endpoint teps[32];
+ nis_server tsrv;
+- void (*oldsig)() = NULL; /* old alarm handler */
++ void (*oldsig)(int) = NULL; /* old alarm handler */
+ struct sockaddr_in sin;
+ int s = RPC_ANYSOCK;
+ socklen_t len;
+@@ -417,7 +417,7 @@ __rpc_get_time_offset(td, srv, thost, ua
+ } else {
+ int res;
+
+- oldsig = (void (*)())signal(SIGALRM, alarm_hndler);
++ oldsig = (void (*)(int))signal(SIGALRM, alarm_hndler);
+ saw_alarm = 0; /* global tracking the alarm */
+ alarm(20); /* only wait 20 seconds */
+ res = connect(s, (struct sockaddr *)&sin, sizeof(sin));
diff --git a/package/libtirpc/patches/patch-src_clnt_bcast_c b/package/libtirpc/patches/patch-src_clnt_bcast_c
new file mode 100644
index 000000000..86f56c7f2
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_clnt_bcast_c
@@ -0,0 +1,11 @@
+--- libtirpc-1.3.4.orig/src/clnt_bcast.c 2023-10-07 09:54:42.000000000 +0200
++++ libtirpc-1.3.4/src/clnt_bcast.c 2024-02-08 16:26:57.298094444 +0100
+@@ -40,7 +40,7 @@
+ */
+ #include <sys/socket.h>
+ #include <sys/types.h>
+-#include <sys/queue.h>
++#include "queue.h"
+
+ #include <net/if.h>
+ #include <netinet/in.h>
diff --git a/package/libtirpc/patches/patch-src_clnt_fd_locks_h b/package/libtirpc/patches/patch-src_clnt_fd_locks_h
new file mode 100644
index 000000000..6927fca68
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_clnt_fd_locks_h
@@ -0,0 +1,11 @@
+--- libtirpc-1.3.4.orig/src/clnt_fd_locks.h 2023-10-07 09:54:42.000000000 +0200
++++ libtirpc-1.3.4/src/clnt_fd_locks.h 2024-02-08 16:25:34.795598116 +0100
+@@ -30,7 +30,7 @@
+ #ifndef _CLNT_FD_LOCKS_H
+ #define _CLNT_FD_LOCKS_H
+
+-#include <sys/queue.h>
++#include "queue.h"
+ #include <errno.h>
+ #include <reentrant.h>
+ #include <rpc/xdr.h>
diff --git a/package/libtirpc/patches/patch-src_getpublickey_c b/package/libtirpc/patches/patch-src_getpublickey_c
new file mode 100644
index 000000000..637d6be22
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_getpublickey_c
@@ -0,0 +1,11 @@
+--- libtirpc-1.3.6.orig/src/getpublickey.c 2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/getpublickey.c 2025-04-30 13:30:55.736451017 +0200
+@@ -52,7 +52,7 @@
+ /*
+ * Hack to let ypserv/rpc.nisd use AUTH_DES.
+ */
+-int (*__getpublickey_LOCAL)() = 0;
++int (*__getpublickey_LOCAL)(const char *, char *) = 0;
+
+ /*
+ * Get somebody's public key
diff --git a/package/libtirpc/patches/patch-src_key_call_c b/package/libtirpc/patches/patch-src_key_call_c
new file mode 100644
index 000000000..8a1c12921
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_key_call_c
@@ -0,0 +1,15 @@
+--- libtirpc-1.3.6.orig/src/key_call.c 2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/key_call.c 2025-04-30 13:33:25.507704020 +0200
+@@ -72,9 +72,9 @@
+ * implementations of these functions, and to call those in key_call().
+ */
+
+-cryptkeyres *(*__key_encryptsession_pk_LOCAL)() = 0;
+-cryptkeyres *(*__key_decryptsession_pk_LOCAL)() = 0;
+-des_block *(*__key_gendes_LOCAL)() = 0;
++cryptkeyres *(*__key_encryptsession_pk_LOCAL)(uid_t, char *) = 0;
++cryptkeyres *(*__key_decryptsession_pk_LOCAL)(uid_t, char *) = 0;
++des_block *(*__key_gendes_LOCAL)(uid_t, char *) = 0;
+
+ static int key_call( u_long, xdrproc_t, void *, xdrproc_t, void *);
+
diff --git a/package/libtirpc/patches/patch-src_svc_auth_none_c b/package/libtirpc/patches/patch-src_svc_auth_none_c
new file mode 100644
index 000000000..c21c67692
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_svc_auth_none_c
@@ -0,0 +1,13 @@
+--- libtirpc-1.3.6.orig/src/svc_auth_none.c 2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/svc_auth_none.c 2025-04-30 13:30:55.736451017 +0200
+@@ -37,8 +37,8 @@
+
+ #include <rpc/rpc.h>
+
+-static bool_t svcauth_none_destroy();
+-static bool_t svcauth_none_wrap();
++static bool_t svcauth_none_destroy(SVCAUTH *);
++static bool_t svcauth_none_wrap(SVCAUTH *, XDR *, bool_t (*)(XDR *, ...), char *);
+
+ struct svc_auth_ops svc_auth_none_ops = {
+ svcauth_none_wrap,