auth_time.c (61961e0f) auth_time.c (e8031f0a)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22
23/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22
23/*
24 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
25 * Use is subject to license terms.
26 *
27 * auth_time.c
28 *
26 */
27
28/*
29 * This module contains the private function __rpc_get_time_offset()
30 * which will return the difference in seconds between the local system's
31 * notion of time and a remote server's notion of time. This must be
32 * possible without calling any functions that may invoke the name
33 * service. (netdir_getbyxxx, getXbyY, etc). The function is used in the
34 * synchronize call of the authdes code to synchronize clocks between
35 * NIS+ clients and their servers.
36 *

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

44 * When called a client handle to a RPCBIND process is created
45 * and destroyed. Two strings "netid" and "uaddr" are malloc'd
46 * and returned. The SIGALRM processing is modified only if
47 * needed to deal with TCP connections.
48 */
49
50#pragma ident "%Z%%M% %I% %E% SMI"
51
29 * This module contains the private function __rpc_get_time_offset()
30 * which will return the difference in seconds between the local system's
31 * notion of time and a remote server's notion of time. This must be
32 * possible without calling any functions that may invoke the name
33 * service. (netdir_getbyxxx, getXbyY, etc). The function is used in the
34 * synchronize call of the authdes code to synchronize clocks between
35 * NIS+ clients and their servers.
36 *

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

44 * When called a client handle to a RPCBIND process is created
45 * and destroyed. Two strings "netid" and "uaddr" are malloc'd
46 * and returned. The SIGALRM processing is modified only if
47 * needed to deal with TCP connections.
48 */
49
50#pragma ident "%Z%%M% %I% %E% SMI"
51
52#include "mt.h"
52#include <stdio.h>
53#include <stdlib.h>
54#include <unistd.h>
55#include <syslog.h>
56#include <netdir.h>
57#include <string.h>
58#include <strings.h>
59#include <netconfig.h>

--- 599 unchanged lines hidden ---
53#include <stdio.h>
54#include <stdlib.h>
55#include <unistd.h>
56#include <syslog.h>
57#include <netdir.h>
58#include <string.h>
59#include <strings.h>
60#include <netconfig.h>

--- 599 unchanged lines hidden ---