/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#include <stdio.h>
#include <string.h>
#include <nss_dbdefs.h>
#include <libtsnet.h>
#include <secdb.h>
#include <nss.h>
#include <libintl.h>
/* efficiency, not correctness */
static DEFINE_NSS_DB_ROOT(db_root);
static DEFINE_NSS_GETENT(context);
static void
{
p->name = NSS_DBNAM_TSOL_TP;
}
{
int err = 0;
#ifdef DEBUG
#endif /* DEBUG */
return (NULL);
}
void
{
tsol_tp_stayopen |= stay;
}
void
tsol_endtpent(void)
{
tsol_tp_stayopen = 0;
}
tsol_gettpent(void)
{
int err = 0;
/* No key, no stayopen */
#ifdef DEBUG
#endif /* DEBUG */
return (NULL);
}
{
int err = 0;
_nss_XbyY_fgets(f, &arg);
return (NULL);
/*
* Loop until we find a non-blank, non-comment line, or
* until EOF. No need to log blank lines, comments.
*/
if (err != LTSNET_EMPTY) {
}
_nss_XbyY_fgets(f, &arg);
return (NULL);
}
return (tpentp);
}
/*
* This is the callback routine for nss. It just wraps the tsol_sgettpent
* parser.
*/
int
int buflen)
{
int len;
return (NSS_STR_PARSE_PARSE);
return (NSS_STR_PARSE_ERANGE);
}
#ifdef DEBUG
"str_to_tpstr:\nstr - %s\n\ttemplate - %s\n\tattrs - %s\n",
#endif /* DEBUG */
return (NSS_STR_PARSE_SUCCESS);
}