1
0

patch-src_rpc_soc_c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- libtirpc-0.2.1.orig/src/rpc_soc.c 2009-11-30 15:04:55.000000000 +0100
  2. +++ libtirpc-0.2.1/src/rpc_soc.c 2010-01-13 22:16:08.000000000 +0100
  3. @@ -479,37 +479,6 @@ clnt_broadcast(prog, vers, proc, xargs,
  4. (resultproc_t) rpc_wrap_bcast, "udp");
  5. }
  6. -/*
  7. - * Create the client des authentication object. Obsoleted by
  8. - * authdes_seccreate().
  9. - */
  10. -AUTH *
  11. -authdes_create(servername, window, syncaddr, ckey)
  12. - char *servername; /* network name of server */
  13. - u_int window; /* time to live */
  14. - struct sockaddr *syncaddr; /* optional hostaddr to sync with */
  15. - des_block *ckey; /* optional conversation key to use */
  16. -{
  17. - AUTH *dummy;
  18. - AUTH *nauth;
  19. - char hostname[NI_MAXHOST];
  20. -
  21. - if (syncaddr) {
  22. - /*
  23. - * Change addr to hostname, because that is the way
  24. - * new interface takes it.
  25. - */
  26. - if (getnameinfo(syncaddr, sizeof(syncaddr), hostname,
  27. - sizeof hostname, NULL, 0, 0) != 0)
  28. - goto fallback;
  29. -
  30. - nauth = authdes_seccreate(servername, window, hostname, ckey);
  31. - return (nauth);
  32. - }
  33. -fallback:
  34. - dummy = authdes_seccreate(servername, window, NULL, ckey);
  35. - return (dummy);
  36. -}
  37. /*
  38. * Create a client handle for a unix connection. Obsoleted by clnt_vc_create()