1 From 79975eb4104667be85abd06874c258438826b674 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
3 Date: Fri, 24 Jul 2015 14:45:52 +0200
4 Subject: [PATCH] Disable DES authentification support
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 uClibc and musl does not provide DES authentication.
11 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
12 [peda@axentia.se: update for 1.0.1]
13 Signed-off-by: Peter Rosin <peda@axentia.se>
15 src/Makefile.am | 2 +-
16 src/rpc_soc.c | 32 --------------------------------
17 2 files changed, 1 insertion(+), 33 deletions(-)
19 diff --git a/src/Makefile.am b/src/Makefile.am
20 index 960a522..3a88e31 100644
23 @@ -22,9 +22,8 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c cln
24 pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \
25 rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
26 rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
28 svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
29 - auth_des.c authdes_prot.c debug.c
33 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
34 diff --git a/src/svc_auth.c b/src/svc_auth.c
37 @@ -114,9 +114,6 @@ _gss_authenticate(rqst, msg, no_dispatch)
39 dummy = _svcauth_short(rqst, msg);
42 - dummy = _svcauth_des(rqst, msg);
44 #ifdef HAVE_RPCSEC_GSS
46 dummy = _svcauth_gss(rqst, msg, no_dispatch);
47 diff --git a/src/rpc_soc.c b/src/rpc_soc.c
48 index e146ed4..161a1ec 100644
51 @@ -61,7 +61,6 @@ #ifdef PORTMAP
55 -#include <rpcsvc/nis.h>
59 @@ -522,86 +521,6 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult)
63 - * Create the client des authentication object. Obsoleted by
64 - * authdes_seccreate().
67 -authdes_create(servername, window, syncaddr, ckey)
68 - char *servername; /* network name of server */
69 - u_int window; /* time to live */
70 - struct sockaddr *syncaddr; /* optional hostaddr to sync with */
71 - des_block *ckey; /* optional conversation key to use */
74 - char hostname[NI_MAXHOST];
78 - * Change addr to hostname, because that is the way
79 - * new interface takes it.
81 - switch (syncaddr->sa_family) {
83 - if (getnameinfo(syncaddr, sizeof(struct sockaddr_in), hostname,
84 - sizeof hostname, NULL, 0, 0) != 0)
88 - if (getnameinfo(syncaddr, sizeof(struct sockaddr_in6), hostname,
89 - sizeof hostname, NULL, 0, 0) != 0)
95 - nauth = authdes_seccreate(servername, window, hostname, ckey);
99 - return authdes_seccreate(servername, window, NULL, ckey);
103 - * Create the client des authentication object. Obsoleted by
104 - * authdes_pk_seccreate().
106 -extern AUTH *authdes_pk_seccreate(const char *, netobj *, u_int, const char *,
107 - const des_block *, nis_server *);
110 -authdes_pk_create(servername, pkey, window, syncaddr, ckey)
111 - char *servername; /* network name of server */
112 - netobj *pkey; /* public key */
113 - u_int window; /* time to live */
114 - struct sockaddr *syncaddr; /* optional hostaddr to sync with */
115 - des_block *ckey; /* optional conversation key to use */
118 - char hostname[NI_MAXHOST];
122 - * Change addr to hostname, because that is the way
123 - * new interface takes it.
125 - switch (syncaddr->sa_family) {
127 - if (getnameinfo(syncaddr, sizeof(struct sockaddr_in), hostname,
128 - sizeof hostname, NULL, 0, 0) != 0)
134 - nauth = authdes_pk_seccreate(servername, pkey, window, hostname, ckey, NULL);
138 - return authdes_pk_seccreate(servername, pkey, window, NULL, ckey, NULL);
143 * Create a client handle for a unix connection. Obsoleted by clnt_vc_create()