patch-src_rpc_soc_c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- libtirpc-0.2.3.orig/src/rpc_soc.c 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/src/rpc_soc.c 2013-08-12 16:47:07.000000000 +0200
  3. @@ -520,37 +520,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()