patch-src_rpc_soc_c 1.2 KB

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