summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libtirpc/libtirpc/remove-des-functionality.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/libtirpc/libtirpc/remove-des-functionality.patch')
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc/remove-des-functionality.patch139
1 files changed, 0 insertions, 139 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/remove-des-functionality.patch b/meta/recipes-extended/libtirpc/libtirpc/remove-des-functionality.patch
deleted file mode 100644
index 31e97744cb..0000000000
--- a/meta/recipes-extended/libtirpc/libtirpc/remove-des-functionality.patch
+++ /dev/null
@@ -1,139 +0,0 @@
1uclibc and musl does not provide des functionality. Lets disable it.
2
3Upstream-Status: Inappropriate [uclibc and musl specific]
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7Signed-off-by: Maxin B. John <maxin.john@intel.com>
8---
9Index: libtirpc-1.0.1/src/Makefile.am
10===================================================================
11--- libtirpc-1.0.1.orig/src/Makefile.am
12+++ libtirpc-1.0.1/src/Makefile.am
13@@ -22,9 +22,8 @@ libtirpc_la_SOURCES = auth_none.c auth_u
14 pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \
15 rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
16 rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
17- svc_auth_des.c \
18 svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
19- auth_time.c auth_des.c authdes_prot.c debug.c des_crypt.c des_impl.c
20+ debug.c
21
22 ## XDR
23 libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c xdr_sizeof.c
24@@ -41,8 +40,8 @@ if GSS
25 libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSAPI_CFLAGS)
26 endif
27
28-libtirpc_la_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
29-libtirpc_la_SOURCES += netname.c netnamer.c rpcdname.c rtime.c
30+#libtirpc_la_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
31+#libtirpc_la_SOURCES += netname.c netnamer.c rpcdname.c rtime.c
32
33 CLEANFILES = cscope.* *~
34 DISTCLEANFILES = Makefile.in
35Index: libtirpc-1.0.1/src/rpc_soc.c
36===================================================================
37--- libtirpc-1.0.1.orig/src/rpc_soc.c
38+++ libtirpc-1.0.1/src/rpc_soc.c
39@@ -522,86 +522,6 @@ clnt_broadcast(prog, vers, proc, xargs,
40 }
41
42 /*
43- * Create the client des authentication object. Obsoleted by
44- * authdes_seccreate().
45- */
46-AUTH *
47-authdes_create(servername, window, syncaddr, ckey)
48- char *servername; /* network name of server */
49- u_int window; /* time to live */
50- struct sockaddr *syncaddr; /* optional hostaddr to sync with */
51- des_block *ckey; /* optional conversation key to use */
52-{
53- AUTH *nauth;
54- char hostname[NI_MAXHOST];
55-
56- if (syncaddr) {
57- /*
58- * Change addr to hostname, because that is the way
59- * new interface takes it.
60- */
61- switch (syncaddr->sa_family) {
62- case AF_INET:
63- if (getnameinfo(syncaddr, sizeof(struct sockaddr_in), hostname,
64- sizeof hostname, NULL, 0, 0) != 0)
65- goto fallback;
66- break;
67- case AF_INET6:
68- if (getnameinfo(syncaddr, sizeof(struct sockaddr_in6), hostname,
69- sizeof hostname, NULL, 0, 0) != 0)
70- goto fallback;
71- break;
72- default:
73- goto fallback;
74- }
75- nauth = authdes_seccreate(servername, window, hostname, ckey);
76- return (nauth);
77- }
78-fallback:
79- return authdes_seccreate(servername, window, NULL, ckey);
80-}
81-
82-/*
83- * Create the client des authentication object. Obsoleted by
84- * authdes_pk_seccreate().
85- */
86-extern AUTH *authdes_pk_seccreate(const char *, netobj *, u_int, const char *,
87- const des_block *, nis_server *);
88-
89-AUTH *
90-authdes_pk_create(servername, pkey, window, syncaddr, ckey)
91- char *servername; /* network name of server */
92- netobj *pkey; /* public key */
93- u_int window; /* time to live */
94- struct sockaddr *syncaddr; /* optional hostaddr to sync with */
95- des_block *ckey; /* optional conversation key to use */
96-{
97- AUTH *nauth;
98- char hostname[NI_MAXHOST];
99-
100- if (syncaddr) {
101- /*
102- * Change addr to hostname, because that is the way
103- * new interface takes it.
104- */
105- switch (syncaddr->sa_family) {
106- case AF_INET:
107- if (getnameinfo(syncaddr, sizeof(struct sockaddr_in), hostname,
108- sizeof hostname, NULL, 0, 0) != 0)
109- goto fallback;
110- break;
111- default:
112- goto fallback;
113- }
114- nauth = authdes_pk_seccreate(servername, pkey, window, hostname, ckey, NULL);
115- return (nauth);
116- }
117-fallback:
118- return authdes_pk_seccreate(servername, pkey, window, NULL, ckey, NULL);
119-}
120-
121-
122-/*
123 * Create a client handle for a unix connection. Obsoleted by clnt_vc_create()
124 */
125 CLIENT *
126Index: libtirpc-1.0.1/src/svc_auth.c
127===================================================================
128--- libtirpc-1.0.1.orig/src/svc_auth.c
129+++ libtirpc-1.0.1/src/svc_auth.c
130@@ -114,9 +114,6 @@ _gss_authenticate(rqst, msg, no_dispatch
131 case AUTH_SHORT:
132 dummy = _svcauth_short(rqst, msg);
133 return (dummy);
134- case AUTH_DES:
135- dummy = _svcauth_des(rqst, msg);
136- return (dummy);
137 #ifdef HAVE_RPCSEC_GSS
138 case RPCSEC_GSS:
139 dummy = _svcauth_gss(rqst, msg, no_dispatch);