1 --- libtirpc-1.0.1.orig/src/rpc_soc.c 2015-10-30 16:15:14.000000000 +0100
2 +++ libtirpc-1.0.1/src/rpc_soc.c 2015-11-29 16:39:17.831379460 +0100
7 -#include <rpcsvc/nis.h>
11 @@ -522,86 +521,6 @@ clnt_broadcast(prog, vers, proc, xargs,
15 - * Create the client des authentication object. Obsoleted by
16 - * authdes_seccreate().
19 -authdes_create(servername, window, syncaddr, ckey)
20 - char *servername; /* network name of server */
21 - u_int window; /* time to live */
22 - struct sockaddr *syncaddr; /* optional hostaddr to sync with */
23 - des_block *ckey; /* optional conversation key to use */
26 - char hostname[NI_MAXHOST];
30 - * Change addr to hostname, because that is the way
31 - * new interface takes it.
33 - switch (syncaddr->sa_family) {
35 - if (getnameinfo(syncaddr, sizeof(struct sockaddr_in), hostname,
36 - sizeof hostname, NULL, 0, 0) != 0)
40 - if (getnameinfo(syncaddr, sizeof(struct sockaddr_in6), hostname,
41 - sizeof hostname, NULL, 0, 0) != 0)
47 - nauth = authdes_seccreate(servername, window, hostname, ckey);
51 - return authdes_seccreate(servername, window, NULL, ckey);
55 - * Create the client des authentication object. Obsoleted by
56 - * authdes_pk_seccreate().
58 -extern AUTH *authdes_pk_seccreate(const char *, netobj *, u_int, const char *,
59 - const des_block *, nis_server *);
62 -authdes_pk_create(servername, pkey, window, syncaddr, ckey)
63 - char *servername; /* network name of server */
64 - netobj *pkey; /* public key */
65 - u_int window; /* time to live */
66 - struct sockaddr *syncaddr; /* optional hostaddr to sync with */
67 - des_block *ckey; /* optional conversation key to use */
70 - char hostname[NI_MAXHOST];
74 - * Change addr to hostname, because that is the way
75 - * new interface takes it.
77 - switch (syncaddr->sa_family) {
79 - if (getnameinfo(syncaddr, sizeof(struct sockaddr_in), hostname,
80 - sizeof hostname, NULL, 0, 0) != 0)
86 - nauth = authdes_pk_seccreate(servername, pkey, window, hostname, ckey, NULL);
90 - return authdes_pk_seccreate(servername, pkey, window, NULL, ckey, NULL);
95 * Create a client handle for a unix connection. Obsoleted by clnt_vc_create()