Deleted Added
full compact
key_call.c (75094) key_call.c (90271)
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 18 unchanged lines hidden (view full) ---

27 * Mountain View, California 94043
28 */
29/*
30 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
31 */
32
33#ident "@(#)key_call.c 1.25 94/04/24 SMI"
34
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 18 unchanged lines hidden (view full) ---

27 * Mountain View, California 94043
28 */
29/*
30 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
31 */
32
33#ident "@(#)key_call.c 1.25 94/04/24 SMI"
34
35#ifndef lint
35#if defined(LIBC_SCCS) && !defined(lint)
36static char rcsid[] =
36static char rcsid[] =
37 "$FreeBSD: head/lib/libc/rpc/key_call.c 75094 2001-04-02 21:41:44Z iedowse $";
37 "$FreeBSD: head/lib/libc/rpc/key_call.c 90271 2002-02-05 23:43:43Z alfred $";
38#endif /* not lint */
39
40/*
41 * key_call.c, Interface to keyserver
42 *
43 * setsecretkey(key) - set your secret key
44 * encryptsessionkey(agent, deskey) - encrypt a session key to talk to agent
45 * decryptsessionkey(agent, deskey) - decrypt ditto

--- 328 unchanged lines hidden (view full) ---

374#else
375#error Unknown architecture!
376#endif
377#endif
378 {
379 endnetconfig(localhandle);
380 return ((CLIENT *) NULL);
381 }
38#endif /* not lint */
39
40/*
41 * key_call.c, Interface to keyserver
42 *
43 * setsecretkey(key) - set your secret key
44 * encryptsessionkey(agent, deskey) - encrypt a session key to talk to agent
45 * decryptsessionkey(agent, deskey) - decrypt ditto

--- 328 unchanged lines hidden (view full) ---

374#else
375#error Unknown architecture!
376#endif
377#endif
378 {
379 endnetconfig(localhandle);
380 return ((CLIENT *) NULL);
381 }
382
383 while (nconf = getnetconfig(localhandle)) {
382 while ((nconf = getnetconfig(localhandle)) != NULL) {
384 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
385 /*
386 * We use COTS_ORD here so that the caller can
387 * find out immediately if the server is dead.
388 */
389 if (nconf->nc_semantics == NC_TPI_COTS_ORD) {
390 kcp->client = clnt_tp_create(u.nodename,
391 KEY_PROG, vers, nconf);

--- 86 unchanged lines hidden ---
383 if (strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0) {
384 /*
385 * We use COTS_ORD here so that the caller can
386 * find out immediately if the server is dead.
387 */
388 if (nconf->nc_semantics == NC_TPI_COTS_ORD) {
389 kcp->client = clnt_tp_create(u.nodename,
390 KEY_PROG, vers, nconf);

--- 86 unchanged lines hidden ---