diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-31 16:50:53 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-31 16:50:53 +0200 |
commit | eee3718f1ec72f689f3a241af008e985819826df (patch) | |
tree | 6c3f58ac7adb7e2ce85f53ed71a418b656a5b162 /package/libtirpc/patches/patch-src_rpc_soc_c | |
parent | b74845e7a1608a96af70e1b3ae4c6c28e5052e7a (diff) | |
parent | 1cd31f169fab4ab0ce45617c161da3fec9f7359d (diff) |
Merge branch 'master' of ssh://openadk.org/git/openadk
Diffstat (limited to 'package/libtirpc/patches/patch-src_rpc_soc_c')
-rw-r--r-- | package/libtirpc/patches/patch-src_rpc_soc_c | 41 |
1 files changed, 41 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..9450d73e6 --- /dev/null +++ b/package/libtirpc/patches/patch-src_rpc_soc_c @@ -0,0 +1,41 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- libtirpc-0.2.0.orig/src/rpc_soc.c 2009-05-28 21:25:26.000000000 +0200 ++++ libtirpc-0.2.0/src/rpc_soc.c 2009-05-31 06:11:27.000000000 +0200 +@@ -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() |