summaryrefslogtreecommitdiff
path: root/package/libtirpc/patches/patch-src_rpc_soc_c
blob: c671b908596239e719c8852c49120bc01c7e5a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- libtirpc-0.2.5.orig/src/rpc_soc.c	2014-08-08 11:24:34.000000000 -0500
+++ libtirpc-0.2.5/src/rpc_soc.c	2015-02-10 11:20:21.731005128 -0600
@@ -520,37 +520,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()