2014-06-30 13:56:08 +02:00
|
|
|
From 4285205401faeb12b4ed7ebbc4658af9eae73eb4 Mon Sep 17 00:00:00 2001
|
2012-11-04 08:34:10 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Sat, 23 Jun 2012 21:57:39 +0200
|
2012-11-10 12:42:39 +01:00
|
|
|
Subject: [PATCH] Disable parts of TIRPC requiring NIS support
|
2012-11-04 08:34:10 +01:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
---
|
2014-06-30 13:56:08 +02:00
|
|
|
src/Makefile.am | 3 +--
|
|
|
|
src/rpc_soc.c | 2 ++
|
|
|
|
tirpc/rpc/auth.h | 3 +++
|
2012-11-04 08:34:10 +01:00
|
|
|
3 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
2014-06-30 13:56:08 +02:00
|
|
|
index 3029b78..b5db263 100644
|
2012-11-04 08:34:10 +01:00
|
|
|
--- a/src/Makefile.am
|
|
|
|
+++ b/src/Makefile.am
|
2014-06-30 13:56:08 +02:00
|
|
|
@@ -50,8 +50,7 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c cln
|
2012-11-04 08:34:10 +01:00
|
|
|
pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \
|
|
|
|
rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
|
2014-06-30 13:56:08 +02:00
|
|
|
rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
|
|
|
|
- svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
|
|
|
|
- auth_time.c auth_des.c authdes_prot.c
|
|
|
|
+ svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c
|
2012-11-04 08:34:10 +01:00
|
|
|
|
|
|
|
## XDR
|
|
|
|
libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c
|
|
|
|
diff --git a/src/rpc_soc.c b/src/rpc_soc.c
|
2014-06-30 13:56:08 +02:00
|
|
|
index 4213ca0..2603548 100644
|
2012-11-04 08:34:10 +01:00
|
|
|
--- a/src/rpc_soc.c
|
|
|
|
+++ b/src/rpc_soc.c
|
2014-06-30 13:56:08 +02:00
|
|
|
@@ -520,6 +520,7 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult)
|
2012-11-04 08:34:10 +01:00
|
|
|
(resultproc_t) rpc_wrap_bcast, "udp");
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
/*
|
|
|
|
* Create the client des authentication object. Obsoleted by
|
|
|
|
* authdes_seccreate().
|
2014-06-30 13:56:08 +02:00
|
|
|
@@ -551,6 +552,7 @@ fallback:
|
2012-11-04 08:34:10 +01:00
|
|
|
dummy = authdes_seccreate(servername, window, NULL, ckey);
|
|
|
|
return (dummy);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Create a client handle for a unix connection. Obsoleted by clnt_vc_create()
|
|
|
|
diff --git a/tirpc/rpc/auth.h b/tirpc/rpc/auth.h
|
2014-06-30 13:56:08 +02:00
|
|
|
index 4ce11f0..b894e44 100644
|
2012-11-04 08:34:10 +01:00
|
|
|
--- a/tirpc/rpc/auth.h
|
|
|
|
+++ b/tirpc/rpc/auth.h
|
2014-06-30 13:56:08 +02:00
|
|
|
@@ -305,6 +305,8 @@ extern AUTH *authunix_create(char *, uid_t, uid_t, int, uid_t *);
|
2012-11-04 08:34:10 +01:00
|
|
|
extern AUTH *authunix_create_default(void); /* takes no parameters */
|
|
|
|
extern AUTH *authnone_create(void); /* takes no parameters */
|
|
|
|
__END_DECLS
|
|
|
|
+
|
|
|
|
+#if 0
|
|
|
|
/*
|
|
|
|
* DES style authentication
|
|
|
|
* AUTH *authsecdes_create(servername, window, timehost, ckey)
|
2014-06-30 13:56:08 +02:00
|
|
|
@@ -318,6 +320,7 @@ extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
|
2012-11-04 08:34:10 +01:00
|
|
|
extern AUTH *authdes_seccreate (const char *, const u_int, const char *,
|
|
|
|
const des_block *);
|
|
|
|
__END_DECLS
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *);
|
|
|
|
--
|
2014-06-30 13:56:08 +02:00
|
|
|
2.0.0
|
2012-11-04 08:34:10 +01:00
|
|
|
|