summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2019-10-09 11:29:14 -0400
committerSteve Dickson <steved@redhat.com>2019-10-09 11:29:14 -0400
commitd918e41d88985a083f9a0acbd2062d4178d2a0f4 (patch)
tree3f5294bba92e74fcebab6a83b3ff66204f998fc0 /src
parent5735d1c8c9400e1ede403a1abb48b90514a89889 (diff)
downloadti-rpc-d918e41d88985a083f9a0acbd2062d4178d2a0f4.tar.gz
Compile out the AUTH_DES support.
AUTH_DES authentication is dead! Has not been supported in years and know the code is throwing out coverity scan which don't make sense to fix. The code is know compiled out by default. Reviewed-by: Petr Vorel <petr.vorel@gmail.com> Tested-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am7
-rw-r--r--src/rpc_soc.c2
-rw-r--r--src/svc_auth.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b40a6b4..b2d5436 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,9 +23,12 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c \
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 \
rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
- svc_auth_des.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 debug.c des_crypt.c des_impl.c
+ auth_time.c debug.c
+
+if AUTHDES
+libtirpc_la_SOURCES += auth_des.c authdes_prot.c des_crypt.c des_impl.c des_soft.c svc_auth_des.c
+endif
## XDR
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
diff --git a/src/rpc_soc.c b/src/rpc_soc.c
index a85cb17..76e4376 100644
--- a/src/rpc_soc.c
+++ b/src/rpc_soc.c
@@ -516,6 +516,7 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult)
(resultproc_t) rpc_wrap_bcast, "udp");
}
+#ifdef AUTHDES_SUPPORT
/*
* Create the client des authentication object. Obsoleted by
* authdes_seccreate().
@@ -594,6 +595,7 @@ authdes_pk_create(servername, pkey, window, syncaddr, ckey)
fallback:
return authdes_pk_seccreate(servername, pkey, window, NULL, ckey, NULL);
}
+#endif
/*
diff --git a/src/svc_auth.c b/src/svc_auth.c
index 7a554b1..66a52e4 100644
--- a/src/svc_auth.c
+++ b/src/svc_auth.c
@@ -114,9 +114,11 @@ _gss_authenticate(rqst, msg, no_dispatch)
case AUTH_SHORT:
dummy = _svcauth_short(rqst, msg);
return (dummy);
+#ifdef AUTHDES_SUPPORT
case AUTH_DES:
dummy = _svcauth_des(rqst, msg);
return (dummy);
+#endif
#ifdef HAVE_RPCSEC_GSS
case RPCSEC_GSS:
dummy = _svcauth_gss(rqst, msg, no_dispatch);