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