diff options
Diffstat (limited to 'package/libtirpc/patches/patch-src_rpc_soc_c')
-rw-r--r-- | package/libtirpc/patches/patch-src_rpc_soc_c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/package/libtirpc/patches/patch-src_rpc_soc_c b/package/libtirpc/patches/patch-src_rpc_soc_c new file mode 100644 index 000000000..09d303f59 --- /dev/null +++ b/package/libtirpc/patches/patch-src_rpc_soc_c @@ -0,0 +1,40 @@ +--- libtirpc-0.2.1.orig/src/rpc_soc.c 2009-11-30 15:04:55.000000000 +0100 ++++ libtirpc-0.2.1/src/rpc_soc.c 2010-01-13 22:16:08.000000000 +0100 +@@ -479,37 +479,6 @@ clnt_broadcast(prog, vers, proc, xargs, + (resultproc_t) rpc_wrap_bcast, "udp"); + } + +-/* +- * Create the client des authentication object. Obsoleted by +- * authdes_seccreate(). +- */ +-AUTH * +-authdes_create(servername, window, syncaddr, ckey) +- char *servername; /* network name of server */ +- u_int window; /* time to live */ +- struct sockaddr *syncaddr; /* optional hostaddr to sync with */ +- des_block *ckey; /* optional conversation key to use */ +-{ +- AUTH *dummy; +- AUTH *nauth; +- char hostname[NI_MAXHOST]; +- +- if (syncaddr) { +- /* +- * Change addr to hostname, because that is the way +- * new interface takes it. +- */ +- if (getnameinfo(syncaddr, sizeof(syncaddr), hostname, +- sizeof hostname, NULL, 0, 0) != 0) +- goto fallback; +- +- nauth = authdes_seccreate(servername, window, hostname, ckey); +- return (nauth); +- } +-fallback: +- dummy = authdes_seccreate(servername, window, NULL, ckey); +- return (dummy); +-} + + /* + * Create a client handle for a unix connection. Obsoleted by clnt_vc_create() |