/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Kernel code to obtain client handle to gssd server
*/
#include <gssapi/gssd_prot.h>
#include <gssapi/kgssapi_defs.h>
#include <sys/pathname.h>
struct gss_globals {
};
/* ARGSUSED */
void *
{
return (gssg);
}
/* ARGSUSED */
void
{
}
void
{
}
CLIENT *
getgssd_handle(void)
{
int error;
/*
* Cribbed from kerb_krpc.c. Really should do the config set up
* in the _init routine.
*/
return (NULL);
}
}
/*
* Contact rpcbind to get gssd's address only
* once and re-use the address.
*/
/* Set up netaddr to be "localhost." (strlen is 10) */
/* Get address of gssd from rpcbind */
netaddrp);
if (stat != RPC_SUCCESS) {
return (NULL);
}
}
/*
* Copy the netaddr information into a tmp location to
* be used by clnt_tli_kcreate. The purpose of this
* is for MT race condition (ie. netaddr being modified
* while it is being used.)
*/
if (error != 0) {
GSSLOG(1,
"getgssd_handle: clnt_tli_kcreate: error %d\n", error);
return (NULL);
}
return (clnt);
}